<https://x.com/bashorov/status/1844725893752553957...
# webassembly
b
r
I would like to see Ktor server running in wasm wasi runtime like this. Possible? When? 🙂
o
c
What advantages do we have using wasm wasi over say kotlin native in most cases? seems like extra steps? Or just that we can build one wasm target that would then run on any platform wasi is supports. (Sorry if this seems a dumb question)
b
In general, benefits of wasm (wasi) • security • portability — compile once run everywhere* • binaries more compact then native ones • Wasm VMs small and could quite fast ◦ module instantiation in *MICRO*secodns With more or less the same performance .
c
Sooo, we just reinvented the JVM, but faster?
☝️ 2
b
kinda
smaller, simpler, might be faster
but with GC there is long road to be faster than JVM
c
I'm not down on it, sounds cool, just trying to understand when to use one vs the ohter
Fair enough, I'm guessing the KT implementation relies on GC right now?
b
You can find a bit more about outside of browser usages here

https://www.youtube.com/watch?v=5NTVZrlRzsk&amp;t=2070s

👍 2
Right
s
@chrisjenx Running via wasmWasi will be much cheaper once related offering ready because serverless by default + much smaller footprint.
👍 1