For a while I’ve wanted to work through this book in Rust, and while I could find some finished (and often further refined) implementations of lox
in Rust, I was not able to find an equivalent step-by-step snapshot of code at the end of each exercise of the book in Rust.
I decided to try doing the first exercise myself and record the progress to hopefully help others in the future.
The code in the video is not (intended to be) the most idiomatic Rust, as I was trying to stick as closely to the source material in Java as possible, but I think that in a way this has its own advantages for people who are interested in learning more about Rust.
Here is an alternative Piped link(s):
https://piped.video/watch?v=H2I1SEOxQ_k
Piped is a privacy-respecting open-source alternative frontend to YouTube.
I’m open-source; check me out at GitHub.