Integrate WASM-based Prism parser into standard build#9184
Draft
headius wants to merge 7 commits intojruby:masterfrom
Draft
Integrate WASM-based Prism parser into standard build#9184headius wants to merge 7 commits intojruby:masterfrom
headius wants to merge 7 commits intojruby:masterfrom
Conversation
Member
Author
|
Performance of a "gem list" benchmark with legacy parser versus wasm prism (after sufficient warmup): legacy: wasm prism: Wierdly this runs much better with tiered compilation turned off ( |
Member
Author
|
Benchmark command line: Remove |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This integrates jruby-prism 2.0 by shading it into our main JRuby jar and loading it from there. Incoming packages considered to be for internal use are moved under `org.jruby.internal`. The output of parser statistics now shows the actual class of the parser, since either or both can be activated now.
If this is parsed by Prism, it's a ProgramNode contained in a ParseResult, so just use the ParseResult.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This continues the integration of Prism parser wrapper libraries from the jruby-prism project by shading it in and including the new WASM support and Chicory libraries.
This is a prototype of how it should eventually look and this PR is intended to iterate.
Notable behavior changes so far:
-Xparser.prismbut the dynamic library is not configured or present, it will fall back on the wasm parser.-Xparser.prism.wasmthe wasm parser will be used.The artifacts this depends on comes from: