I don't understand the fixation on Turing completeness in build systems discussions.
Adding to not_a_novel_account's discussion, even the most static declarative build systems out there still often fall back to imperative code for certain things. To use Cargo as an example, many packages I've seen have a build.rs in addition to the standard toml and lock files. Granted this is at least being written in the target language and rust is also more ergonomic than C++ in the buildsystem context.
I've personally got my eye on tools like Nix - there's a good mix of concepts that allows for the flexibility when you need it. It's the best of both worlds if you can stomach the Nix language.
View all comments
Show parent comment
6
u/revenantname Apr 13 '26
Adding to not_a_novel_account's discussion, even the most static declarative build systems out there still often fall back to imperative code for certain things. To use Cargo as an example, many packages I've seen have a build.rs in addition to the standard toml and lock files. Granted this is at least being written in the target language and rust is also more ergonomic than C++ in the buildsystem context.
I've personally got my eye on tools like Nix - there's a good mix of concepts that allows for the flexibility when you need it. It's the best of both worlds if you can stomach the Nix language.