Skip to content

Latest commit

 

History

History
3 lines (2 loc) · 621 Bytes

README.md

File metadata and controls

3 lines (2 loc) · 621 Bytes

🥯 rlox

An implementation of the Lox language from the amazing Crafting Interpreters book in Rust! It passes all 246 of the tests provided and is 2-7x faster than jlox but around 1.5x slower than clox on my machine. I did a bit of profiling with cargo-flamegraph and cargo-instruments to optimize the hot paths but didn't want to spend too much time optimizing everything. It's also all safe Rust right now, though using some unsafe features could probably make it just as fast as clox.