• Post Reply Bookmark Topic Watch Topic
  • New Topic

Impact of the Nashorn JavaScript engine?  RSS feed

 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • 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?
 
Luan Cestari
Ranch Hand
Posts: 172
C++ Redhat Ruby
  • Mark post as helpful
  • send pies
  • 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: 42972
73
  • Mark post as helpful
  • send pies
  • 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
C++ Redhat Ruby
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!