Nashorn (JavaScript engine): Difference between revisions

Content deleted Content added
GreenC bot (talk | contribs)
Rescued 1 archive link. Wayback Medic 2.5
Update latest release info
 
(9 intermediate revisions by 9 users not shown)
Line 10:
| caption =
| developer = [[Oracle Corporation]], OpenJDK Community
| latest release version = 15.47
| latest release date = {{Start date and age|20222025|0408|2321}}
| latest preview version =
| latest preview date =
Line 22:
| website =
}}
'''Nashorn''' is a [[JavaScript engine]] developed in the [[Java (programming language)|Java]] programming language originally by [[Oracle Corporation|Oracle]] and later by the OpenJDK Community. It relies on the support for dynamically typed languages on the Java Platform (JSR 292) (a concept first realized in the experimental [[Da Vinci Machine]] and a standard part of Java 7 and later.) Nashorn has beenwas included with [[Java 8]] through JDK 14.<ref>{{cite web
| url=http://www.wiki.jvmlangsummit.com/images/c/ce/Nashorn.pdf
| title=Adventures in JSR-292 or How To Be A Duck Without Really Trying
Line 41:
| date=July 2011
| publisher=[[Oracle Corporation]]
| access-date=2011-07-24}}</ref><ref>{{cite web
| archive-date=2011-08-19
| archive-url=https://web.archive.org/web/20110819110827/http://openjdk.java.net/projects/mlvm/jvmlangsummit/agenda.html
| url-status=dead
}}</ref><ref>{{cite web
| url=http://www.wiki.jvmlangsummit.com/images/2/27/JVMLS_GES.pdf
| title=JVM Language Summit: Moving Java Forward, aka 'Pointy haired manager talk'
Line 75 ⟶ 79:
| access-date=2012-12-21}}</ref>
 
It provides a 100% support of [[ECMAScript]] 5.1.<ref>{{Cite web|url=https://docs.oracle.com/en/java/javase/12/docs/api/jdk.scripting.nashorn/module-summary.html|title = Java Platform, Standard Edition Java API Reference}}</ref> It was the first JavaScript implementation to achieve 100% pass rate on the ECMAScript 5.1 test suite.<ref>{{Cite web|url=https://twitter.com/asz/status/258995374847565825|title = Tweet showing all ECMAScript 5.1 tests passing on the screen of a Nashorn developers' computer}}</ref>
 
With the release of Java 11, Nashorn was deprecated citing challenges to maintenance, and has been removed from JDK 15 onwards.<ref>{{cite web
Line 83 ⟶ 87:
| access-date=2018-09-25}}</ref><ref>{{cite web |url=https://openjdk.java.net/jeps/372 |title=JEP 372: Remove the Nashorn JavaScript Engine |date=2020-01-10 |access-date=2020-07-22}}</ref>
 
Nashorn development [https://github.com/openjdk/nashorn continues on GitHub] as a standalone [https://openjdk.java.net/projects/nashorn/ OpenJDK project] and the [https://mvnrepository.com/artifact/org.openjdk.nashorn/nashorn-core separate release] can be used in Java projectprojects from Java 11 and up.
 
==Name==
[[wikt:Nashorn|''Nashorn'']] {{IPA-|de|ˈnaːsˌhɔɐ̯n|}} ("nahss-horn") is the German translation of [[rhinoceros]], a play on words on [[Rhino (JavaScript engine)|Rhino]], the name of a JavaScript engine implemented in Java and provided by [[Mozilla Foundation]]. The latter gets its name from the animal on the cover of the JavaScript book from [[O'Reilly Media]].<ref>{{cite web |url=http://www.oreilly.com/catalog/jscript5/ |title=JavaScript: The Definitive Guide, 5th Edition |publisher=O'Reilly Media, Inc |access-date=2012-01-31}}</ref>
 
== Performance ==
Line 99 ⟶ 103:
{{Portal|Free and open-source software}}
*[[List of ECMAScript engines]]
*[[List of JVM languages]]
 
==References==