Skip to content
/ drool Public

A lox 🐟 bytecode interpreter, written in Rust πŸ¦€

Notifications You must be signed in to change notification settings

mjvmroz/drool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

413578e Β· Mar 8, 2025

History

66 Commits
Mar 7, 2025
Jun 22, 2021
Jun 27, 2021
Mar 7, 2025
Mar 7, 2025
May 16, 2021
Jun 15, 2021
Jun 15, 2021
Mar 8, 2025
Mar 7, 2025
Mar 7, 2025

Repository files navigation

ドルール (drool) 🀀 built with garnix

A work-in-progress lox 🐟 bytecode interpreter, written in Rust πŸ¦€.

"Drool" because crab stuffed salmon is an insanely decadent, guilty pleasure which produces this response.

This project likely won't do that, as it's my first foray into the language.

Approach

I'm trying to squeeze performance out of the VM, but am sacrificing a little for ergonomics in the dis/assembler, scanner and compiler.

It's possible that I'm losing a little juice through memory waste when decoding instructions in the VM. I think Rust should be able to understand through my inlining that the VM's use of the Op struct is transient in release builds, but I'm not 100% sure. 🐒