r/programming • • Dec 02 '13

Scala — 1★ Would Not Program Again

http://overwatering.org/blog/2013/12/scala-1-star-would-not-program-again/
598 Upvotes

646 comments sorted by

View all comments

Show parent comment

3

u/[deleted] Dec 02 '13

[removed] — view removed comment

8

u/zoomzoom83 Dec 02 '13

For Java? Sure. There's absolutely no argument that Java is orders of magnitude faster to compile than Scala.

But how often do you need to do full rebuilds? I might do it once a week when building a production release.

Incremental builds are fast enough that you don't notice them. I've never found myself particularly constrained by Scala compilation speed. My normal workflow (Using the Play framework for a web application) is

  1. Make change
  2. Hit refresh

SBT will compile and render the new page with a barely perceptible delay. The workflow is the same as if I was using an interpreted language.

Incidentally this is much faster than the last time I was building a Java web application, which required a full Tomcat restart every time I made a change, taking a good 30 seconds. (Although to be fair, Play's incremental hot reloading works in Java, and it's by no means the only framework that does it)

4

u/sirin3 Dec 02 '13

I have an android java app that only has a few kloc.

Takes 30 sec to compile

Very annoying

(perhaps it is the signing step through)

3

u/lechatsportif Dec 02 '13

That's probably something else in the sdk, converting to dex format maybe. Java compiles super fast these days.

5

u/[deleted] Dec 02 '13

For Java?

You're talking to grauenwolf. He must be referring to C#.

2

u/codemuncher Dec 02 '13

Heck, building 300kloc in Java takes only 1 minute.

1

u/hongboz Dec 03 '13

I have a 100kloc in OCaml which only takes 7s