Open luca992 opened 3 months ago
Are there any plans to be add it?
We don't have such plans at the moment. Please share your use cases.
The same use cases as a js
target web app, but backed by wasm. Just like how you can do this in rust with something like leptos.
Wasm kotlin is just faster than js (at least with compose-ui builds) while using less cpu from my experience. Also, I'd hope compiling to wasm could reduce the bundle size after wasm-opt
, as compiled js sizes in kotlin are also larger than compiled wasm for compose-ui builds
I'm also thinking about multi-thread coroutines will be available at WASM-target some day. Hence creating multi-thread business-logic for browser with UI on compose-html would be a good option. Much better than compose-web in many cases.
I'm also thinking about multi-thread coroutines will be available at WASM-target some day. Hence creating multi-thread business-logic for browser with UI on compose-html would be a good option. Much better than compose-web in many cases.
Unfortunately, I think multithreading on web with wasm is in the same same situation as Js. The only way you can do it is with web workers.
Unfortunately, I think multithreading on web with wasm is in the same same situation as Js. The only way you can do it is with web workers.
There's work on it to enable threads for webassembly, although it'll probably still take some time to get there.
Might be worth looking at some of the competition though: https://github.com/rjaros/kilua
compose.html.core
is not available forwasmJs
. Are there any plans to be add it?