I can see the the current kotlin 2.4.0 wasm backen...
# webassembly
c
I can see the the current kotlin 2.4.0 wasm backend still lowers to a module and internally uses some wasi preview 1 calls , then applies
wasm-tools
to create a component and adapt the preview 1 to preview 2 calls. I have a few questions about this: • Are there any plans to lower directly to a component? • Are there any plans to remove the preview 1.0 calls and shim? • Any plans on preview 3 or a more component model 1.0 (GC ABI) shape?
b
> • Are there any plans to lower directly to a component? At some point, yes, but not very soon. Right now, generating wasm core and using an external tool (wasm-tools) is simpler for us and more flexible for users. > • Are there any plans to remove the preview 1.0 calls and shim? Yes, it's part of moving libraries to wasi 0.2+ (See KT-64568, KT-87207) > • Any plans on preview 3 or a more component model 1.0 (GC ABI) shape? Yes and yes, but no specific timeline for that.
thank you color 4
j
To add to what Zalim said on point number 1, we do plan on making the wasm-tools usage seamless for users, so that it's entirely transparent and compiling a future wasm/wasi 0.2 gradle task will (also) give you a wasm component with no questions asked.
thank you color 2