News for hackers. Stuff that matters.
Re:Every Sufficiently Advanced Configuration Language Is Wrong by plasticchris on Saturday June 25, 2022 @07:29AM (#31874353)
Isn’t this what protocol buffers do?
Re:Every Sufficiently Advanced Configuration Language Is Wrong by hedora on Saturday June 25, 2022 @11:21AM (#31875970)
Protocol buffers use code generation, but the format is not human readable. Also, the format is less expressive than a full grammar, and, in many cases completely unchecked. (It will often "successfully" deserialize data written for the wrong protobuf struct type, which produces random hex gibberish.)

Something like ~/.ssh/config is closer to what I am talking about.

Re:Every Sufficiently Advanced Configuration Language Is Wrong by fragmede on Saturday June 25, 2022 @01:38PM (#31877125)
~/.ssh/config has some some wildcard support, but I've been in situations where that wasn't enough, and I had to generate them using python with templates and variables. It got ugly pretty fast.