5 ms·
Wait, GraalVM is implemented in Java? Does that mean to run it you need another JVM to run it on top of? That sounds stupid... Maybe you need another VM just t
by pencilguin 4y ago
Wait, GraalVM is implemented in Java?
Does that mean to run it you need another JVM to run it on top of? That sounds stupid... Maybe you need another VM just to run it on once, so it can translate itself to native code on the target?
- dragonwriter 4y ago> Does that mean to run it you need another JVM to run it on top of? GraalVM is the regular HotspotVM integrated with the GraalVM compiler (which is normally AOT compiled as a native library, but can be run as a JAR); it also supports tooling with the ability to compile code targeting the JVM to a native executable, as well as leveraging AOT compilation itself. https://www.graalvm.org/22.3/reference-manual/native-image/ https://www.graalvm.org/22.3/reference-manual/native-image/
- kaba0 4y agohttps://news.ycombinator.com/item?id=33341760 https://news.ycombinator.com/item?id=33341760 Graal reuses all the insanely good GC implementations, observability tools etc already present in OpenJDK (as throwing all that away would be stupid).
- whartung 4y agoLots of languages and run times are self hosting today. There are several Java VMs out there. This is but one of them. Its been demonstrated that it's not that hard to create an operational Java VM from scratch. A straightforward interpreter can do the job. The VM doesn't change the source language.
- nikanj 4y agoThe same way the c++ compilers, runtimes and standard libraries are implemented in c++.