Frequently asked questions about Nashorn and Node.js

May 28, 2015

Tags: #nashorn #nodejs #javascript

During many of my talks about Nashorn, Node.js on the JVM and related topics, I frequently get asked these kinds of questions and I’d like to try to give some answers on these:

Is it possible to run [npm package of your choice] on Nashorn?

Yes, it is possible. But you have to distinguish the use case, or, the package content itself:

What about packages with native language access?

Currently you can’t run them in Avatar.js or Nodyn, because they run inside the JVM sandbox, so you don’t have access to native languages (like C/C++).
There are discussions out in the wild, if it is possible to use Jython to run Python-based NPM packages inside the JVM, but I don’t know of any approach/project testing this.

If you have any other questions related to Nashorn and Node.js, don’t hesitate to ask, I’ll try to give an appropriate answer!

« It's oh so quiet here... Now Running on Jekyll »