@@h4ktbtwKotlin is JVM, mostly compiled language so it’s inherently faster. There are types, actual, errors, the whole lot. Kotlin is a competent language. JavaScript still has their learners permit. Any JVM language just gets shit on because it’s JVM and the conventions can be lengthy and more abstract. The fact of the matter is it’s still a great language and Kotlin does away with a lot of the boilerplate annoyance you find in Java.
@@kyle8575 I mostly agree with you and i really hope that at some point Kotlin moves off of JVM completely. Kotlin/Native is there, but it is not mature enough.
I don't really have an interest in writing Kotlin, but this is straight up AWESOME stuff!! It definitely makes me think I should look into Kotlin some more.
You should look into python library called dominate. If I understood you correctly in your video that prime shared, dominate does exactly what you built there. Following your ideas, I started building my component library combining daisyUI and python's dominate where I can just take prebuilt components, pass some arbitrary arguments and serve them as html file, all directly in python methods.
I consider myself pro-kotlin (it is my main lang) and I am excited about multi platform. That said I think js is the least mature multiplatform and less appealing one due to the fact that it adds a lot of bloat. I find that for simple services writting a little bit of js is not the end of the world (especially if you are already using something like htmx to reduce your js needs)
Since seeing your kotlin HTML DSL video, I've found a small library called J2HTML that seems to do the same thing without requiring kotlin or ktor. It also has a converter for html->j2html java code. Are you aware of this library, and if so, do you have thoughts on it ?
I think it's going to be much better than Flutter. It's a solution that's harder to implement, but it produces fully native code without the need for sandboxes or message exchange to interact with the "outside world". My experience with Compose Multiplatform and KMP in general so far has been very good and getting better and more stable every day.
This has been possible for years in Java using the GWT Toolkit. For anything but the simplest applications it will end up in an unmaintainable mess. The same goes for Kotlin. If you’re building a professional web front end then there’s no way around it but learning Javascript, html and css the proper way. Use Java or Kotlin for the back end.
@@bodguy1035 its depend on your situation. i belive kotlin is way better than typescript. (as syntax level) second thing is that if you are kotlin lover you dont want use other language.
The saddest thing in this industry is that the scary part of this title is "Kotlin" instead of "compile to javascript"
Why is that?
@@h4ktbtwKotlin is JVM, mostly compiled language so it’s inherently faster. There are types, actual, errors, the whole lot. Kotlin is a competent language. JavaScript still has their learners permit. Any JVM language just gets shit on because it’s JVM and the conventions can be lengthy and more abstract. The fact of the matter is it’s still a great language and Kotlin does away with a lot of the boilerplate annoyance you find in Java.
@@kyle8575 I mostly agree with you and i really hope that at some point Kotlin moves off of JVM completely. Kotlin/Native is there, but it is not mature enough.
They're making a big push for wasm as well. The wasmJs target is pretty nice. Letting you interops with js pretty easily
javascript should be illegal
Tom is a genius
you're for kotlin what primeagen is for rust. Love it.
I don't really have an interest in writing Kotlin, but this is straight up AWESOME stuff!!
It definitely makes me think I should look into Kotlin some more.
Can you please make full tutorial on Kotlin and HTMX or Compose Web?
The reason I am personally hesitant on Kotlin are mainly two things, #1 long compile times and #2 I don't want to be tied to a specific IDE.
Great video as always Tom 👏
Having this called when you paste html into idea the same way java gets converted to kotlin would be awesome 👍
Yes, I actually have no idea who they do that. It would be an interesting project
Interesting stuff. I have never used Kotlin outside of Android development but looks like it has matured quite a lot.
I wish I could use Kotlin everywhere (.NET, Unity, Godot)
I used to only work with Kotlin JVM for Minecraft and fell in love with it
Me too
Show us Kotlin Native server example please. Just found out Kotlin is being used without JVM this is awesome!
I've been loving your videos!! Keep up
have you tried compose multiplatform?
Yes! I love it
how can i learn kotlin if im a java developer
A good place to start is a series of short exercises that the Kotlin made. play.kotlinlang.org/koans/overview
This is great, Tom is bringing Kotlin to the frontend community.
Thanks Tom! Pretty nice!!
You should look into python library called dominate. If I understood you correctly in your video that prime shared, dominate does exactly what you built there. Following your ideas, I started building my component library combining daisyUI and python's dominate where I can just take prebuilt components, pass some arbitrary arguments and serve them as html file, all directly in python methods.
I consider myself pro-kotlin (it is my main lang) and I am excited about multi platform.
That said I think js is the least mature multiplatform and less appealing one due to the fact that it adds a lot of bloat.
I find that for simple services writting a little bit of js is not the end of the world (especially if you are already using something like htmx to reduce your js needs)
Since seeing your kotlin HTML DSL video, I've found a small library called J2HTML that seems to do the same thing without requiring kotlin or ktor. It also has a converter for html->j2html java code. Are you aware of this library, and if so, do you have thoughts on it ?
I wasn’t aware of this library, I don’t think it’s for me since I enjoy using Kotlin and Ktor. Having a built in converter is great though
I am curious about compose multiplatform targeting the web
🔥🔥
Great video, any chance you can share your intelij config ? would love mine to look like that , thanks
I’m pretty sure this is just vanilla. You can enable the new UI in the appearance settings
what about thymeleaf?
what IDE do you use ?
I wish I could use kotlin for Jenkinsfiles..
I wish Flutter would use Kotlin instead of Dart or that Kotlin Multiplatform would be as robust as Flutter ...
It's getting there now that they released the ability to build native iOS apps with Kotlin
I think it's going to be much better than Flutter. It's a solution that's harder to implement, but it produces fully native code without the need for sandboxes or message exchange to interact with the "outside world". My experience with Compose Multiplatform and KMP in general so far has been very good and getting better and more stable every day.
So JSP -> Kotlin -> JS? Smart!
Cool but, Oh God please dont haunt me with memories of GWT compiling Java to JS and shipping huge ass bundles
This is different. It doesn't need to emulate every API that Java has
Why compile Java to JavaScript when you have a perfectly capable VM already able to run Java?
doesn't kmm require the paid for jetbrains editor 💩
The editor situation is my least favorite part of Kotlin. But the language is open source and the editor is free. You can just use community edition
For KMP and Compose Multiplatform, most people use Android Studio, which is also free (Google subsidises it).
But why though.....
This has been possible for years in Java using the GWT Toolkit. For anything but the simplest applications it will end up in an unmaintainable mess. The same goes for Kotlin. If you’re building a professional web front end then there’s no way around it but learning Javascript, html and css the proper way. Use Java or Kotlin for the back end.
I think this is totally unnecessary. why don't just write plain html and javascript? these are more easy than kotlin.
plain html and js is not type safe. there is so much benefit using kotlin
@@developerkang3717 but why kotlin? There are lots of type safe language better than kotlin for html and js such as typescript etc.
@@bodguy1035 its depend on your situation. i belive kotlin is way better than typescript. (as syntax level) second thing is that if you are kotlin lover you dont want use other language.