3 ms·
Writing a custom configuration format seems like some prime quality yak shaving :-) Probably flatbuffers would be a good choice for the author needs.
by emmanueloga_ 6y ago
Writing a custom configuration format seems like some prime quality yak shaving :-) Probably flatbuffers would be a good choice for the author needs.
- makapuf 6y agoC literals const struct files are actually a nice format with no runtime. If you compile in .3s a big C file your compile time wont matter.
- wahern 6y agoOne of the reasons service configurations on OpenBSD (e.g. pf.conf, ipsec.conf, etc) are so convenient and expressive is because they don't shy away from defining and implementing custom configuration syntax using yacc. At some point somebody needs to implement the configuration interface for the human. Punting things by preferring boilerplate, machinable formats and libraries doesn't actually solve the problem.