GraalVM
graalvm.org › latest › reference-manual › js
GraalJS
GraalJS is a fast JavaScript language implementation built on top of GraalVM.
Download
GraalVM is an advanced JDK with ahead-of-time Native Image compilation.
Community
GraalVM is an advanced JDK with ahead-of-time Native Image compilation.
Docs
GraalVM is an advanced JDK with ahead-of-time Native Image compilation.
Download GraalVM
GraalVM is an advanced JDK with ahead-of-time Native Image compilation.
GraalVM
graalvm.org › javascript
JavaScript - GraalJS
import org.graalvm.polyglot.Context; try (Context context = Context.create()) { context.eval("js", "console.log('Hello from GraalJS!')"); }
Videos
51:25
GraalVM Meetup: High-speed JavaScript and Node.js on the JVM - YouTube
25:05
Goodbye Nashorn, Hello GraalVM for high performance JavaScript ...
14:56
GraalVM: Java's Polygot Future, A New Way to Run JS - Bristol JS ...
02:53:14
Deep dive into using GraalVM for Java and JavaScript developers ...
45:07
Yes, JavaScript Is Faster Than Java (When You Use GraalVM)! - YouTube
02:49
How Does the Polyglot in GraalVM Work? - Wix Engineering Snippets ...
GraalVM
graalvm.org › jdk21 › reference-manual › js
GraalVM JavaScript and Node.js Runtime
GraalVM provides an ECMAScript-compliant runtime to execute JavaScript and Node.js applications. It is fully standard compliant, executes applications with high performance, and provides all benefits from the GraalVM stack, including language ...
GitHub
github.com › oracle › graaljs
GitHub - oracle/graaljs: GraalJS – A high-performance, ECMAScript compliant, and embeddable JavaScript runtime for Java
GraalJS is a JavaScript engine implemented in Java on top of GraalVM. It is an ECMAScript-compliant runtime to execute JavaScript and Node.js applications, and includes all the benefits from the GraalVM stack including interoperability with Java.
Starred by 2K users
Forked by 210 users
Languages C++ 29.2% | C 23.9% | Perl 14.9% | Assembly 14.9% | JavaScript 11.4% | Java 3.2%
Oracle
docs.oracle.com › en › graalvm › enterprise › 22 › docs › reference-manual › js
GraalVM JavaScript Implementation
January 15, 2024 - JavaScript must be enabled to correctly display this content · GraalVM provides an ECMAScript-compliant runtime to execute JavaScript and Node.js applications. It is fully standard compliant, executes applications with high performance, and provides all benefits from the GraalVM stack, including ...
GraalVM
graalvm.org › latest › reference-manual › js › JavaScriptCompatibility
GraalJS Compatibility
GraalJS provides the following function objects in the global scope as specified by ECMAScript, representing the JavaScript core library: Array, ArrayBuffer, Boolean, DataView, Date, Error, Function, JSON, Map, Math, Number, Object, Promise, Proxy, Reflect, RegExp, Set, SharedArrayBuffer, String, Symbol, TypedArray, WeakMap, and WeakSet.
GraalVM
graalvm.org › 22.0 › reference-manual › js › Modules
Using JavaScript Modules and Packages
GraalVM JavaScript supports the full ES modules specification, including import statements, dynamic import of modules using import(), and advanced features such as top-level await.
GraalVM
graalvm.org › latest › reference-manual › js › Modules
Using JavaScript Modules and Packages in GraalJS
GraalJS is compatible with the latest ECMAScript standard, and can be run in a variety of Java-based embedding scenarios. Depending on the embedding, JavaScript packages and modules may be used in different ways.
GraalVM
graalvm.org › latest › reference-manual › js › RunOnJDK
Run GraalJS on a Stock JDK
You can find it under org.graalvm.polyglot:js. We provide example projects running GraalJS embedded in Java on JDK 21 (or later) and using the Graal compiler: Polyglot Embedding Demo. Maven and Gradle projects for a simple JavaScript “Hello World” application.
Oracle
docs.oracle.com › en › graalvm › jdk › 22 › docs › reference-manual › js
GraalVM JavaScript and Node.js Runtime
July 15, 2024 - JavaScript must be enabled to correctly display this content · GraalVM provides an ECMAScript-compliant runtime to execute JavaScript and Node.js applications. It is fully standard compliant, executes applications with high performance, and provides all benefits from the GraalVM stack, including ...
GraalVM
graalvm.org › 22.2 › reference-manual › js › RunOnJDK
Run GraalVM JavaScript on a Stock JDK
GraalVM JavaScript can be started via ScriptEngine when graaljs-scriptengine.jar is included on the classpath. The engine registers under several different names, e.g., Graal.js. Note that the Nashorn engine might be available under its names as well. To start GraalVM JavaScript from ScriptEngine, the following code can be used:
GraalVM
graalvm.org › 22.1 › reference-manual › js › ScriptEngine
GraalVM
GraalVM provides a JSR-223 compliant javax.script.ScriptEngine implementation for running JavaScript. Note that this feature is provided for legacy reasons in order to allow easier migration for implementations currently based on a ScriptEngine.
GraalVM
graalvm.org › 22.1 › reference-manual › js › JavaInteroperability
JavaScript-to-Java interoperability
GraalVM JavaScript provides a Packages global property: ... GraalVM JavaScript supports the creation of Java arrays from JavaScript code.
GraalVM
graalvm.org › 22.0 › reference-manual › js › JavaScriptCompatibility
JavaScript Compatibility
GraalVM JavaScript provides the following function objects in the global scope as specified by ECMAScript, representing the JavaScript core library: Array, ArrayBuffer, Boolean, DataView, Date, Error, Function, JSON, Map, Math, Number, Object, Promise, Proxy, Reflect, RegExp, Set, SharedArrayBuffer, String, Symbol, TypedArray, WeakMap, and WeakSet.
GraalVM
graalvm.org › latest › reference-manual › js › Options
Options
For a full list of options of the JavaScript engine, pass the --help:js flag to the js launcher (available from GraalVM 22.1, for older releases use --help:languages). To include internal options, use --help:js:internal.
GitHub
github.com › graalvm › graal-js-jdk11-maven-demo
GitHub - graalvm/graal-js-jdk11-maven-demo: An example project how to run Graal/JavaScript on JDK 11 with Graal as optimizing JIT compiler for best performance. · GitHub
May 22, 2024 - This is a simple maven project that demonstrates how it's possible to run Graal.js on a stock JDK11. The application is a simple JavaScript benchmark embedded in a Java application which compares performance of Graal.js and Nashorn.
Starred by 179 users
Forked by 60 users
Languages Java 91.1% | Jsonnet 8.9%