Nashorn - JavaScript on the JVM

Klaus - @kaeff

Java 8, which has been around, ships a whole new JavaScript engine: Nashorn replaces it'g granny predecessor Rhino, and makes use of modern optimisations of the Java Runtime to deliver promising execution speeds. There are also efforts to provide adapters for node's standard library, allowing to execute your beloved npm modules on the JVM.

  • Use modern JavaScript in restrictive environments where node.js is not an option
  • Foster runtime diversity for server-side JS
  • Building polyglot systems that benefit from interop between multiple languages within a single (JVM) process

I'd be interested on your experiences and thoughts.