4 ms·
My wish for configuration languages is that as an industry we continue to adopt scriptable build systems like Bazel that make it easy to transform human-written
by dub 4y ago
My wish for configuration languages is that as an industry we continue to adopt scriptable build systems like Bazel that make it easy to transform human-written configuration into machine-readable configuration during compile time.
Want comments in JSON? Spend 20 minutes refactoring a single BUILD rule and now humans can write JSON5 that's transformed into JSON
Want more flexibility? Have humans write cue or dhall or jsonnet
Wish you also had a copy of a subset of the same config data in YAML? Easy
Want to write a compile-time check in a programming language of your choice that a certain setting is never missing? Easy
Want all of this to work with reproducible builds across a variety of computers and distributed build farms? Easy
We don't have to let legacy build systems limit our imagination.