Include source code of nodes in editor

Feature to include source of Vuo stock nodes within Vuo. Would allow cloning of nodes from witin the editor, and easy modification.

So basically, somehow the same as we commented on Edit node C code in the Vuo Editor have it do all the QT wrangling for the node ?

What do you mean with ā€œInclude Source Code of Nodesā€ ? Just to include them, shown in any way ?
Or as mentioned on the other discussion, the possibility to ā€œedit stock nodeā€ and ā€œsave modified node as new nodeā€ (with auto-relaunch ;)) ?

Yes. I am guessing that nodes that include source code (as opposed to precompilednodes) could (may - I donā€™t know - @jstrecker may want to answer this) have an edit menu or something like that. So if you see a node you like - or a simple template node - you can just duplicate it and edit the c code directly in Vuo. Considering that included non-pro nodes are already available as source (and downloadable) it would be cool to allow super easy utilisation of them.

@Bodysoulspirit just read your post! Crazy! I hadnā€™t read that! Great minds hey! ;-) Ā 

1 Like

Great minds hey! ;-)

;)

Opened for voting.

Not sure about the UI yet, but I imagine it would tie in with Edit node C code in the Vuo Editor. Perhaps a ā€œnew node from existing nodeā€ option in the overhead menu and a ā€œview sourceā€ option in the right-click menu for built-in nodes.

Great @jstrecker!

Also in future can that view source be available to any source node (including custom nodes) not only built in nodes? Ā 

@alexmitchellmus

Also in future can that view source be available to any source node (including custom nodes) not only built in nodes?

If yes, there should be a way to hide the source code of a node from within the node code, as I can imagine some guys wanā€™t to sell some nodes without opening the source code too would they not ?

This shouldnā€™t interfere with selling nodes at all @Bodysoulspirit.

Currently Vuo is only able to run ā€˜precompiledā€™ nodes, (nodes that have been made in QT Developer Tools) basically you write the C or C++ code and then compile them into machine code.

In the future if you want to easily code your own without using QT Developer then Vuo will have the ability to dynamically generate Vuo nodes from C or C++ placed within the node folder.

If anyone wants to sell nodes, then you simply use QT Developer to compile the nodes into machine code. Very hard to reverse engineer your work (impossible)

Even if Team Vuo made the .c nodes locked, then you would simply be able to go into the node folder and check out the source.

So to conclude:

  • Vuo currently only allows pre-compiled nodes.
  • Future versions of Vuo may allow source code nodes to run, (and edit from within Vuo)
  • If you want to sell nodes simply make pre-compiled nodes.

Does that make sense? Ā 

1 Like

@alexmitchellmus chinese stuff for me but sounds fine ;) As long as devs have the possibility you mention it sounds really good !

For a node that has its source code packaged with it, yes, this FR could cover showing the source code, same as built-in nodes.

I appreciate the productive discussion. Just want to clarify one thing, so nobody gets overconfident thinking their source code is more protected than it is: Nodes are compiled to a format called LLVM bitcode that happens to be fairly easy to reverse engineer. To support sellers who want to keep their source code a secret, weā€™d need to enable Vuo to read 3rd-party nodes that come in some more protective format.

1 Like

Ok I think I was a bit overconfident! ;-). Lol!

My thinking was it was impossible for end user - not hackerā€¦ ;-). @jstrecker do you think there is a need for a FR for encrypted nodes? This may open up Vuo to another audience, node developers?

For encrypted nodes, thereā€™s already a related FR, https://community.vuo.org/t/-/5470. It had originally only mentioned compositions. I just added nodes to the title, since the work would be similar and either could be useful to node developers. No need to create a separate FR.