Basically during this session I've been trying to convince room full of .js devs that using java has its advantages.
I know that many things may not make sense without me talking, so just as a DISCLAIMER: I know that most (if not all) of that can be done in node.js In most cases my point was that it could be done in different way, nad it's worth remembering that
Abstract: We're living in a fast moving world. Javascript is everywhere and can do anything, from adding widgets to your desktop to controlling your TV, however some developers still don't treat it seriously. Number of frameworks grows, there is node.js, languages compiling to Javascript, but despite all of that we still struggle with weird superstitions. During the course of the session I'll try to give very brief overview of Nashorn and explain why in my eyes it can be a game changer that will allow us to add .js to "enterprise languages", and that opens whole new world :) We'll also dive a bit into architecture of applications, talk about testability and polyglot programming to finish with real world example of application built using Nashorn, just to prove that highly specialized, mission critical software can benefit a lot from using .js.
3. What is Nashorn
Excellence in Software Engineering @michalgruca 3
4. Whats the fuss all about
● Yet another js runtime -> on server
● Quite fast
● Built on top of Java
● EcmaScript 5.1 compatible
Excellence in Software Engineering @michalgruca 4
5. Excellence in Software Engineering @michalgruca 5
But Node
● Mature
● Tested
● Has ecosystem (modules)
● Fast!
V8 powered
29. Slower than Node
May be twice+ slower than V8
http://ariya.ofilabs.com/2014/03/nashorn-the-new-rhino-on-the-block.html
Excellence in Software Engineering @michalgruca 29
30. Mean time in Java land
www.techempower.com/benchmarks
Excellence in Software Engineering
32. Can be tricky
By Yoel Ben-Avraham
Demo: https://github.com/mgruca/nashorn_example/blob/master/src/main/test/pl/rits/Runner.java#L42
Excellence in Software Engineering @michalgruca 32
33. Real world examples
WWhhaatt ccaann wwee ddoo wwiitthh iitt??
Excellence in Software Engineering @michalgruca 33