My talk from Java2days 2015 conference about Nashorn and some real world examples. Github repository has all code samples: https://github.com/mgruca/nashorn_example
7. 7CONFIDENTIAL
• yet another js runtime -> on server
built on top of Java
quite fast
EcmaScript 5.1 compatible
Nashorn is …
By Valentina Storti
8. 8CONFIDENTIAL
Allows to build DSL
Runtime modularity
Full access from .js to JVM
A lot of developers on market
Simple language
Even your user may try it
Why to use
16. 16CONFIDENTIAL
• Project Avatar is a JavaScript service
layer, that fully utilizes Nashorn
Engine.
• It aims at reducing JavaScript
knowledge required to start coding
• It’s a direct response to node
What avatar is
21. 21CONFIDENTIAL
• Nashorn is much slower than Node
– But getting faster! (JDK8u20 & JDK8u40)
• JDK 8 only
– JDK 7: Rhino and dynJS
• May have issues with various frameworks
• Yet another level of abstraction
– With not so many examples
https://www.threadless.com/@alanis
22. 22CONFIDENTIAL
Can be tricky
• Types
– Collections
• Programming model
• Execution model
• Scopes & contextes
• Libraries
• Developers
by Yoel Ben-Avraham