varabyte / kobweb

A modern framework for full stack web apps in Kotlin, built upon Compose HTML
https://kobweb.varabyte.com
Apache License 2.0
1.59k stars 71 forks source link

Investigate if WASM support makes sense for Kobweb #239

Open victorYghor opened 1 year ago

victorYghor commented 1 year ago

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

bitspittle commented 1 year ago

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.

yogurtearl commented 1 year ago

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.

bitspittle commented 1 year ago

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.