O slideshow foi denunciado.
Utilizamos seu perfil e dados de atividades no LinkedIn para personalizar e exibir anúncios mais relevantes. Altere suas preferências de anúncios quando desejar.
www.faratasystems.com // follow me : twitter.com/gamussa 
Nashorn - Native 
JavaScript in Java 8 
Viktor Gamov 
Senior Sof...
Watch the video with slide 
synchronization on InfoQ.com! 
http://www.infoq.com/presentations 
/nashorn-java8 
InfoQ.com: ...
Presented at QCon New York 
www.qconnewyork.com 
Purpose of QCon 
- to empower software development by facilitating the sp...
Why you’re here 
★you're excited about JDK8 features
Why you’re here 
★you're excited about JDK8 features 
★JavaScript enthusiast 
★Just need to kill time before Reception
Who is talking? 
★Software engineer and consultant
WE BUILD APPLICATIONS. 
WE CREATE IT. YOU OWN IT.
Who is talking? 
★Software engineer and consultant 
★co-author and JUG co-lead
Coming to the stores 
this summer (hopefully) 
http://enterprisewebbook.com
Draft available for free 
http://enterprisewebbook.com
Who is talking? 
★Software engineer and consultant 
★co-author and JUG co-lead 
★Guy between you and beer
Polyglot?
Everybody knows how to javascript
JavaScript, wat? 
www.destroyallsoftware.com/talks/wat
print(3[3]);
Number.prototype[3] = “qconnewqork"; 
print(3[3]);
MANY good Parts
JAVASCRIPT on JVM USE cASES 
SHELL Scripting 
Extend app functionality on 
runtime 
1 
2 
3 
provide extension points for ...
wait, javascript? 
it’s only for browsers
JAVAScript is everywhere 
★v8 and nodejs 
★Rhino was here for years 
★Here comes nashorn
What is Nashorn?
What is Nashorn? 
Ultimate invokedynamic 
consumer 
100% pure Java 
implementation 
100% ECMAScript 5.1 
compliant 
JavaSc...
HOW To USE NASHORN? 
★The only API is JSR-223: javax.scripting.* 
★Java from JavaScript and vice versa 
★Create and manipu...
Story one: 
Curious 
support engineer
Story one: 
Curious support engineer
Story two: 
Family BUSINESS
Story two: 
Family BUSINESs
Story Three: 
NASHORN for Browser
NASHORN in «wild life» 
★vert.x nashorn module 
★Project Avatar (former node.jar)
Demo
Restrictions 
★There ARE No browser APIs: 
★HTML5 canvas 
★HTML5 audio 
★WebWorkers 
★WebSockets 
★WebGL
SHOW ME THE CODE 
https://github.com/gAmUssA/java-scripting-experiments
Q&A
THANKS FOR YOUR ATTENTION 
www.faratasystems.com // follow me : twitter.com/gamussa
Watch the video with slide synchronization on 
InfoQ.com! 
http://www.infoq.com/presentations/nashorn-java8
Nashorn - Native JavaScript Support in Java 8
Nashorn - Native JavaScript Support in Java 8
Nashorn - Native JavaScript Support in Java 8
Próximos SlideShares
Carregando em…5
×

Nashorn - Native JavaScript Support in Java 8

8.532 visualizações

Publicada em

Video and slides synchronized, mp3 and slide download available at URL http://bit.ly/1rqaNO1.

Viktor Gamov presents and demos the latest state of Project Nashorn, a high-performance JavaScript engine available on the JVM. Filmed at qconnewyork.com.

Viktor Gamov is a Senior software engineer in Farata Systems. He helps financial companies with various Java and HTML5 projects. He holds MS in Computer Science. He is a co-organizer of the Princeton Java Users Group and co-author of the O'Reilly book on Enterprise Web Development. He tweets at @gamussa.

Publicada em: Tecnologia
  • Seja o primeiro a comentar

Nashorn - Native JavaScript Support in Java 8

  1. 1. www.faratasystems.com // follow me : twitter.com/gamussa Nashorn - Native JavaScript in Java 8 Viktor Gamov Senior Software ENGINEER, Farata Systems QCon new york 2014
  2. 2. Watch the video with slide synchronization on InfoQ.com! http://www.infoq.com/presentations /nashorn-java8 InfoQ.com: News & Community Site • 750,000 unique visitors/month • Published in 4 languages (English, Chinese, Japanese and Brazilian Portuguese) • Post content from our QCon conferences • News 15-20 / week • Articles 3-4 / week • Presentations (videos) 12-15 / week • Interviews 2-3 / week • Books 1 / month
  3. 3. Presented at QCon New York www.qconnewyork.com Purpose of QCon - to empower software development by facilitating the spread of knowledge and innovation Strategy - practitioner-driven conference designed for YOU: influencers of change and innovation in your teams - speakers and topics driving the evolution and innovation - connecting and catalyzing the influencers and innovators Highlights - attended by more than 12,000 delegates since 2007 - held in 9 cities worldwide
  4. 4. Why you’re here ★you're excited about JDK8 features
  5. 5. Why you’re here ★you're excited about JDK8 features ★JavaScript enthusiast ★Just need to kill time before Reception
  6. 6. Who is talking? ★Software engineer and consultant
  7. 7. WE BUILD APPLICATIONS. WE CREATE IT. YOU OWN IT.
  8. 8. Who is talking? ★Software engineer and consultant ★co-author and JUG co-lead
  9. 9. Coming to the stores this summer (hopefully) http://enterprisewebbook.com
  10. 10. Draft available for free http://enterprisewebbook.com
  11. 11. Who is talking? ★Software engineer and consultant ★co-author and JUG co-lead ★Guy between you and beer
  12. 12. Polyglot?
  13. 13. Everybody knows how to javascript
  14. 14. JavaScript, wat? www.destroyallsoftware.com/talks/wat
  15. 15. print(3[3]);
  16. 16. Number.prototype[3] = “qconnewqork"; print(3[3]);
  17. 17. MANY good Parts
  18. 18. JAVASCRIPT on JVM USE cASES SHELL Scripting Extend app functionality on runtime 1 2 3 provide extension points for application 4 WEB-content generation
  19. 19. wait, javascript? it’s only for browsers
  20. 20. JAVAScript is everywhere ★v8 and nodejs ★Rhino was here for years ★Here comes nashorn
  21. 21. What is Nashorn?
  22. 22. What is Nashorn? Ultimate invokedynamic consumer 100% pure Java implementation 100% ECMAScript 5.1 compliant JavaScript Engine for JVM 100% compiled to bytecode, no interpreter http://www.1001ausmalbilder.de/ausmalbilder/gross/ausmalbild-nashorn-7.jpg
  23. 23. HOW To USE NASHORN? ★The only API is JSR-223: javax.scripting.* ★Java from JavaScript and vice versa ★Create and manipulate Java/JavaScript objects ★Extend Java classes ★Implement Java interfaces
  24. 24. Story one: Curious support engineer
  25. 25. Story one: Curious support engineer
  26. 26. Story two: Family BUSINESS
  27. 27. Story two: Family BUSINESs
  28. 28. Story Three: NASHORN for Browser
  29. 29. NASHORN in «wild life» ★vert.x nashorn module ★Project Avatar (former node.jar)
  30. 30. Demo
  31. 31. Restrictions ★There ARE No browser APIs: ★HTML5 canvas ★HTML5 audio ★WebWorkers ★WebSockets ★WebGL
  32. 32. SHOW ME THE CODE https://github.com/gAmUssA/java-scripting-experiments
  33. 33. Q&A
  34. 34. THANKS FOR YOUR ATTENTION www.faratasystems.com // follow me : twitter.com/gamussa
  35. 35. Watch the video with slide synchronization on InfoQ.com! http://www.infoq.com/presentations/nashorn-java8

×