5 ms·
how does go compile so quickly? http://stackoverflow.com/questions/2976630/why-does-go-compile-so-quickly http://stackoverflow.com/questions/2976630/why-does-go
by gaalze 12y ago
how does go compile so quickly?
http://stackoverflow.com/questions/2976630/why-does-go-compile-so-quickly http://stackoverflow.com/questions/2976630/why-does-go-compi...
because they fucking forgot incremental compilation
http://en.wikipedia.org/wiki/Incremental_compiler http://en.wikipedia.org/wiki/Incremental_compiler
- infogulch 12y agoWait, it's fast because they didn't include incremental compilation?
- gaalze 12y agoIt'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 https://gcc.gnu.org/wiki/IncrementalCompiler
- infogulch 12y agoSo 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.
- dekhn 12y agotheir 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).
- btilly 12y agoActually 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.
- infogulch 12y agoEven better, `go get ./...` installs all dependent packages.