3 ms·
> C# and Java are slower to compile Not for any meaningful work in my experience. As a matter of fact, I found the change/compile/run loop in golang to be slow
by apta 7y ago
> C# and Java are slower to compile
Not for any meaningful work in my experience. As a matter of fact, I found the change/compile/run loop in golang to be slower on projects I've been working on due to the fact that it doesn't support incremental compilation, so any change I make ends up recompiling the entire program and writing out a 100+MB binary anyway. Compared to a Scala project I worked on before (and Scala is notorious for slow compiles), after the first compilation, all modifications happen very quickly as only the respective classes are re-compiled.
> Here's Uncle Bob take on testing with Go
Again, this doesn't apply for any non-trivial/large project. On a project I'm working on, it literally takes 7-8 minutes to do a clean build + run all unit tests in golang.
- hu3 7y agoGo absolutely does incremental builds by default and has been like that since I can remember. Packages are only rebuilt when their source or their dependencies change. Same for tests which are cached by default so during typical development only a subset of tests are executed and compilation time can be a big part. Leave full tests for CI. An anecdote I found from 5 years ago: On my 1.7GHz processor it takes 10 seconds to build the whole standard library from scratch (300k lines of code). It's fast AF.