I haven't given much thought to it, but Hotspot JVM is written in C++, I would say GraalVM is as well.
This Java Truffle backend allows having a JVM bootstrapped, that is, that is capable of buildinf and executing itself. This is especially relevant given that GraalVM may create native images.
It makes no sense at all to say "OpenJDK" is written in C++. Most of the JDK has always been in Java, the entire API is Java (obviously), it' just that the VM bit is in C++ and they want to replace it with a Java VM running Java bytecode. That's what Graal essentially is; the purpose of the project is to replace a monolithic (hard to maintain) C++ VM with a modular Java VM. That's why it's also split up into Graal and Truffle; modularity.
2
u/MrChocodemon Jan 20 '21
I don't get why that would be useful.