Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 3.23 KB

javascript-engines.md

File metadata and controls

53 lines (37 loc) · 3.23 KB

javascript-engines

Date: 2015-11-14 Last Update: 2015-12-11

OS Javascript engine
iOS JavaScriptCore
Android V8?

Available Javascript Engines1

  • Rhino - The most popular JavaScript Engine developed in Java, originally by Netscape, but now maintained by Mozilla. Unfortunately, its development is not very active, documentation at some points is inadequate and outdated, and the API is not very elegant.
  • Nashorn - Another JavaScript engine developed in Java by Oracle. It was released along with Java 8 a few days ago. Oracle has open-sourced the project, but unfortunately, it cannot run on Android's Dalvik VM.
  • V8 - The JavaScript engine developed in C++ by Google, which powers the Chrome and Chromium web-browsers, and other projects like node.js. Open-source project.
  • SpiderMonkey - The first-ever JavaScript engine developed in C/C++, originally by Netscape, and now maintained by Mozilla. It powers the Firefox web-browser. Open-source project.
  • JavaScriptCore (the JavaScript engine, not the iOS framework) - The JavaScript engine developed in C/C++ by Apple, Adobe and others, which powers the Safari web-browser (among others). It's part of the WebKit framework. Open-source project.

Articles

References

  1. JavaScript engine
  2. V8 (JavaScript engine)
  3. Developing a mobile cross-platform library - Part 3. JavaScript - 25 March 2014

Unfortunately, in Android, there is no such cool framework like JavaScriptCore, so we have to embed a JavaScript engine ourselves. The alternatives are

  1. Part I: How to Choose a JavaScript Engine for iOS and Android Development - Jan 17th, 2013