Hi people! Would anyone like to share what applica...
# webassembly
s
Hi people! Would anyone like to share what applications you would be interested in developing using Kotlin/Wasm? My initial guess is that it could become a good fit for sharing domain logic using multi-platform and/or building client-heavy web apps. I would like to know what you think.
a
I would like to move visualization tools and maths to 100% kotlin which would look much better with wasm. Indeed it could be count as client-heavy.
1
I also was thinking about serverless device controllers.
m
I want to build a game on chromium (electron/nwjs/ultralight) and have a framework side compiled as wasm and the high level game logic as JS (because I want it to be easily modable). Thus a wasm-js interop is also important for that.
🙌 1
a
Along side of writing client heavy computations, having a kotlin/js-kotlin/wasm interop and kotlin/wasm-(other wasm stuff) interop would sound good, having libraries written in c with typesafe interop would help a lot
s
kotlin/js-kotlin/wasm interop
Interesting, we haven’t planned anything special for K/JS <-> K/Wasm interop 🤔. The idea is that K/JS projects would be able to be ported to K/Wasm with some restrictions applied to JS interop.
kotlin/wasm-(other wasm stuff) interop
This is what Interface Types Proposal promises to enable, but it is at early stage and I don’t know when it will be ready. Until that I would expect wasm modules written in different languages to be glued together via JS.
n
Also in full support for bi directional K/JS <-> K/Wasm interop. Might also want to think about having a bi directional interop system in place between K/Wasm <-> K/Native. Sure it sounds strange at first but makes a lot of sense in cases where K/Wasm is used for a GUI frontend application, and K/Native is used for the backend/low level stuff that K/Wasm doesn't have access to.
d
I'm interested in K/WASM for building Web Applications in general, as a better way of developing for the browser. Being able to compile multiple languages for a safe, sand-boxed browser VM has been a long time coming; and JavaScript has enjoyed a longer life on the browser than it ever really deserved, to the detriment of the web ecosystem. I am currently building a rich-Client/Server application using Compose/MP and hope to use WASM instead of Kotlin/JS as soon as it becomes viable.
👍 6
8
s
SKIKO!!!
jetpack compose 7
n
we are looking at building a map centric webapp, .. probably using JS interop with maplibre-gl-js or such business logic, api, serialization and such in multiplatform code ofc presentation layer.. depends on which libraries will be available for k/wasm, nice would be some UI framework like fritz2 based on compose-web and if we want to render everything by hand or use the DOM (like we do currently)
👍 2
m
WebGPU + Kotlin/Wasm = Great game Engine !
❤️ 2
d
We're developing an iOS/Android app using KMM that syncs its state with a server, but also works fully offline, so all logic is shared between backend and frontend. We'd love to extend this to web as well. It's already running using Kotlin/JS (+react), but it's quite heavy and the lack of multithreading is definitely an issue. I'm super excited about what Kotlin/Wasm could do for us
👍 3
b
I'm already shipping a Kotlin/JS web app using a shared codebase with Android/iOS clients, but my JS file comes in at 5mb. Will Kotlin/WASM produce significantly smaller binaries than Kotlin/JS? If so, I'm very interested.
If there was a skiko/compose port for web, I would also switch to that immediately.
💯 1
1
👍 2