Stream: general

Topic: Java bytecode to Wasm


view this post on Zulip Joel Dice (Aug 01 2022 at 17:09):

Has anyone here experimented with translating Java bytecode to Wasm for use in non-browser contexts (e.g. WASI)?

I've done a bit of research and experimentation on this myself recently, culminating in a simple proof-of-concept using TeaVM. I'm planning to expand that into something that supports some or all of WASI, but I thought I'd ask here in case others are working on something similar (or know of someone who is). And if you're not yet working on such a thing but would like to help, let me know!

Contribute to dicej/spin-http-java development by creating an account on GitHub.
Compiler of Java bytecode to JavaScript. Contribute to konsoletyper/teavm development by creating an account on GitHub.

view this post on Zulip Bailey Hayes (Aug 01 2022 at 21:01):

I would love to see java compile to Wasm. I recommend checking in with GraalVM for Wasm and WASI collaborators.

view this post on Zulip Bailey Hayes (Aug 01 2022 at 21:22):

This appears to be the relevant issue: https://github.com/oracle/graal/issues/3391

Feature request Is your feature request related to a problem? Please describe. I'm trying to port closure compiler to wasm so that it can run from within a browser. Describe the solution you&#3...

view this post on Zulip Joel Dice (Aug 05 2022 at 23:04):

For those who are interested, here's what I've done so far: https://github.com/konsoletyper/teavm/pull/610

This is a first pass at implementing support for WASI. It adds a new TeaVMTargetType of WASI, which is mostly the same as WEBASSEMBLY except it generates a module suitable for execution by a WASI-...

Last updated: Dec 23 2024 at 13:07 UTC