You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by "eye-gu (via GitHub)" <gi...@apache.org> on 2026/06/02 01:23:10 UTC

[I] Replace Wasmtime-Java (native) with Chicory (pure-Java) WASM runtime [shenyu]

eye-gu opened a new issue, #6353:
URL: https://github.com/apache/shenyu/issues/6353

   ### Is there an existing issue for this?
   
   - [x] I have searched the existing issues
   
   ### Current Behavior
   
   The WASM plugin currently depends on `wasmtime-java`, which bundles native libraries (`.so` / `.dylib` / `.dll`) via JNI. This causes:
   
   1. **Project inactivity** — [`wasmtime-java`](https://github.com/kawamuray/wasmtime-java) has not been actively maintained, with no recent releases or commits, making it a risk for bug fixes and new WASM features
   2. **Platform lock-in** — native binaries must match the deployment OS and arch precisely. In practice, the current test suites cannot actually load and execute WASM on GitHub CI because the native wasmtime library is unavailable in that environment. Tests are mocked with fake Java implementations that bypass WASM entirely, meaning **no real WASM execution is being tested**
   
   **Proposal:** Replace wasmtime-java with [Chicory](https://github.com/dylibso/chicory) — an actively maintained pure-Java WASM runtime (Apache 2.0 licensed). Benefits:
   
   - **Actively maintained** — regular releases, responsive community
   - **Runtime compilation** — Chicory's `compiler` module translates WASM bytecode to JVM bytecode at load time via `MachineFactoryCompiler`, significantly improving execution speed over interpreter mode. Also support AOT compilation.
   - Zero native dependencies, runs anywhere the JVM runs
   
   
   ### Expected Behavior
   
   _No response_
   
   ### Steps To Reproduce
   
   _No response_
   
   ### Environment
   
   ```markdown
   ShenYu version(s):
   ```
   
   ### Debug logs
   
   _No response_
   
   ### Anything else?
   
   I am willing to submit a PR.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Replace Wasmtime-Java (native) with Chicory (pure-Java) WASM runtime [shenyu]

Posted by "Aias00 (via GitHub)" <gi...@apache.org>.
Aias00 commented on issue #6353:
URL: https://github.com/apache/shenyu/issues/6353#issuecomment-4599071950

   sounds good to me


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Replace Wasmtime-Java (native) with Chicory (pure-Java) WASM runtime [shenyu]

Posted by "Aias00 (via GitHub)" <gi...@apache.org>.
Aias00 closed issue #6353: Replace Wasmtime-Java (native) with Chicory (pure-Java) WASM runtime
URL: https://github.com/apache/shenyu/issues/6353


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Replace Wasmtime-Java (native) with Chicory (pure-Java) WASM runtime [shenyu]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #6353:
URL: https://github.com/apache/shenyu/issues/6353#issuecomment-4597879036

   👋 Hello @Aias00
   
   A new issue has been opened by @eye-gu:
   - **Title**: Replace Wasmtime-Java (native) with Chicory (pure-Java) WASM runtime
   - **Link**: https://github.com/apache/shenyu/issues/6353
   
   Please review when you have time. Thank you! 🙏


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org