https://kotlinlang.org logo
#javascript
Title
# javascript
g

gle.bushkaa

03/21/2024, 8:29 PM
Has anyone had experience with Kotlin/Wasm? What is better to use Kotlin/Wasm or Kotlin/Js?
r

Robert Jaros

03/21/2024, 8:45 PM
It depends on your goals.
Wasm is still experimental
And doesn't work in safari browser.
The bundle size is usually bigger.
This is the price you currently have to pay for greater speed.
g

gle.bushkaa

03/21/2024, 8:51 PM
So, if I want to build simple web app, then I can use kotlin/js and dont care?
r

Robert Jaros

03/21/2024, 8:52 PM
In general yes.
g

gle.bushkaa

03/21/2024, 8:53 PM
What is preferable to use for ui, compose or kotlin html?
r

Robert Jaros

03/21/2024, 8:54 PM
I'm building a framework which will allow to create web apps for Kotlin/Wasm and Kotlin/Js with the same code. You can check https://github.com/rjaros/kilua
🙌 3
🙌🏾 1
And if you just want to use Kotlin/JS there are many frameworks, check #kvision, #kobweb, #compose-web, #doodle, #fritz2 and #react.
It's definitely better to use one of them instead of doing plain html.
g

gle.bushkaa

03/21/2024, 8:56 PM
Which framework is easier to use? I need to build simple mvp
Im android dev actually
r

Robert Jaros

03/21/2024, 9:03 PM
I'm the author of KVision, so I'm not impartial here 😉 But if you come from android world and want to build typical static website with kotlin/js, you should probably look at #kobweb.
Or just use compose multiplatform with web target.
g

gle.bushkaa

03/21/2024, 9:06 PM
Question to you, as to author Where did you find and learned such huge amount of information to build huge systems like this?
Is it only for wasm?
r

Robert Jaros

03/21/2024, 9:07 PM
compose? no, it can work with kotlin/js as well
❤️ 1
I just like building frameworks 😉 I'm learning by writing code 🙂
g

gle.bushkaa

03/21/2024, 9:09 PM
Im confused when I try to build even small navigation lib
n

Nick

03/22/2024, 3:05 AM
author of #doodle here as well. i think @Robert Jaros gave a good overview of the options for web. Doodle also supports wasmJS and desktop.
a

Arjan van Wieringen

03/22/2024, 11:06 AM
Compose HTML is great, it’s production ready and we have excellent results with it
2 Views