-
Your understanding of Rust is correct, but the code uses unsafe: https://github.com/andreabergia/rjvm/blob/93e7e48db085e780b0...
As a result, when the VM gets dropped, the memory gets deallocated even if there are still objects that reference it.
-
CodeRabbit
CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
-
Take it full circle. Minecraft running Terraria emulating a 32-bit RISC-V CPU running Pong written in Rust - someone already did the latter part I believe, https://youtu.be/zXPiqk0-zDY?si=M0IHSzRLkaddwwKC
-
Graal
GraalVM compiles Java applications into native executables that start instantly, scale fast, and use fewer compute resources 🚀
Why would they? The direction for safer JVM research is to implement JVMs in Java, which has the advantage of being both memory safe outside a few tiny core areas (same as rust) whilst having cleaner code than the Rust impl (none of these problems with lifetimes).
See here: https://github.com/oracle/graal/tree/master/substratevm/src