Nashorn JavaScript engine for JVM could be axed

OpenJDK proposal says maintaining Nashorn has become a challenge due to rapid changes to the ECMAScript language

By Paul Krill

Nashorn, the JavaScript engine for Java Virtual Machine, could be deprecated, having been made obsolete by newer technologies.

Nashorn debuted in Java Development Kit (JDK) 8 in 2014. It has boosted compatibility between Java and JavaScript while offering performance benefits. But the rapid pace of change to ECMAScript language constructs and APIs has made it “challenging” to maintain Nashorn, according to the official deprecation proposal floated in the OpenJDK Java community.
[ Go deeper at InfoWorld: Beyond jQuery: An expert guide to JavaScript frameworks • The complete guide to Node.js frameworks • The 10 essential JavaScript developer tools • The 6 best JavaScript IDEs and 10 best JavaScript editors. | Keep up with hot topics in programming with InfoWorld’s App Dev Report newsletter. ]

Also, there are other implementations of JavaScript that Java applications can use. For example, GraalJS may soon be available as a module for developers. It uses Oracle’s Truffle library to implement languages and provides most of the same functionality as Nashorn. But there are no current plans to add GraalJS or any other new JavaScript implementation to the JDK itself.

Also to be deprecated are Nashorn’s APIs and the JJS tool. Unaffected by the deprecation is the javax.script scripting API.

By removing Nashorn, some applications may no longer run because of an expectation of JavaScript’s presence. How much Nashorn has been used has not been easy to track, so the Java community process seeks information on its actual usage.

The specific modules to be deprecated include:

scripting.nashorn --, which contains jdk.nashorn.api.scripting and jdk.nashorn.api.tree packages.
scripting.nashorn.shell --, which contains the JJS tool.
jdk.dynalink --, which holds the Dynalink support library.

This story, "Nashorn JavaScript engine for JVM could be axed" was originally published by InfoWorld.
https://www.geezgo.com/sps/28154
June 25, 2018
Labels:

Post a Comment

[disqus][blogger][facebook]

Afrogalaxy

Contact Form

Name

Email *

Message *

Powered by Blogger.
Javascript DisablePlease Enable Javascript To See All Widget