rlox icon indicating copy to clipboard operation
rlox copied to clipboard

PR for tagged handle

Open zesterer opened this issue 5 years ago • 2 comments

Hello!

I'm the original author of broom. I love what you're doing here, really great work. If you wanted to open a PR for your TaggedHandle code I'd be very happy to accept it upstream!

This aside, I wonder whether you'd be interested in working with a few others (@nilq and @cedric-h and myself) on a scripting language for Rust? Your bytecode interpreter is impressive work. The syntax of the language, https://github.com/zesterer/leon, is similar to Lox but supports Rust-style functional syntax like conditions-as-expressions, implicit returns, loop breaking with expressions, etc.

Right now we have a functioning AST walker that demonstrates most of the language, but the real trick will be to have a bytecode interpreter and simple optimisation: existing pure-Rust scripting languages like https://github.com/jonathandturner/rhai don't have this currently.

zesterer avatar Apr 28 '20 13:04 zesterer

Hey @zesterer, first off thanks for broom! I appreciate the feedback, this project has been one of my first forays into bytecode interpreters and I've really enjoyed it.

Apologies for the wait on getting back to you - given everything going on right now I haven't even had the time to work on this project itself. For similar reasons I don't think I can commit to any work right now, but I'd still be happy to take a look at the repo. The project certainly sounds interesting!

That said, I've gone ahead and opened https://github.com/zesterer/broom/pull/3 to upstream TaggedHandle - it's the least I can do.

cwbriones avatar May 17 '20 23:05 cwbriones

Much appreciated, thanks!

zesterer avatar May 18 '20 21:05 zesterer