Looking for resources on simulating a VM in Rust

โš“ Rust    ๐Ÿ“… 2025-09-07    ๐Ÿ‘ค surdeus    ๐Ÿ‘๏ธ 1      

surdeus

Hi, I started learning Rust about a month ago, and this is my second project. Iโ€™m working on the Corewar project, and Iโ€™m a bit confused about how to actually simulate a virtual machine in code.

Iโ€™ve done nand2tetris part one before, but I still donโ€™t feel like I really understand the core ideas of building a VM. Iโ€™ve tried looking for resources, but most of what I find are either 1000-page books or full code dumps, and neither of those really click with me.

Are there any beginner-friendly resources (articles, videos, or short guides) that explain how to think about simulating a VM, preferably in a way that could help me apply it while learning Rust?

Thanks!

2 posts - 2 participants

Read full topic

๐Ÿท๏ธ Rust_feed