Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Nashorn (JavaScript engine)

From Wikipedia, the free encyclopedia
JavaScript engine developed in Java
This article has multiple issues. Please helpimprove it or discuss these issues on thetalk page.(Learn how and when to remove these messages)
icon
This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "Nashorn" JavaScript engine – news ·newspapers ·books ·scholar ·JSTOR
(July 2021) (Learn how and when to remove this message)
icon
This articlerelies excessively onreferences toprimary sources. Please improve this article by addingsecondary or tertiary sources.
Find sources: "Nashorn" JavaScript engine – news ·newspapers ·books ·scholar ·JSTOR
(July 2021) (Learn how and when to remove this message)
(Learn how and when to remove this message)
Nashorn
DevelopersOracle Corporation, OpenJDK Community
Stable release
15.7 / August 21, 2025; 5 months ago (2025-08-21)
Written inJava
Operating systemCross-platform
PlatformJava Virtual Machine
TypeJavaScript engine
LicenseGPL with a linking exception
Repository

Nashorn is aJavaScript engine developed in theJava programming language originally byOracle 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 experimentalDa Vinci Machine and a standard part of Java 7 and later.) Nashorn was included withJava 8 through JDK 14.[1][2][3]

History

[edit]

The project was announced first at the JVM language summit in July 2011,[4][5] and then confirmed atJavaOne in October 2011.[6]

On November 21, 2012, Oracle formally announced theopen sourcing of the Nashorn source on theOpenJDK repository. The project aim will be to allow embedding JavaScript in Java applications viaJSR-223 and to develop standalone JavaScript applications.[7] On December 21, 2012, Oracle announced Nashorn source was publicly released in theOpenJDK repository.[8]

It provides a 100% support ofECMAScript 5.1.[9] It was the first JavaScript implementation to achieve 100% pass rate on the ECMAScript 5.1 test suite.[10]

With the release of Java 11, Nashorn was deprecated citing challenges to maintenance, and has been removed from JDK 15 onwards.[11][12]

Nashorn developmentcontinues on GitHub as a standaloneOpenJDK project and theseparate release can be used in Java projects from Java 11 and up.

Name

[edit]

Nashorn[ˈnaːsˌhɔɐ̯n] ("nahss-horn") is the German translation ofrhinoceros, a play on words onRhino, the name of a JavaScript engine implemented in Java and provided byMozilla Foundation. The latter gets its name from the animal on the cover of the JavaScript book fromO'Reilly Media.[13]

Performance

[edit]

According toOracle benchmarks, Nashorn performance is several orders of magnitude faster than the alternativeRhino JavaScript engine.[14]

See also

[edit]

References

[edit]
  1. ^Laskey, James (July 2011)."Adventures in JSR-292 or How To Be A Duck Without Really Trying"(PDF).Oracle Corporation. Archived fromthe original(PDF) on 2016-06-03. Retrieved2011-07-24.
  2. ^"Proposed new schedule for Java 8". 2013-04-18. Retrieved2013-04-19.
  3. ^"JDK 8". OpenJDK. 2013-04-18. Retrieved2013-04-19.
  4. ^"JVM Language Summit — Agenda".Oracle Corporation. July 2011. Archived fromthe original on 2011-08-19. Retrieved2011-07-24.
  5. ^Saab, Georges (2011-07-19)."JVM Language Summit: Moving Java Forward, aka 'Pointy haired manager talk'"(PDF).Oracle Corporation. Archived fromthe original(PDF) on 2012-04-23. Retrieved2011-07-24.
  6. ^Krill, Paul (2011-10-05)."Oracle prepping its Nashorn JavaScript engine".InfoWorld. Retrieved2011-10-08.
  7. ^Coomes, John (2012-11-21)."CFV: New Project: Nashorn".Oracle Corporation. Retrieved2012-11-24.I hereby propose the creation of the Nashorn Project with Jim Laskey as the Lead and HotSpot group as the sponsoring Group. In accordance with the OpenJDK guidelines [1], we would like to start a new project to implement a lightweight high-performance JavaScript runtime in Java with a native JVM
  8. ^Laskey, J (2012-12-21)."Open for business".Oracle Corporation. Retrieved2012-12-21.
  9. ^"Java Platform, Standard Edition Java API Reference".
  10. ^"Tweet showing all ECMAScript 5.1 tests passing on the screen of a Nashorn developers' computer".
  11. ^"JEP 335: Deprecate the Nashorn JavaScript Engine". 2017-07-17. Retrieved2018-09-25.
  12. ^"JEP 372: Remove the Nashorn JavaScript Engine". 2020-01-10. Retrieved2020-07-22.
  13. ^"#". O'Reilly Media, Inc. Retrieved2012-01-31.
  14. ^"Nashorn Architecture and Performance Improvements in the Upcoming JDK 8u40 Release".Oracle Corporation. 2014-12-12. Retrieved2015-09-06.

External links

[edit]
Dialects
Engines
Frameworks
Client-side
Server-side
Multiple
  • Cappuccino
Libraries
People
Other
Software
Applications
Programming languages
Databases
Frameworks and
development tools
Operating systems
Other
Related
Retrieved from "https://en.wikipedia.org/w/index.php?title=Nashorn_(JavaScript_engine)&oldid=1307977097"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp