What is serverless with Java? - DZone Java dzone.com - get the latest breaking news, showbiz & celebrity photos, sport news & rumours, viral videos and top stories from dzone.com Daily Mail and Mail on Sunday newspapers.
by
GraalVM has released major version 21.0 with a new component, Java on Truffle, that provides a Java Virtual Machine (JVM) implementation written in Java. GraalVM is itself a polyglot virtual machine that provides a shared runtime to execute applications written in multiple languages like Java, Python, and JavaScript.
Prior to this release, running Java applications in GraalVM was possible by using the Java HotSpot VM with the GraalVM Just-In-Time (JIT) compiler, or by compiling to a native executable using GraalVM Native Image. With this release, Java on Truffle, a JVM written in Java using the Truffle framework, provides an additional option to run Java applications.
Up until now, GraalVM has offered two ways to run Java programs: using the Java HotSpot VM with the GraalVM JIT (just-in-time) compiler, and compiled to a native executable using GraalVM Native Image.
Today, weâre happy to announce a new way to run Java on GraalVM. GraalVM 21.0 introduces a new installable component, named
espresso, which provides a JVM implementation written in Java.
Java on Truffle place in the GraalVM architecture
Espresso makes it possible to run Java code via the Truffle framework elevating Java to the level of the other languages supported on GraalVM.
Try it out
Trying Java on Truffle out is extraordinary straightforward. It is available as a component installable into a base GraalVM distribution with a