Running node.js applications under Java - initial check on what's available

published Dec 03, 2015 03:35   by admin ( last modified Dec 25, 2015 09:19 )

Apparently the new version of the javascript implementation on the JVM - Nashorn - is quite fast. It would be interesting if one could move Node.js apps from Node onto the JVM. Here are some examples purportedly to work under the JVM:

https://www.dropbox.com/s/xdna3pvgf5rjqu9/nashorn-demos.zip?dl=0

The example using express.js seems to use avatar.js, which is not 100% compatible with node.js according to their own documentation.

Still, being able to integrate Node.js apps into the JVM is interesting. Even more interesting might be if t were possible to leverage the multi threading of the JVM through e.g. some language extensions to Javascript on Nashorn.

Frequently asked questions about Nashorn and Node.js | Niko Köbler – Software-Architect, Developer & Trainer

Update: It seems like the Avatar.js project is now defunkt. A blog post from 2015-02-12:

 

We'd like to thank those who have provided us feedback throughout the life of Project Avatar. It has been very much appreciated and helped us us more than you know.
 
Avatar and Avatar.js project pages, along with the code and related binaries, will remain available for folks to learn from and leverage.