Re:Kotlin: A Language with a Bright Future
by djm158 on Monday November 20, 2017 @09:49AM
(#15740184)
You could also do this with JavaScript correct? Node.js back end with whatever front end framework and then use something like react native for mobile?
[ Parent
| on HN ]
Re:Kotlin: A Language with a Bright Future
by adamnemecek on Monday November 20, 2017 @09:57AM
(#15740255)
But then you'd be writing JavaScript and who wants that. TypeScript is maybe ok-ish but TS is just putting a lipstick on a pig. Like, ignoring other issues, JVM at least has decent concurrency and with quasar, you get processes similar to erlang.
Re:Kotlin: A Language with a Bright Future
by rictic on Monday November 20, 2017 @10:36AM
(#15740615)
What about the other side of that coin. Does a small amount of idiomatic Kotlin compile down to a small amount of JS, or a large amount (in bytes, after gzip)?
Re:Kotlin: A Language with a Bright Future
by adamnemecek on Monday November 20, 2017 @10:41AM
(#15740648)
I don't have extensive experience with it but it's not too bad compared with other JS transpilers.
Re:Kotlin: A Language with a Bright Future
by swsieber on Monday November 20, 2017 @09:55AM
(#15740239)
That's not quite there though - with React Native, your still running the js engine to run the JavaScript (but your at least using native widgets).
With Kotlin you'll be running compiled code. If you wanted to right now though, you could (should be able to?) use Kotlin to build a React Native app with it's just target.
Re:Kotlin: A Language with a Bright Future
by brango on Monday November 20, 2017 @10:50AM
(#15740732)
I was looking into this yesterday. Apparently while there's support for transpiling Kotlin -> JS, more work would be needed to support transpiling for react native[1]. Not sure why.
[1] https://blog.jetbrains.com/kotlin/2017/04/use-kotlin-with-np...