News for hackers. Stuff that matters.
Re:Ask HN: How important is Posix? by thwarted on Thursday January 08, 2009 @01:23PM (#425336)
This is an interesting perspective considering the trend these days for creating DSLs. That's really all those different and incompatible config file formats are. Everything old is new again.
Re:Ask HN: How important is Posix? by tptacek on Thursday January 08, 2009 @01:23PM (#425339)
The fact that Unix configuration files often resemble crappy programming languages is exactly the problem. Most configuration can and should be declarative.
Re:Ask HN: How important is Posix? by thwarted on Thursday January 08, 2009 @03:39PM (#425595)
Can you give an example? Things like the ISC dhcpd.conf are declarative, and the advantage that it "looks" like a programming language is that it's easy to read and see/form dependencies for complex setups--it's not just a big list of key/value pairs. That makes sense for a tool with a lot of capabilities. A quick glance at /etc doesn't reveal anything other than structured declarative files, key/value pairs, or delimited. There's a been a trend to use XML recently, which I find to be overly verbose for a configuration file, but even the XML-esque format that Apache uses is pretty much just a big list of key/value pairs.
Re:Ask HN: How important is Posix? by tptacek on Thursday January 08, 2009 @04:17PM (#425659)
sendmail.cf.
Re:Ask HN: How important is Posix? by thwarted on Thursday January 08, 2009 @04:45PM (#425713)
You got me there, isn't the sendmail cf syntax turing complete? Sendmail is one of the first things I remove if it gets installed by default. Got a more, for lack of a better word, "modern" example?

A lot of the more core/necessary configuration files on UNIX have pretty detailed man pages and documentation also. Which is definitely more than you can say for keys in the Windows registry.

Re:Ask HN: How important is Posix? by snprbob86 on Thursday January 08, 2009 @06:44PM (#425881)
What? You mean all of your config files aren't s-expressions?

I hope I'm not perpetuating a meme ;-)