Is it possible using Kotlin WASM to interact with ...
# webassembly
s
Is it possible using Kotlin WASM to interact with a wasm library written in C?
s
It is possible, but not yet easy due to lack of C ABI helpers (or Component Model, alternatively). You can
@WasmImport
C functions and exchange numbers and pointers. See Skia bindings as an example: https://github.com/JetBrains/skiko/blob/907e4cbcbe4b1d144de3fd3d495aa834492dd50f/skiko/src/wasmMain/kotlin/org/jetbrains/skia/impl/Native.wasm.kt
🙏 1
👍 1
s
thank you. Going to avoid for now