vvvv / VL-Language

The official repo for the design of the VL programming language
31 stars 0 forks source link

[VL Editor-Runtime Proposal] Reset a Process Node via Alt-Right-Click #45

Open gregsn opened 3 years ago

gregsn commented 3 years ago

This proposal addresses #26

We know Alt-Right-Click from vvvv beta.

I'd like to propose to only reset the state of the node. Also resetting the pins should be another command, possibly accessible via a shortcut like Alt-Shift-Right-Click. This proposal here tries to focus on one thing: resetting the state.

Resetting the state is not something that should change the source code or target code. It's the same program, just this one process node shall start fresh at that moment. That's why this proposal tries to address this as an editor-runtime feature, not so much a language feature.

So what does it mean to reset a process node?

It very much sounds related to the hot-swap, which got quite some love, since the editor-runtime now uses proxy objects for each and every patch. We nowadays know all patch instances and keep track of them allowing us to actually do this process node hot-swap for all of them.

So while the normal hot-swap is for getting the state from an old program to a new program, this feature is about sticking with the program, but resetting the state. In both cases, it boils down to somehow injecting new objects into the running object graph.

To be discussed: