darklang / dark

Darklang main repo, including language, backend, and infra
https://darklang.com
Other
1.67k stars 90 forks source link

Big interpreter rewrite #5406

Open StachuDotNet opened 2 months ago

StachuDotNet commented 2 months ago

Rewriting RuntimeTypes, the Interpreter, and PT2RT to:

Here are all of the wins (WIP):

I might get stuck on SqlCompiler and circle back to that in another PR - not sure yet.

It'll probably be another 2 weeks until this gets merged.

This closes #5222, closes #5130, closes #5071

StachuDotNet commented 1 month ago

thoughts on implemented match that I wanted to record in case my current plan doesn't end up working out: https://gist.github.com/StachuDotNet/5a8923721b255ad2a91c1c6dcc3e9b8e

Edit: it worked out (really well!) but might as well keep this around.