Nashorn

Nashorn
開発元 オラクル
リポジトリ ウィキデータを編集
プログラミング
言語
Java
対応OS クロスプラットフォーム
プラットフォーム Java仮想マシン
種別 JavaScriptエンジン
ライセンス GPL リンク例外
テンプレートを表示

Nashornは、オラクルによってJavaプログラミング言語で開発されたJavaScriptエンジンである。Da Vinci Machine英語版(JSR 292)に基づいており、Java 8でリリースされている[1][2][3]

このプロジェクトは、2011年7月のJVM言語サミットで最初に発表され[4][5]、2011年10月にJavaOneで確認された[6]

2012年11月21日、オラクルはOpenJDKリポジトリでのNashornソースのオープンソースを正式に発表した。プロジェクトの目的は、JSR-223を介してJavaアプリケーションにJavaScriptを埋め込むことを可能にし、スタンドアロンのJavaScriptアプリケーションを開発することである[7]。2012年12月21日、オラクルはNashornソースがOpenJDKリポジトリで公開されたことを発表した[8]

Nashornは、ECMAScript 5.1を100%サポートする[9]

Java 11のリリースに伴い、Nashornは非推奨になり、JDK 15以降から削除された[10][11]GraalVM英語版プロジェクトのGraalJSが代替として提案されている。

名称[編集]

Nashorn [ˈnaːsˌhɔɐ̯n] ( "nahss-horn")という名称は、サイ(rhinoceros)のドイツ語訳である。これは、Javaで実装されMozilla Foundationから提供されているJavaScriptエンジンの名前であるRhino、およびオライリーメディアから出版されているJavaScriptの書籍の表紙の動物[12]に掛けた言葉遊びである。

パフォーマンス[編集]

Oracleベンチマークによると、Nashornのパフォーマンスは競合するJavaScript エンジンであるRhinoよりも数桁倍高速である[13]

関連項目[編集]

脚注[編集]

  1. ^ Laskey (2011年7月). “Adventures in JSR-292 or How To Be A Duck Without Really Trying”. Oracle Corporation. 2016年6月3日時点のオリジナルよりアーカイブ。2011年7月24日閲覧。
  2. ^ Proposed new schedule for Java 8” (2013年4月18日). 2013年4月19日閲覧。
  3. ^ JDK 8”. OpenJDK (2013年4月18日). 2013年4月19日閲覧。
  4. ^ JVM Language Summit — Agenda”. Oracle Corporation (2011年7月). 2011年7月24日閲覧。
  5. ^ Saab (2011年7月19日). “JVM Language Summit: Moving Java Forward, aka ‘Pointy haired manager talk’”. Oracle Corporation. 2013年7月14日時点のオリジナルよりアーカイブ。2011年7月24日閲覧。
  6. ^ Krill (2011年10月5日). “Oracle prepping its Nashorn JavaScript engine”. InfoWorld. 2011年10月8日閲覧。
  7. ^ Coomes (2012年11月21日). “CFV: New Project: Nashorn”. Oracle Corporation. 2012年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 (2012年12月21日). “Open for business”. Oracle Corporation. 2012年12月21日閲覧。
  9. ^ https://docs.oracle.com/en/java/javase/12/docs/api/jdk.scripting.nashorn/module-summary.html
  10. ^ JEP 335: Deprecate the Nashorn JavaScript Engine” (2017年7月17日). 2018年9月25日閲覧。
  11. ^ JEP 372: Remove the Nashorn JavaScript Engine” (2020年1月10日). 2020年7月22日閲覧。
  12. ^ JavaScript: The Definitive Guide, 5th Edition”. O'Reilly Media, Inc. 2012年1月31日閲覧。
  13. ^ Nashorn Architecture and Performance Improvements in the Upcoming JDK 8u40 Release”. Oracle Corporation (2014年12月12日). 2015年9月6日閲覧。

外部リンク[編集]