computerraria
A fully compliant RISC-V computer made inside the game Terraria (by misprit7)
rjvm
A tiny JVM written in Rust. Learning project (by andreabergia)
computerraria | rjvm | |
---|---|---|
11 | 4 | |
3,121 | 1,405 | |
- | - | |
7.5 | 8.6 | |
5 months ago | 4 months ago | |
Rust | Rust | |
MIT License | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
computerraria
Posts with mentions or reviews of computerraria.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-08-28.
-
A JVM in Rust part 5 – Executing instructions
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
-
Someone crafted a redstone PC in Minecraft to play Minecraft inside Minecraft
I found the Terraria version more impressive: https://youtu.be/zXPiqk0-zDY
- College student implements computer in terraria
- Ubuntu 22.04 - RISC-V emulation
- [OC] I Made a 32-bit Computer Inside Terraria
-
RISC-V emulation on QEMU
The best RISC-V implementation is https://github.com/misprit7/computerraria
- Computerraria: A fully compliant RISC-V computer inside Terraria
rjvm
Posts with mentions or reviews of rjvm.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-08-28.
-
A JVM in Rust part 5 – Executing instructions
https://github.com/andreabergia/rjvm/blob/93e7e48db085e780b0...
-
I have written a JVM in Rust
Seems like that would take care of roots for the bytecode's themselves, but not for "native" functions[1]. Allocating a new object could call gc[2], and native functions are using the native callstack. It seems like it would be easy to allocate in a native function and any unrooted references would be invalidated. In fact I see a case like that here[3]. That method creates a reference with `expect_concrete_object_at` and then calls gc with `new_java_lang_class_object`. It avoids UB by not using `arg` after the call that gc's, but there is nothing stopping you from using `arg` again (and having an invalid reference).
[1] https://github.com/andreabergia/rjvm/blob/main/vm/src/native...
[2] https://github.com/andreabergia/rjvm/blob/be9c54066c64a82879...
[3] https://github.com/andreabergia/rjvm/blob/be9c54066c64a82879...
What are some alternatives?
When comparing computerraria and rjvm you can also consider the following projects:
riscv-tests
Metascala - A JVM written in Scala
WireHead - A Terrarria mod that reimplements the wiring system much more efficiently
mmtk-core - Memory Management ToolKit
rust-jvm3 - A JVM made for educational purposes that implements a subset of the specification
Graal - GraalVM compiles Java applications into native executables that start instantly, scale fast, and use fewer compute resources 🚀