3 ms·
I did something very similar to this myself. My GC implementation was pretty heavily inspired by manishearth's Rust GC. My swing at the Crafting Intepreters in
by harpiaharpyja 2y ago
I did something very similar to this myself. My GC implementation was pretty heavily inspired by manishearth's Rust GC.
My swing at the Crafting Intepreters in Rust can be found here: https://github.com/mwerezak/sphinx-lang https://github.com/mwerezak/sphinx-lang
Although, at the time I was really interested in Lua's syntax so for extra credit I designed a completely different syntax for Lox closer to Lua's.
I'd love to revisit this project sometime and implement a register-based VM similar to Lua's.
- ltungv 2y agoThanks for sharing! That's a much more interesting project compared to mine xD. I had the intuition that rust-gc could be implemented in a simpler fashion by not being generic. Glad to see someone actually had it done.