Question about Kotlin/Wasm, I tried Kotlin/Wasm examples in github, however wabt(Wasm binary toolkit) says the generated wasm binary has problems, and it is failed to be loaded by non-browser wasm VMs, e.g. wasm3.
This youtube
video▾
mentioned there is a plan to support other wasm VMs, I thought the wasm binary should be same for all VMs, no matter if it is browser VMs or not, is it true?
And I am curious what is missing to support non-browser wasm VMs. e.g. wasm3.
e
ephemient
11/06/2023, 8:13 AM
wabt and wasm3 do not not support gc yet
ephemient
11/06/2023, 8:17 AM
nodejs does, but its version of v8 is out of date and doesn't support the correct gc opcodes
ephemient
11/06/2023, 8:19 AM
eventually they should catch up with the current wasm spec and things should work, but until then, you are limited in terms of which runtimes kotlin/wasm will run on
➕ 1
l
Lei Lei
11/06/2023, 9:05 PM
Got it, thanks for the explanation!
Is Kotlin/Wasm limited to Wasm runtimes with GC support, e.g. V8?
The video mentioned that Kotlin/Wasm plans to support other VMs, I am wondering what is missing to support other VMs, e.g. wasme, wasmedge. Is it the changes in Kotlin/Wasm compiler side or the runtime side to support GC?
e
ephemient
11/06/2023, 9:27 PM
it's on the runtime side to support the final wasmgc spec
ephemient
11/06/2023, 9:29 PM
well, there's also work on the Kotlin side to better support WASI and other ways to make use of the runtime