Skip to content

Fast, LALR backend #80

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 10 commits into from
Closed

Fast, LALR backend #80

wants to merge 10 commits into from

Conversation

alvinwan
Copy link
Owner

The commits in this PR are all created by Codex -- with some light editing in a few cases.

  • However, there are a few very brittle rules that overfit to the tests. Either I ask Codex to refactor, or I start over and curate more careful, instead of blindly accepting Codex patches.
  • On one hand, this was a fun exercise to try Codex, but more importantly, this shows just how much faster the LALR backend is. On main, the entire test suite of 123 tests takes about 4s to run. On this branch, 84 tests takes ~0.2s to run. That's ~20x faster.

As is, this PR isn't really ready to merge, but it's a proof of concept -- and a quick Codex-generated version is good enough for a poc.

@alvinwan alvinwan closed this Jul 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant