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.
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.
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#.
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.
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.
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: Nov 22 2024 at 17:03 UTC