Hi Kotlin developers, I need your advice. I want t...
# webassembly
v
Hi Kotlin developers, I need your advice. I want to be able to compile clean WebAssembly (
wasm32-unknown-unknown
) from Kotlin code. Even if this means giving up some language constructs and features, I still want to achieve it. Could you help me understand the best way to do this?
c
wasm32-unknown-unknown
is a target triple for LLVM, it basically means wasm32 with no assumed operating system. Is there any reason you want this configuration in particular? out the box the kotlin compiler supports wasm32-wasi which is way more flexible and allows you to compile code that makes syscalls
v
@CharlieTap Yes, I have a reason for it, and I can't use wasi in my case because there are new wasm feature included in wasi builds which my custom wasm runtime don't support
c
In WASI P1 I don't think there are any new wasm features? Only P2 and P3 which require the component model
v
@CharlieTap I will try, Thanks for your responses