News for hackers. Stuff that matters.
Re:Metals with Scala 3 by lihaoyi on Thursday February 04, 2021 @06:44PM (#26031153)
Not as fast as Go, but straight compilation is about ~3x faster than 2015, with many improvements around incrementality and IDE speed that make things a lot better. Compilation still isn't "as fast as Go", but has probably approached "acceptable" now in 2021.

As one data point, "slow Scala compiles" was the #1 biggest developer complaint at my company when I joined in 2017, and nowadays that complaint doesn't even break the top 10. Scala compiles are not great, but not terrible.

A lot about Scala sucked in 2015, and I wouldn't recommend 2015 Scala to anyone, but it's not 2015 any more. 2021 Scala is what I'm talking about

Re:Metals with Scala 3 by harryh on Thursday February 04, 2021 @07:07PM (#26031306)
This is super interesting. I was a pretty early adopter of Scala, but our org grew fairly frustrated with in in 2013/14 due to the slow compiler. We invested a ton of effort into building tools to mitigate this problem (effort we'd rather have spent on our actual business).

I haven't really touched it beyond tiny toy projects since 2015 though. Really glad to hear that compilation speed has gotten so much better.

Re:Metals with Scala 3 by lihaoyi on Thursday February 04, 2021 @07:16PM (#26031402)
Yeah the effort to speed up compilation around Scala 2.12 really took off. You can see it in the compiler benchmarks:

https://scala-ci.typesafe.com/grafana/dashboard/db/scala-ben...

Where the better-files library went from taking ~700ms to compile in 2016 to ~230ms today. Definitely a huge improvement that our developers appreciate every day!

Re:Metals with Scala 3 by finiteloops on Thursday February 04, 2021 @07:39PM (#26031638)
Not to mention how much Mill improved my dev cycle. Thank you for your contribution to the ecosystem!
Re:Metals with Scala 3 by danmur on Friday February 05, 2021 @04:55AM (#26034676)
Yep. I'm just a scala hobbyist but I'd have given up if I had to use SBT.
Re:Metals with Scala 3 by cutler on Thursday February 04, 2021 @08:44PM (#26032106)
But is a bit better than dog-slow actually that great?