Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
1CONFIDENTIAL
Nashorn, what is the
whole buzz about
2CONFIDENTIAL
Ask questions
By The U.S. Army
3CONFIDENTIAL
I love your feedback! 
@michalgruca
michal.gruca@gmail.com
www.rits.pl
4CONFIDENTIAL
5CONFIDENTIAL
GENERAL
NASHORN
6CONFIDENTIAL
7CONFIDENTIAL
• yet another js runtime -> on server
built on top of Java
quite fast
EcmaScript 5.1 compatible
Nashorn is …...
8CONFIDENTIAL
Allows to build DSL
Runtime modularity
Full access from .js to JVM
A lot of developers on market
Simple lang...
9CONFIDENTIAL
Or because …
10CONFIDENTIAL
GENERAL
NASHORN :: DEMO
11CONFIDENTIAL
TWO WAY INTEROPERABILITY
NASHORN :: DEMO
12CONFIDENTIAL
TESTING
NASHORN :: DEMO
13CONFIDENTIAL
VALIDATION
NASHORN :: DEMO
14CONFIDENTIAL
SCRIPTING
NASHORN :: DEMO
15CONFIDENTIAL
PROJECT AVATAR
NASHORN
16CONFIDENTIAL
• Project Avatar is a JavaScript service
layer, that fully utilizes Nashorn
Engine.
• It aims at reducing J...
17CONFIDENTIAL
https://www.flickr.com/photos/45928872@N08/4211101808/
18CONFIDENTIAL
www.techempower.com/benchmarks
19CONFIDENTIAL
CONS
NASHORN
20CONFIDENTIAL
http://ariya.ofilabs.com/2014/03/nashorn-the-new-rhino-on-the-block.html
21CONFIDENTIAL
• Nashorn is much slower than Node
– But getting faster! (JDK8u20 & JDKu40)
• JDK 8 only
– JDK 7: Rhino and...
22CONFIDENTIAL
Can be tricky
• Types
– Collections
• Programming model
• Execution model
• Scopes & contextes
• Libraries
...
23CONFIDENTIAL
ITERATING
NASHORN :: DEMO
24CONFIDENTIAL
REAL WORLD EXAMPLE
NASHORN
25CONFIDENTIAL
My project
• Soft real time
• Controlling thousands of
devices
• Multithreaded
• „Distributed”
26CONFIDENTIAL
27CONFIDENTIAL
I love your feedback! 
@michalgruca
michal.gruca@gmail.com
www.rits.pl
Upcoming SlideShare
Loading in …5
×

4Developers 2015: Nashorn - o co ten cały szum - Michał Gruca

329 views

Published on

Michał Gruca

Language: Polish

Project Nashorn - 'niewielki' dodatek do Javy 8, który pozwala w efektowny sposób uruchamiać kod JavaScriptowy na JVM. Wiele osób drapało się po głowie w momencie ogłoszenia go ważnym dodatkiem do świata Javy.
W ciągu 45 minut postaram się przekonać wszystkich uczestników wykładu, że Nashorn to nie tylko akademicka zabawka pozwalająca uruchamiać JavaScript na JVM, ale potężne narzędzie mające wiele zastosowań.
Całość mocno z perspektywy użytkownika JVMa, ale przykłady powinny być interesujące dla wszystkich, również tych którzy chcą pójść beyond the Node.
Pokażę też kilka przykładów zastosowania platformy i to nie tylko jako zastępstwo Node, ale uzupełnienie zestawu narzędzi w arsenale każdego developera (nawet Java backendowego ;))

Published in: Software
  • Be the first to comment

  • Be the first to like this

4Developers 2015: Nashorn - o co ten cały szum - Michał Gruca

  1. 1. 1CONFIDENTIAL Nashorn, what is the whole buzz about
  2. 2. 2CONFIDENTIAL Ask questions By The U.S. Army
  3. 3. 3CONFIDENTIAL I love your feedback!  @michalgruca michal.gruca@gmail.com www.rits.pl
  4. 4. 4CONFIDENTIAL
  5. 5. 5CONFIDENTIAL GENERAL NASHORN
  6. 6. 6CONFIDENTIAL
  7. 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. 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
  9. 9. 9CONFIDENTIAL Or because …
  10. 10. 10CONFIDENTIAL GENERAL NASHORN :: DEMO
  11. 11. 11CONFIDENTIAL TWO WAY INTEROPERABILITY NASHORN :: DEMO
  12. 12. 12CONFIDENTIAL TESTING NASHORN :: DEMO
  13. 13. 13CONFIDENTIAL VALIDATION NASHORN :: DEMO
  14. 14. 14CONFIDENTIAL SCRIPTING NASHORN :: DEMO
  15. 15. 15CONFIDENTIAL PROJECT AVATAR NASHORN
  16. 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
  17. 17. 17CONFIDENTIAL https://www.flickr.com/photos/45928872@N08/4211101808/
  18. 18. 18CONFIDENTIAL www.techempower.com/benchmarks
  19. 19. 19CONFIDENTIAL CONS NASHORN
  20. 20. 20CONFIDENTIAL http://ariya.ofilabs.com/2014/03/nashorn-the-new-rhino-on-the-block.html
  21. 21. 21CONFIDENTIAL • Nashorn is much slower than Node – But getting faster! (JDK8u20 & JDKu40) • 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. 22. 22CONFIDENTIAL Can be tricky • Types – Collections • Programming model • Execution model • Scopes & contextes • Libraries • Developers by Yoel Ben-Avraham
  23. 23. 23CONFIDENTIAL ITERATING NASHORN :: DEMO
  24. 24. 24CONFIDENTIAL REAL WORLD EXAMPLE NASHORN
  25. 25. 25CONFIDENTIAL My project • Soft real time • Controlling thousands of devices • Multithreaded • „Distributed”
  26. 26. 26CONFIDENTIAL
  27. 27. 27CONFIDENTIAL I love your feedback!  @michalgruca michal.gruca@gmail.com www.rits.pl

×