Hacker News new | ask | show | jobs
by gaalze 4189 days ago
It's fast because of dependency analysis. They forgot about something called incremental compilation.

This is what they should have spent their 20% on: https://gcc.gnu.org/wiki/IncrementalCompiler

2 comments

Actually they do have incremental compilation at the package level. Use go install and you'll get it. Use go build and you throw away intermediate build artifacts so you don't get it. This is all documented.

In practice compilation times are not a pain point for golang.

Even better, `go get ./...` installs all dependent packages.
So why is the Go compiler still faster than compilers that do have incremental compilation? The implications of your wording is confusing.

Also, Go does have incremental compilation at the package level.

their wording was confusing; they were being sarcastic, implying that the go developers made compilation of a project from scratch so fast because they weren't aware of incremental compilation (which is a false assertion, I assure you).