3 ms·
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 com
by _Codemonkeyism 7y ago
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.
- mruts 7y agoHopefully dotty solves some of those problems. Compared to Scala, I personally find Kotlin inexpressive and ugly.
- pkolaczk 7y agoRecent 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.
- pkolaczk 7y agoThe 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-compile-faster-than-scala 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/1603 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.