“
GraalVM is an ecosystem and shared
runtime offering performance advantages
not only to JVM-based languages such as
Java, Scala, Groovy, and Kotlin, but also to
other programming languages
4
Instructions for
use
With JDK
JDK 9 ships with Graal
1. Used by AOT by default
2. Can be enabled for JIT
-XX:+UnlockExperimentalVMOpt
ions -XX:+EnableJVMCI
-XX:+UseJVMCICompiler
Also JDK 10:
-XX:+UnlockExperimentalVMOpt
ions -XX:+EnableJVMCI
-XX:+UseJVMCICompiler
-Djvmci.compiler=graal
Without JDK
Just download Graal from Oracle’s website:
https://www.graalvm.org/downloads/
6
This is a slide
title
○ Graal: A dynamic just-in-time (JIT)
compiler that improves efficiency and
speed of applications through unique
approaches to code analysis and
optimization.
○ Graal Polyglot APIs: APIs for combining
programming languages in a shared
runtime.
contd...
10
This is a slide
title
○ Graal SDK: A set of APIs useful for
embedding Graal languages and
configuring native images.
○ Oracle HotSpot Java Virtual Machine
(JVM): A runtime environment for
JVM-based languages and supported guest
programming languages.
11
This is a slide
title
○ Run your code faster and more efficiently
○ Interoperate directly with most modern
programming languages
○ Embed languages with the Graal SDK
○ Create compiled native images
○ Use a single set of tools to monitor, debug,
and profile all your code
13