I have written a JVM in Rust

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. rjvm

    A tiny JVM written in Rust. Learning project

    I have a few questions about the garbage collection. One of the hard parts of implementing a garbage collector is making sure everything is properly rooted (especially with a moving collector). you have the `do_garbage_collection` method marked unsafe[1], but don't explain what the calling code needs to do to ensure it is safe to call. How do you ensure there are no references to heap that are not rooted? This a not a trivial problem[2][3][4].

    Also note that I cloned the repo and tried to run `cargo test` every test fails with 'should be able to add entries to the classpath: InvalidEntry("/Users/troyhinckley/repos/rjvm/vm/rt.jar")'

    [1] https://github.com/andreabergia/rjvm/blob/be9c54066c64a82879...

    [2] https://manishearth.github.io/blog/2021/04/05/a-tour-of-safe...

    [3] https://without.boats/blog/shifgrethor-iii/

    [4] https://coredumped.dev/2022/04/11/implementing-a-safe-garbag...

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. Metascala

    A JVM written in Scala

  4. mmtk-core

    Memory Management ToolKit

    Great learning project, I'm glad the author is having fun.

    If they're interested in bolting on a GC, it couldn't hurt to look at MMtk. (https://www.mmtk.io/) Some high quality collection algorithms, written to be pluggable to various VMs, and written in Rust.

  5. rust-jvm3

    A JVM made for educational purposes that implements a subset of the specification

    Shameless plug of my similar project: https://github.com/tenaf0/rust-jvm3

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Mmtk: Memory Management Toolkit

    1 project | /r/hypeurls | 14 Dec 2022
  • Mmtk: Memory Management Toolkit

    2 projects | news.ycombinator.com | 14 Dec 2022
  • Garbage Collection with LLVM

    3 projects | /r/ProgrammingLanguages | 24 Sep 2022
  • Memory Management Toolkit – multi-runtime platform for language implementers

    1 project | news.ycombinator.com | 30 Jun 2022
  • Memory Management Toolkit – multi-runtime platform for language implementers

    1 project | /r/ProgrammingLanguages | 28 Jun 2022

Did you know that Rust is
the 5th most popular programming language
based on number of references?