One question, I'm trying to run this example, <htt...
# webassembly
j
One question, I'm trying to run this example, https://github.com/Kotlin/kotlin-wasm-examples/tree/main/wasi-example, with wasmtime, but when I do it like this:
wasmtime kotlin-wasm-wasi-example-wasm-wasi.wasm
from the
/build/compileSync/wasmWasi/main/developmentExecutable/kotlin
directory if fails with this message: Error: failed to parse WebAssembly module Caused by: Invalid input WebAssembly code at offset 366: rec group usage requires
gc
proposal to be enabled
Anyone can help me with this?
s
Wasmtime has not yet implemented the Wasm GC feature that Kotlin needs: https://github.com/bytecodealliance/wasmtime/issues/5032
👍 1
j
Thanks for letting me know about this!
e
You may try using it with Node.js for now, @João Esperancinha
👍 1
Since it does support GC
j
I'll have a look at that. Thanks!
s
Oh, I assumed you needed wasmtime in particular. You can find steps for running Node (and Deno!) in the repo you mentioned. Adding Gradle
-i
flag would show node and deno cli commands.