Skip to content

Split/fork off racc-compiler #152

Description

@zenspider

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.

Activity

joshcooper commented on Sep 12, 2024

@joshcooper

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 commented on Sep 12, 2024

@zenspider
MemberAuthor

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

joshcooper commented on Sep 13, 2024

@joshcooper

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions