Is Kotlin/WASM able to interop with libraries writ...
# webassembly
s
Is Kotlin/WASM able to interop with libraries written in other languages that compile to Wasm? For example, say I want to interop with a C++ library that I can build for WASM. How would I go about that interop in Kotlin? Are there docs, examples, or tools I can read up on?
j
You probably will want to wait for https://youtrack.jetbrains.com/issue/KT-64569 such that things are bit more turnkey
đź‘€ 2
s
Cool, I'm in no rush so happy to wait for that
m
But be aware that we are already waiting for this for more than a year and “It was decided to pause the ticket and put all efforts towards Wasm Beta release.”
Your best bet at the moment is to go through the JS interop. Most tools which can compile other language to WASM also generate a JS binding and that can be called from Kotlin/WASM code.
a
Also, there is an example of such interop here: https://github.com/Kotlin/kotlin-wasm-examples/pull/57/files
m
And why has this example never been merged? It could be helpful for some people.
a
CC: @bashor