Stream: wasmtime

Topic: Java wasmtime support?


view this post on Zulip Chris Hoefgen (Jul 07 2023 at 21:52):

Does anyone have any recommendations on wasmtime support in Java? We have been using this library https://github.com/kawamuray/wasmtime-java but it has several compatibility issues on different architectures and we are looking for something that has broader support.

Java or JVM-language binding for Wasmtime. Contribute to kawamuray/wasmtime-java development by creating an account on GitHub.

view this post on Zulip Joel Dice (Jul 07 2023 at 21:57):

Can you elaborate on the architecture limitations of wasmtime-java? Wasmtime doesn't support a lot of architectures to begin with (e.g. no 32-bit arch support), so any Java wrapper is going to inherit that limitation.

view this post on Zulip Chris Hoefgen (Jul 10 2023 at 15:16):

Sure, the main issues we are running into right now is that it is limited to x86 architectures and that it is linked to GLIBC 2.31 which is newer than some of the older, but heavily used, linux distros out there. We are building SDKs for our product that integrate with other infrastructures across multiple languages and built our core logic in wasm to rapidly deploy new language support.

We noticed that some of the official wasmtime projects have better compatibility with more systems as we don't have the same issues with python or C#.

view this post on Zulip Lann Martin (Jul 10 2023 at 15:25):

If you are just looking to add support for some architecture that wasmtime already supports (e.g. aarch64), you could compile wasmtime-java yourself or work with wasmtime-java's maintainer(s) to add support to their release process.

view this post on Zulip Lann Martin (Jul 10 2023 at 15:29):

Supporting glibc <2.31 when building with github actions is somewhat complicated because the oldest linux distro image they support is ubuntu-20.04. This can be worked around, but again requires building yourself or working with maintainers.

view this post on Zulip Chris Hoefgen (Jul 10 2023 at 15:42):

Cool. I figured we would have to go that route, i was just hoping that someone might know of another Java implementation of wasmtime that was more robust.


Last updated: Dec 23 2024 at 13:07 UTC