Skip to content

WASI p1 support #3893

@usiegl00

Description

@usiegl00

With SubstrateVM now compiling to WASI p1 with --tool:svm-wasm, next is TruffleRuby running on WASM.
I tried running the following with --tool:svm-wasm, but it looks like the --language:ruby flag was removed from the native-image tool.

native-image -o native-ruby --language:ruby

Any insight into hacking the mx build to target wasm would be very helpful.

See: https://2025.wasm.io/sessions/the-future-of-write-once-run-anywhere-from-java-to-webassembly/
See: #82

Activity

eregon

eregon commented on Jun 11, 2025

@eregon
Member

Right, that part is outdated, --language:ruby is a legacy macro and that's gone now.

These days, you would get the jars from Maven for org.graalvm.polyglot:ruby, and either use the Native Image Maven/Gradle plugin or get the full classpath of the dependencies via something like mvn dependency:build-classpath.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @eregon@usiegl00

        Issue actions

          WASI p1 support · Issue #3893 · oracle/truffleruby