GraalVM

Uses your system voice; voice and rate in settings.

Snapshot

≈ 4 min read

Names in other languages

No names in other languages are held for this entry yet.

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

GraalVM is a Java Development Kit (JDK) written in Java. The open-source distribution of GraalVM is based on OpenJDK, and the enterprise distribution is based on Oracle JDK. Along with just-in-time (JIT) compilation, GraalVM can also compile a Java application ahead-of-time (AOT). This allows for faster initialization, greater runtime performance, and decreased resource consumption, but the resulting executable can only run on the platform it was compiled for. It provides additional programming languages and execution modes. The first production-ready release, GraalVM 19.0, was distributed in May 2019. The most recent major release is GraalVM 25.4, made available in September 2026. Major differentiators of GraalVM compared to the base JDK include: * Graal Compiler, a JIT compiler. * GraalVM Native Image, a technology for AOT compilation of Java applications. * Truffle Language Implementation Framework and GraalVM SDK, a Java-based framework and a collection of APIs for developing high-performance language runtimes. * GraalVM Polyglot API, an API to embed guest language code in a Java-based host application. * JavaScript Runtime, an ECMAScript 2023-compliant JavaScript runtime, as well as Node.js. * LLVM Runtime is a runtime to execute languages that can be transformed into LLVM bitcode.

GraalVM is a Java Development Kit (JDK) written in Java. The open-source distribution of GraalVM is based on OpenJDK, and the enterprise distribution is based on Oracle JDK. Along with just-in-time (JIT) compilation, GraalVM can also compile a Java application ahead-of-time (AOT). This allows for faster initialization, greater runtime performance, and decreased resource consumption, but the resulting executable can only run on the platform it was compiled for. It provides additional programming languages and execution modes. The first production-ready release, GraalVM 19.0, was distributed in May 2019. The most recent major release is GraalVM 25.4, made available in September 2026. Major differentiators of GraalVM compared to the base JDK include: Graal Compiler, a JIT compiler. GraalVM Native Image, a technology for AOT compilation of Java applications. Truffle Language Implementation Framework and GraalVM SDK, a Java-based framework and a collection of APIs for developing high-performance language runtimes. GraalVM Polyglot API, an API to embed guest language code in a Java-based host application. JavaScript Runtime, an ECMAScript 2023-compliant JavaScript runtime, as well as Node.js. LLVM Runtime is a runtime to execute languages that can be transformed into LLVM bitcode. Another advantage of GraalVM is the possibility to embed code from a guest language in Java and write "polyglot" applications. A developer can integrate JavaScript, Python, or other supported languages inside Java source code, granting them the characteristic advantages of those languages. A host Java application and a guest language pass data back and forth in the same memory space. It is possible thanks to the Truffle Language Implementation Framework and the GraalVM Polyglot API. Below is the example how to call a function defined in Python from Java: try (Context context = Context.create()) { Value function = context.eval("python", "lambda x: x + 1"); assert function.canExecute(); int x = function.execute(41).asInt(); assert x == 42; } The Python function increments its input value by one and returns the result to the host language. From Java, for security purposes, we ask first if the variable function can be executed via the canExecute() call, and then we invoke the function with the execute() call. Find more examples in the Embedding Languages reference documentation.

Text derived from https://en.wikipedia.org/w/index.php?oldid=1377688887 under CC BY-SA 4.0; modifications have been made.

Sources cited in this revision

34 named source(s) extracted from the cited revision. A source with no author is shown by its publication; nothing is invented.