102 points · by transpute · 2y ago · 16 comments
There are at least two problems of course. I'm probably not that smart and I don't buy lottery tickets.
The article is more theory than practice. It practice, the big problem is not really about knowing what should be rebuilt. It is about tying the work of many people with different ideas on how thing should be done together.
The part about getting the build order correct, which is what the article is about is still important. But that's typically not the reason why everyone hates build systems. People can live with the occasional inefficiency, or "make clean". But getting that binary-only library that is not in the standard location with that source-only other library and its weird versioning scheme, both needing a different version of the same third library, written in a different programming language and using a different packet manager...
I personally hope Nix eats the world.
For example, paper talks a great deal about schedulers, but those are very minute implementation details. If bazel gets "suspending" scheduler instead of "restarting" one, this is a super major change in the paper's eyes, but no user is likely to notice (other than "hey it works 2% faster now, cool!").
Moreover, the paper's scheduler abstraction is too limited - there are a whole bunch of schedulers which are non-representative in it, for example imagine a scheduler which is aware of memory and CPU usage, and schedules the tasks to avoid out-of-memory condition (like recent bazel).
The division on "cloud" vs "non-cloud" systems is also pretty weird... ok, bazel has cloud caching built-in but make requires external "ccache", but the resulting behaviors are pretty similar.
The paper is about thinking about build systems in a more modular way. Are dependencies specified statically or dynamically? What algorithm is used to decide what should get rebuilt after an update? What order do we rebuild things? What happens if we pick different combinations of algorithm+order?
And the universal constant in all build systems is always a problem of management. I've turned 7 hour builds into 7 minute builds, and management doesn't care. I've saved literally thousands of hours of programmer time per year on projects, and management doesn't care. Build systems are a cost center. Always neglected, never funded, and not seen as critical infrastructure.
Build systems, at the end of the day, no matter the language or target platform, are never really that complicated, we just tend to over-complicate them. What I really want, if I had the time to implement, is a build file system.
All that said, I'll never go back to working on a big build system without having a PM that insulates me from the unreasonable demands of being woken up at 4AM by a Producer absolutely frantic because "the build system isn't working at all!" but when checking on the problem, it's because a developer checked in some code late and night and then went home. I have some serious trauma from those years of my life.