I have created node that uses javascript. It uses .net javascript library http://javascriptdotnet.codeplex.com/
Is this good idea? I think this could be faster in some situations, rather than using nodes for creating logic. In other times this could be easier for development…
There are input and output types in javascript, once declared node will create input and output pins. At this point only numeric values are working, but I don’t see what other data I could feed into the javascript.
Node has code editor (also mine), and will show if there is error in code. Script is saved into js file when save bang is fired, or when save is clicked in editor.
I made base class and attributes for creating external methods. You could inherit base class, add some methods, then load it throug javascript. It will query methods and parameters and create interface methods in javascript, that will invoke .net code.
This could work well in conjunction with vvvv.js. Javascript could be written and run in vvvv, then executed in browser, once loaded…
It would be great to make node run on different thread, then use async update of pins. This way it could make use of multiple cores.
Any suggestions are welcome…