Books/tutorials on writing Compilers/Interpreters/VMs in Rust?

Are there any good books/tutorials on implementing compiler or interpreter or VM in Rust ?

I do not care about the language being implemented. The primary focus is seeing how it is done in Rust.

EDIT: Vec<u8> -> AST is a solved problem. It is not the parsing part that interests me. It is the AST -> ... part that I am interested in.

1 Like

The dragon book is language-agnostic, and is still an excellent resource. You can often find the older editions relatively cheap, and most of the techniques haven’t changed that much:


Here's a guide to using Cranelift to create small Just-in-Time ( JIT ) compiled language:

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.