How to Shrink Your Compose Desktop App by 10x <gis...
# compose-web
k
How to Shrink Your Compose Desktop App by 10x gist.github.com/terrakok/bb876b257adfdedffdd6fda98457c8ce
πŸ‘€ 2
πŸŽ‰ 3
πŸ˜‚ 3
πŸš€ 1
.wasm 1
b
Hahaha interesting approach πŸ˜… But wouldn't it make more sense to have Compose target native?
☝️ 1
k
not sure. there is no single native target + more libraries support wasm target
of cource as a general idea: native support is better πŸ™‚
πŸ‘ 1
I don't argue
b
Yeah I'm sure it would be a great challenge! But would also avoid kotlin to wasm to JS to Rust πŸ˜‚
k
let's be realistic: most of apps don't need so direct access. usually what they need to parse jsons and to show lists πŸ˜†
πŸ˜… 1
b
very true πŸ˜„
k
and I prefer for such apps installed PWA πŸ˜‰
b
hey maybe in the future OSes will have direct support for WASM/Canvas applications.
k
it is already possible. and we are experimenting with it too. but the thing is Browser APIs
πŸ‘€ 1
b
[hey in fact isn't Compose semi supported or almost supported or experimental, on MacOS? Or am I remembering wrong?]
k
experimental
πŸ‘ 1
b
well maybe Wasm is the future for Desktop πŸ™‚
😱 1
Might be related; Having a β€œnative” Compose UI host could be what you meant.
b
very cool
(still JVM from what I can tell so not exactly what I meant)