# webassembly

alex snaps

03/25/2020, 9:11 PM
After fooling around a bit, we finally could get a simple Kotlin program to export the entry point we needed (using the annotations to keep and export the symbol didn't seem to really do what we hoped for tho). That's also working around the WASI expected functions to pretend they are there, not a big deal, but we'd rather not have the whole JS interop part of our modules… These are expect to be lightweight functions (think FaaS, loaded as dyn libs effectively). Are we looking at Kotlin Native's support for Wasm in a too early stage? Or are we just looking at the wrong set of documentation? Or source code? Anyone can point us to either where we could find something to help ourselves, or if what we're trying to do is just not a real option right now using Kotlin? We'll keep on giving it a spin tomorrow, but any pointers would be greatly appreciated.


03/25/2020, 9:58 PM
It is significantly easier to do FaaS with Kotlin Native via the linuxX64 target than it is to do it via the wasm target. Can find a FaaS sample here:
JetBrains are currently in the process of developing a new Kotlin development platform called Kotlin WASM (

), which is in the early stages of development ( ).
👍 2

Svyatoslav Kuzmich [JB]

03/25/2020, 10:30 PM
Current Kotlin/Native Wasm target development is suspended. We want to replace it with a dedicated Kotlin/Wasm platform, but it might take some time. We are focusing on browser embedders initially, and those need a small code size, browser APIs and JS interop. That’s why we are aiming for Wasm with future featues like GC, which would help with browser needs. I’d like to ask how browserless WASI-enabled mode can be useful to you. What advantages do you want it to have over JVM or Native platforms? What kind of VMs are you planning to run it on? Would those VMs be willing to support Wasm GC?
👍 4

alex snaps

03/26/2020, 12:07 PM
Maybe we can setup a quick DM or Hangout or other chat…


04/09/2020, 2:51 PM
@alex snaps sorry for the delay, we would happy to chat with you to get more about your cases and requirements you have, and to answer to your questions.