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

Farzad Pezeshkpour

12/11/2023, 10:51 AM
Hello good morning! I'm new to this Slack: is this the right channel to discuss Kotlin wasm on the server side? One part of our company makes heavy use of Kotlin on the server side. For a number of reasons we are keen to move runtime from the jvm to wasm.
s

Svyatoslav Kuzmich [JB]

12/11/2023, 10:53 AM
Hello and welcome! You are in the right channel
r

Robert Jaros

12/11/2023, 11:11 AM
You can find some experiments with kotlin/wasm on the server side here: https://github.com/kowasm/kowasm
f

Farzad Pezeshkpour

12/11/2023, 11:13 AM
Thank you @Robert Jaros !
a

andylamax

12/11/2023, 12:20 PM
curious. Moving to wasi??? or to wasm with nodeJs??
f

Farzad Pezeshkpour

12/11/2023, 12:57 PM
We are curious about WASI as a common standard.
Reading the code has been very valuable, thanks again @Robert Jaros. So, it looks like we would need to maintain our own version of the wasi interface in our projects.
I wonder if there is any plan for Jetbrains to maintain an official version?
s

Svyatoslav Kuzmich [JB]

12/12/2023, 5:37 PM
is any plan for JetBrains to maintain an official version?
It’s an interesting idea, but I don’t think many people will want to use the raw version of WASI interface. We use it internally for functions in our standard library, like printing, time, and RNG. Libraries for input/output, like okio, might use it to implement their existing file and network interfaces. In the upcoming WASI preview 2, anyone will be able to generate any WASI interface from .wit files, and build on top of them.
f

Farzad Pezeshkpour

12/14/2023, 4:00 PM
thanks @Svyatoslav Kuzmich [JB]! We didn't realise that the standard library would work with wasi compliant runtimes like wasmer, wasmtime etc. We also like the ability to generate interfaces from .wit files.
2 Views