Join Slack
Powered by
is there a kmp wasm runtime? <chasm> doesn't resol...
# webassembly
s
S.
06/13/2026, 7:15 PM
is there a kmp wasm runtime?
chasm
doesn't resolve for commonMain. I'm exploring a way to run arbitrary code in a compose app
S.
06/13/2026, 7:18 PM
that would include the wasmJs target if possible
e
ephemient
06/13/2026, 7:32 PM
chasm on kotlin/js uses the host's native wasm support; you could ask the maintainer if the same could be done for kotlin/wasm.
https://github.com/CharlieTap/chasm/pull/111
ephemient
06/13/2026, 7:33 PM
or just write that glue yourself
s
S.
06/13/2026, 7:36 PM
isn't this only about the gradle plugin? Because I actually don't need this, only the runtime host for .wasm files
e
ephemient
06/13/2026, 7:39 PM
no it isn't, it also set up
https://github.com/CharlieTap/chasm/blob/main/vm/src/jsMain/kotlin/io/github/charlietap/chasm/vm/JsVirtualMachine.kt
which uses the host's WasmModule/WasmInstance/etc.
ephemient
06/13/2026, 7:41 PM
wasm code will need to go through JS bridges to get to those types but it should work there too
s
S.
06/13/2026, 7:45 PM
oh I see. I just assumed because of the "codegen" title. but good to hear that it should be possible, thanks
10
Views
Open in Slack
Previous
Next