News for hackers. Stuff that matters.
Re:Crafting Interpreters with Rust: On Garbage Collection by harpiaharpyja on Wednesday July 31, 2024 @07:27PM (#41124622)
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

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.

Re:Crafting Interpreters with Rust: On Garbage Collection by ltungv on Thursday August 01, 2024 @04:48AM (#41127257)
Thanks 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.