News for hackers. Stuff that matters.
Re:Kotlin is now Google’s preferred language for Android app... by _Codemonkeyism on Wednesday May 08, 2019 @05:56AM (#19857361)
Which one reason if I'd chose a JVM language I'd go with Kotlin and no longer Scala. The JetBrains people understand and care deeply about developers. Scala compilation of my current project takes ages with the newest Scala/SBT on an iMac Pro 16 core / 32 gb.

I have a side project in Go, compilation, startup and execution is so fast that you don't think it's compiling at all.

I wish language designers would use a fast language for the designer and not the 'see we can bootstrap our own language' approach. Kotlin/Native is at least a good compromise.

Re:Kotlin is now Google’s preferred language for Android app... by pkolaczk on Friday May 10, 2019 @11:22AM (#19878608)
The performance difference between Scala compiler and Kotlin compiler is not as huge as advertised by Kotlin promoters:

https://stackoverflow.com/questions/34615947/why-does-kotlin...

Also worth noting that that answer is quite old and Scala compiler got over 2x faster since that time and now has a much improved incremental compiler, so it may be on par with Kotlin, which added more features since that time and got slower. So both languages seem to be in the same league.

There are many people complaining on Kotlin's performance as well:

https://discuss.kotlinlang.org/t/kotlin-compile-so-slowly/16...

Of course there are Scala idioms that can yield poor compile times, like code using implicits or macros a lot, but Kotlin doesn't even have these features, so instead you'd have to write lot of additional boilerplate code by hand. How can we call writing code by hand fast vs not writing code at all? That's comparing apples and oranges.

Re:Kotlin is now Google’s preferred language for Android app... by mruts on Wednesday May 08, 2019 @06:59AM (#19857656)
Hopefully dotty solves some of those problems.

Compared to Scala, I personally find Kotlin inexpressive and ugly.

Re:Kotlin is now Google’s preferred language for Android app... by pkolaczk on Friday May 10, 2019 @11:24AM (#19878626)
Recent 2.12 and 2.13 are plenty fast. Incremental compilation on the project I do takes about 1-3 seconds for me from hitting run to running the unit test after modifying the code. I get similar times in Kotlin.