Starting a Java application as fast as any executable with a memory footprint rivaling the most lightweight runtime engines is quickly becoming a reality, through Graal VM and ahead of time compilation. This in turn is a major boost for using Java for microservice and serverless scenarios.
I have created a Katacoda Scenario – a live, browser based handson environment that is prepared for you for running GraalVM 20.1. The scenario comes with a step by step tutorial that allows you to explore the key features of GraalVM – simply by click on code snippets that are then executed. You will see the main capabilities and their practical applicability with hardly any effort. The scenario includes examples of ahead of time compilation and runtime interoperability of various non-JVM languages with Java.
The scenario uses the GraalVM Community Edition Docker Container Image for release 20.1. This screenshot is taken from the scenario, right after running the image and connecting into it. You can see the Java Runtime message in the screenshot – based on GraalVM and the node runtime message from the same GraalVM runtime.
The Katacoda environment includes an on line Visual Studio Code instance that makes it very easy to inspect and edit code.
The Katacoda scenario demonstrates these features:
- JIT for Java
- AOT for Java
- Polyglot Runtime for Node, JS, Python, R, Ruby, …
- Multi directional polyglot interoperability
Note: the scenario environment is available for 60 minutes. You can restart the scenario as often as you like – starting from scratch with every restart.
The scenario features in the live demonstrations that I presented in the ACEs@home session that is shown in this YouTube recording:
Slide deck for the presentation How and why GraalVM is quickly becoming relevant for you : https://www.slideshare.net/lucasjellema/how-and-why-graalvm-is-quickly-becoming-relevant-for-developers-aceshome-june-2020