3 ms·
The AOT in the OpenJDK? It actually uses the same compiler, Graal, under the hood. But SubstrateVM is another level - it produces a single statically linked bin
by chrisseaton 9y ago
The AOT in the OpenJDK? It actually uses the same compiler, Graal, under the hood. But SubstrateVM is another level - it produces a single statically linked binary of your Java program - no JVM needed on your system or included in the binary. It's all written in Java - the GC and everything.
- edko 9y agoThanks for the explanation. Is this for Java only, or can it be used with all other languages that produce JVM bytecode?
- chrisseaton 9y agoIt works on JVM bytecode in classfiles and doesn't have an opinion on where it came from. Some JVM languages may be more likely to use features that aren't supported though, like reflection on classes you haven't annotated. I think we've used it on Kotlin and Scala at least.
- edko 9y agoThis is very exciting. Are JavaFx applications supported?
- chrisseaton 9y agoI don’t know how it’s implemented, but JNI works I believe.