HoneyPony / jaylox

A compiler/transpiler targetting C, for the Lox language from Crafting Interpreters
0 stars 0 forks source link

Clox parity #2

Closed HoneyPony closed 3 months ago

HoneyPony commented 3 months ago

I want to get jaylox in a state where it runs sort of "head to head" with clox before I start adding too many other optimizations.

Once all these features are done, it would be interesting to benchmark clox vs jaylox. Then, I can start implementing new optimizations.

HoneyPony commented 3 months ago

Note: the "Possible optimization" was implemented much more elegantly than I originally thought, in commit 5363019. This makes method calls much faster, speeding up zoo.lox by about 40%. This wasn't really in clox but it's good to have it done now.

As far as "Bug fixes" go I'm considering that done as well. That said, the real question is whether the "clox parity" tag has all the bugs fixed, which isn't totally clear... but that's OK. If I ever write some tests to really compare my "clox parity" versus the newer versions, I will find out then.