Skip to content
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

Split/fork off racc-compiler #152

Open
zenspider opened this issue Apr 25, 2021 · 3 comments
Open

Split/fork off racc-compiler #152

zenspider opened this issue Apr 25, 2021 · 3 comments

Comments

@zenspider
Copy link
Member

Right now dependencies on the compiler are screwed over by racc (runtime) having a faux-gemspec that ships with ruby. Splitting out the compiler would make it trivial to have a developer dependency on the compiler and a runtime dependency on the regular racc gem.

I'm (very) happy to do the work to split it out if this is approved.

@joshcooper
Copy link

joshcooper commented Sep 12, 2024

We generate a parser during development and commit it. Later we run tests in bundler. Prior to Ruby 3.3, the generated parser could always require racc since it was a default gem. But in 3.3 it's a bundled gem. So it needs to be added to our Gemfile when running tests.

One possible workaround I found is to use racc --embedded so that the racc runtime is inlined into the generated parser and we no longer have a runtime dependency on racc

@zenspider
Copy link
Member Author

@joshcooper that is hellishly slow compared to using the C extension.

@joshcooper
Copy link

Yep just was mentioning that as a possible workaround (in our case we just need to run some tests).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants