• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Impact of the Nashorn JavaScript engine?

 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was wondering how you rate the importance of the new JavaScript engine. Apparently it's faster than Rhino, but what else does it bring to the table that makes it stand out?
 
Ranch Hand
Posts: 172
Redhat Ruby C++
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Now there is an standard that OpenJDK/Oracle JVM will provide javascript engine on any machine (before that, there was already scripts that JVM could run, but it was very limited and was different languages due some native dependency, for example in OSX ) (example http://docs.oracle.com/javase/6/docs/technotes/guides/scripting/programmer_guide/index.html ) . Also I think the same topics cited in this next points of the web site is valid in this discussion https://docs.oracle.com/javase/6/docs/technotes/guides/scripting/programmer_guide/index.html#who .
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hm, I never noticed any limitations, or differences on OS X. Can you be more specific about those? So the main benefit of Nashorn -aside maybe from better performance- is a more full-featured JS implementation and better cross-platform compatibility?
 
Luan Cestari
Ranch Hand
Posts: 172
Redhat Ruby C++
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In OSX the Java would allow only AppleScriptEngine (but that was before Nashorn and Java 8). I think OpenJDK/Oracle had port Javascript to any platform now.

As you said, the performance is much better (due new bytecode instructions) (before that there was Rhino which implements javascript for java but it might is hold compatibility with the old java versions). If I remember well, the actual implementation is based on ECMAScript 5.1 and is migrating to ECMAScript 6 (IDK which engine was before that but I would guess it might be older and outdated). The Nashorn is a key process to new tool that Oracle is building to make web application, which would make the border of the browser web page and the server side more integrated (it is named project avatar https://avatar.java.net/ ).

Another interesting project appears after that (due the new bytecode and class definition)

Kindest regards,
Luan
 
I would challenge you to a battle of wits, but I see you are unarmed - shakespear. Unarmed tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic