https://kotlinlang.org logo
Title
s

Svyatoslav Kuzmich [JB]

09/24/2021, 8:25 PM
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

altavir

09/24/2021, 8:28 PM
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

mcpiroman

09/24/2021, 8:38 PM
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

Arslan Armanuly

09/24/2021, 9:07 PM
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

Svyatoslav Kuzmich [JB]

09/24/2021, 9:22 PM
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

napperley

09/24/2021, 10:42 PM
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

darkmoon_uk

09/25/2021, 12:36 AM
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

smallshen

09/26/2021, 6:31 AM
SKIKO!!!
:jetpack-compose: 7
n

Nikky

09/27/2021, 5:57 PM
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

Mahdi Safarmohammadloo

09/28/2021, 11:41 PM
WebGPU + Kotlin/Wasm = Great game Engine !
❤️ 2
d

Desmond van der Meer

09/30/2021, 6:24 AM
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

Brian G

10/04/2021, 9:23 PM
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