kobweb icon indicating copy to clipboard operation
kobweb copied to clipboard

Investigate if WASM support makes sense for Kobweb

Open victorYghor opened this issue 2 years ago • 4 comments

It is possible to use this framework with web assembly or you have plans to make it's possible?

victorYghor avatar May 13 '23 01:05 victorYghor

Currently, Kobweb is not a WASM library nor does it plan to be at least for 1.0.

However, I'm very excited about Web Assembly, and I'm aware that GC support is coming soon. I plan to look more as soon as I get Kobweb past its 1.0 milestone (maybe a few more months?)

As I understand it, WASM is more about business logic, not UI, so I'm not yet sure if it makes sense for Kobweb (which leans heavily on HTML / CSS technologies) to target it.

bitspittle avatar May 13 '23 04:05 bitspittle

Kotlin/WASM can be used to build a DOM based site or just render pixels on a canvas (via Skiko and Compose)

https://www.youtube.com/watch?v=oIbX7nrSTPQ

Once wasm-gc is enabled by default on browsers, Kotlin/WASM is a viable replacement for all Kotlin/JS browser use cases.

yogurtearl avatar Aug 02 '23 20:08 yogurtearl

Sweet, good to know, and thanks for the link. (And nice to see you here Michael!)

I'll keep this open then and migrate to a wasm target when the feature becomes available more broadly.

bitspittle avatar Aug 03 '23 04:08 bitspittle