Skip to content

Conversation

@headius
Copy link

@headius headius commented Feb 3, 2026

This PR includes a large set of changes to update the WASM backend using latest versions of Chicory and help from @andreaTP to clean it up and get it ready for a public release.

The changes here should not affect the existing native-library Java wrapper, but we will need to agree upon a package name and Maven groupID that represent a domain we have some control over (org.prism does not qualify since prism.org is completely unrelated to this project).

I would like to get Maven artifacts published for the native and WASM wrappers before JRuby 10.1 is released in the next few weeks.

headius and others added 18 commits January 21, 2026 17:00
Nodes need access to RubySymbol and support APIs at least.
* It is a resource used as source code (in wasm) that is compiled
  for the project artifact.
* Added to Rake CLOBBER
Allow the buffer functions to manage the internal pointer and use
consistent argument order for calloc.
Primarily for testing purposes.
This is not all of the boot files but is sufficient to demonstrate
a memory fault in the AOT WASM parser.
This is only intended to ever be used with JRuby 10+, which already
requires Java 21.
* org.jruby.parser is base package for JRuby parsers
* org.jruby.parser.prism is for parsers based on Prism
* org.jruby.parser.prism.wasm is for the WASM Prism wrapper
@headius headius force-pushed the topic/javawasm_changes branch from 6d3a2f3 to 2235128 Compare February 3, 2026 20:24
Copy link
Collaborator

@kddnewton kddnewton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm generally fine with all of these changes. Would ruby-lang.org work?

@headius
Copy link
Author

headius commented Feb 3, 2026

@kddnewton Something based on that domain would be fine, but no hyphens in Java package names. Too bad ruby.org is being squatted.

I would propose the following:

  • Maven Group ID and Artifact ID: "org.ruby-lang" and "prism"
  • Package name: "org.ruby_lang.prism"

We'd need to register the group ID with the Maven Central folks (https://central.sonatype.org/register/namespace/#for-dns) and make sure anyone who wants to be able to publish Maven artifacts has access.

For the moment I've got the WASM bits all under the following:

  • Group and Artifact: "org.jruby", "chicory-prism" (could be changed to a ruby-lang group and "prism-wasm" or similar).
  • Package name: org.jruby.parser.prism for general bits and org.jruby.parser.prism.wasm for the wasm logic specifically.

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.

3 participants