Hi, a general question: it looks like kotlin can b...
# webassembly
l
Hi, a general question: it looks like kotlin can be compiled to wasm for browser only do you know if there are plans to generate a server-side wasm application also?
r
There are two K/Wasm targets - wasmJs and wasmWasi.
a
kotlin can be compiled for server side as well
there is wasmJs - for nodejs and wasmWasi for wasi compliant modules
l
my bad, I didn't see it, thanks gratitude thank you
e
Basically it depends if you need JS interop. If you don't, use WASI
d
Are there any current or near-future use-cases where its preferable to target WASI for Server-Side Apps than, say, a JVM Application in a Docker Container? Is this 'solution' ultimately a case of resource usage efficiency?
e
WASI offers its own component model. You can build a WASI component and use it alongside other components built in whatever other language. You can't do that on the JVM.
Or better, you could, but there are nowhere as many languages as the ones that target WebAssembly (and WASI specifically).
You can also emulate the WASI component model spec in the browser to a certain extent. That's what VS Code is doing when offering a WASI layer to build extensions on top of it.
👍 2