4 ms·
A system configuration tool needs to parse configuration files in a modern format? Shocking. The Only True Unix way is to invent an ad hoc configuration format
by pavlov 12y ago
A system configuration tool needs to parse configuration files in a modern format? Shocking.
The Only True Unix way is to invent an ad hoc configuration format with arbitrary rules about line breaks, tabulators and separator characters, incomplete Unicode support and confusing issues around whitespace escaping.
- oblio 12y agoDon't forget that the config format should also evolve until it is Turing complete, creating a crappy scripting language, instead of: a) separating configuration values from code b) embedding an established interpreter
- Sanddancer 12y agoThe problem here is that Poettering ignored the numerous other small json libraries, like json-c, which is 69k compiled as a static library, and jansson, which is 89k as a static library, and built his own. Which means there's yet one more library out there to test against to make sure one's own stuff works without problem. This is developer bravado with no real benefit.
- lomnakkus 12y agoWhat are you talking about? JSON is a standard -- it doesn't matter which implementation you use as long as it conforms. (Indeed, that is the point of JSON.) Of course being written in C, this implementation isn't likely to be able to handle arbitrary-precision numbers, but then neither do jansson nor json-c AFAIK.
- fsniper 12y agoHe is very clear about Poettering's NIH syndrome. There are many established c libraries out there but he feels he needs to implement everything himself.
- lomnakkus 12y agoNo, the systemd people probably just wanted to avoid an dependency that they don't control.
- fsniper 12y agoThat is exactly nih syndrom told in another way.
- lomnakkus 12y agoNo. There are many very valid reasons to want to avoid 3rd party dependencies.
- fsniper 12y ago(I am trying to be sincere here please don't take it any other way) Could you please tell me few reasons against code reuse? And as a bonus; a reasonable case for reimplementing everything in systemd ecosystem would be very appreciated.
- lomnakkus 12y agoHave you ever run a big C or C++ project? Dependencies in these languages are not a good thing -- especially if it's for such a trivial thing as JSON parsing. (If you want more, I'll be happy unless you're just being facetious. In which case, see below.) > And as a bonus; a reasonable case for reimplementing everything in systemd ecosystem would be very appreciated. Oh, fuck off. EDIT: What I meant to say in that last sentence is: I realize that I could have been more upfront about what the tradeoffs are, but if you're just going to spew bullshit like "NIH!" over and over without anything to back it up, then I don't care to engage in a serious discussion with you. Indeed, I think it might not be possible to engage in a serious disccusion with you. Hence, "fuck off".
- fsniper 12y ago