Building OpenJDK 9 with Graal

As described in the project page, Graal is:

A quest for the JVM to leverage its own J.

Upon completion of this project, JVM functions will be exposed via Java APIs, so the end user will be able to have access to the most low-level manipulation. It will be possible to write a Java compiler in Java, for example. Now, we will try to give it a test.

There is also Truffle, a framework that allows you to build your own language using Graal VM. It builds upon a notion of an abstract syntax tree (AST), and the process, in fact, is really simple. To have a better look, see the following link:

https://cesquivias.github.io/blog/2014/10/13/writing-a-language-in-truffle-part-1-a-simple-slow-interpreter/

Getting ready

You will need an ...

Get OpenJDK Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.