Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

A clean build may take minutes, but with a good build system like cmake or meson with a ninja backend, it should be a rare occurrence.


No, I'm talking about a normal incremental build (which usually touch many things—I don't usually get to only recompile a single unit). If the planets align, I can get an incremental build to take just 30 seconds or so, but that's rare enough that I might mark such an event in my calendar. And that's on a beast of a server.

With Go, on my laptop, 30 seconds is the time it takes to perform a complete, optimized build of a medium-sized application, all dependencies and the standard library from source.

It's always so... frustrating whenever I go from a Go project back to our large C/C++ mixed codebase...


Because Go doesn't do very much optimization. They've been fighting back performance regressions every time they try to improve the performance of the resulting binaries.

https://dave.cheney.net/2016/11/19/go-1-8-toolchain-improvem...


Neither does clang, gcc or rustc unless you explicitly tell it to. I was talking about a normal development session. Why would I make compilation time worse by making optimized builds?


In languages like C++ it also takes good program design, with some extra indirections.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: