Oracle Says Drop Nashorn From JDKs |
Written by Kay Ewbank | |||
Friday, 15 June 2018 | |||
Oracle wants to deprecate the Nashorn JavaScript Engine and remove it from all future Java Development Kits. The details emerged as part of a JDK Enhancement Proposal. The Nashorn JavaScript engine was introduced with Java 8 to replace the previous JavaScript scripting engine based on Mozilla Rhino. Nashorn is based on JSR 292, which adds support for dynamically typed languages on the Java platform; and on invokedynamic. Its aim was to provide better compliance with the ECMA normalized JavaScript specification and better runtime performance through invokedynamic-bound call sites. Nashorn provides a way to invoke Java code from JavaScript, or to invoke JavaScript functions from Java code. Nashorn can be embedded in JavaScript applications as an interpreter, and its command-line tool, jjs, can be used to run JavaScript from the command line. Nashorn was a complete implementation of the ECMAScript-262 5.1 standard when it was released, but is now lagging behind due to the rapid pace at which ECMAScript language constructs, along with APIs, are adapted and modified. Oracle says the only choices are either to deprecate the Nashorn JavaScript script engine and APIs, and the "a set of credible developers to express a clear desire to maintain Nashorn going forward. If that happens before this JEP is integrated then this JEP can be withdrawn. If that happens after this JEP is integrated, but before Nashorn is removed, then a follow-on JEP can revert the deprecation." The problem with removing Nashorn is that certain applications will no longer run because of the expectation that JavaScript is present. Oracle says that: "the breadth of Nashorn usage has not been easy to track. It is hoped that feedback for this JEP might provide better insight into actual Nashorn usage." Responding to a tweet about the proposal, Thomas Wuerthinger, Senior Research Director at Oracle Labs,said: "The JavaScript implementation based on #GraalVM will be production-ready on all relevant platforms before Nashorn is deprecated. It will give you better performance and is fully compliant to the latest ECMAScript standard." GraalVM is a virtual machine for running applications written in JavaScript, Python, Ruby, R, JVM-based languages like Java, Scala, Kotlin, and LLVM-based languages such as C and C++.
More InformationRelated ArticlesJavaFX Will Be Removed From JDK No Vote For Java Module System JDK 9 Early Access Now Available Java 8 Launched With Supporting Line-Up
To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.
Comments
or email your comment to: comments@i-programmer.info |
|||
Last Updated ( Friday, 15 June 2018 ) |