gaetan
05/15/2019, 8:46 AMribesg
05/15/2019, 8:48 AMgildor
05/15/2019, 8:50 AMgaetan
05/15/2019, 8:54 AM@Composable
fun DIV.comment(model: Comment) {
div("comment") {
div ("comment-header") {
+ model.username
}
div ("comment-content") {
+ model.content
}
}
}
ribesg
05/15/2019, 8:54 AMkotlinx.html
then, isn’t it?gaetan
05/15/2019, 8:54 AMgildor
05/15/2019, 8:55 AMgaetan
05/15/2019, 8:55 AMgildor
05/15/2019, 8:55 AMgaetan
05/15/2019, 8:55 AMgildor
05/15/2019, 8:55 AMgaetan
05/15/2019, 8:55 AMgildor
05/15/2019, 8:56 AMFor the web we should use the standards.Yes,
<canvas>
!gaetan
05/15/2019, 8:56 AMgildor
05/15/2019, 8:57 AMUnhandled JavaScript exception: kotlin is not defined
gaetan
05/15/2019, 8:57 AMgildor
05/15/2019, 8:58 AMgaetan
05/15/2019, 8:58 AMgildor
05/15/2019, 9:00 AMlouiscad
05/15/2019, 9:06 AMgildor
05/15/2019, 9:06 AMlouiscad
05/15/2019, 9:07 AMgildor
05/15/2019, 9:08 AMgaetan
05/15/2019, 9:08 AMgildor
05/15/2019, 9:15 AMthemishkun
05/15/2019, 9:30 AMitnoles
05/15/2019, 2:16 PMLeland Richardson [G]
05/15/2019, 3:58 PMgaetan
05/15/2019, 5:05 PMGetting it to work on the client side (with kotlin js or kotlin native -> wasm) would be the real challenge.@Leland Richardson [G] I don’t understand why. Could you elaborate a little bit?
Leland Richardson [G]
05/15/2019, 6:24 PMgaetan
05/15/2019, 10:03 PMLeland Richardson [G]
05/15/2019, 10:28 PMjava.*
imports that you’d need to abstract outgildor
05/16/2019, 12:28 AMkotlin native -> wasmI don't think that K/N -> Wasm is a real choice for UI code, it's more like proof of concept, or an option to compile you existing native application for web. Until we have wasm backend, Kotlin JS is the only choice for web imo
Leland Richardson [G]
05/16/2019, 12:31 AMgildor
05/16/2019, 1:02 AMDCE didn’t work very wellIt works, you have about 60-80kb for hello world, but now Kotlin JS team works on new backend and promise that it allow them implement much better DCE soon
i think long-term it will be, i think right now i agree with you@Leland Richardson [G] I’m talking not about Wasm in general, but about compilation to Wasm using LLVM and K/N, it’s quite slow and not really efficient (compile to CPU-specific bitcode and then convert it to VM representation) But if one day we will have Kotlin for wasm it would be completely different story And of course when wasm will evolve and get more features. This discussed quite a lot in channel #webassembly '
Leland Richardson [G]
05/16/2019, 2:05 AMsdeleuze
05/16/2019, 5:13 AMjim
09/24/2020, 2:30 PMshikasd
09/24/2020, 2:38 PMMarc Reichelt
09/24/2020, 9:35 PMlouiscad
09/25/2020, 7:33 AM