https://kotlinlang.org logo
#webassembly
Title
# webassembly
t

tmphey

12/14/2023, 1:07 PM
Hello there! Not sure if it was asked before, but can I make calls from Kotlin to
.wasm
files? Like, say, there is sqlite compiled to wasm, is it possible to use it within kotlin project?
a

andylamax

12/14/2023, 1:25 PM
are you asking about wasm/wasi components??
t

tmphey

12/14/2023, 1:33 PM
I wasn't aware that I asked about this, but reading more, seems this is the right thing 😄
r

Robert Jaros

12/14/2023, 1:58 PM
I think it should be possible to call such functions using JS layer as a "proxy".
2
t

tmphey

12/14/2023, 2:15 PM
got it, thanks!
h

hfhbd

12/14/2023, 3:42 PM
You can also take a look at the sqldelight web worker driver using SQLite wann from Kotlin JS: https://github.com/cashapp/sqldelight/tree/master/drivers/web-worker-driver
5 Views