News for hackers. Stuff that matters.
Re:Autoconf and portable programs: the joke by vext01 on Wednesday March 31, 2010 @08:39AM (#1231604)
I'm sorry? Which BSD system is that you are describing?
Re:Autoconf and portable programs: the joke by mansr on Wednesday March 31, 2010 @09:41AM (#1231734)
Who, me? NetBSD and OpenBSD are the worst. FreeBSD is a bit better, and Dragonfly is the least broken of the ones I've had to deal with. It's hard to keep track of all the BSDs, though, with the number of BSD developers and the number of BSD forks steadily converging.
Re:Autoconf and portable programs: the joke by bensummers on Wednesday March 31, 2010 @09:45AM (#1231742)
It's hard to keep track of all the Linux distributions, though, with the number of Linux developers and the number of Linux distributions steadily converging.

OK, so maybe it's better now that Ubuntu has conquered all, but writing software on a BSD and then attempting to make it work on "Linux" is a nightmare. Every single distribution does something different, and it's a nightmare to work around. Whereas the BSDs tend to be very consistent.

Re:Autoconf and portable programs: the joke by mansr on Wednesday March 31, 2010 @10:42AM (#1231883)
POSIX compliance is much better in Linux than in BSD. End of story.

If you stick to standard POSIX features, your code will work without change on any modern Linux distribution.

Re:Autoconf and portable programs: the joke by j_baker on Wednesday March 31, 2010 @12:00PM (#1232131)
Unless you can prove this, it's hearsay. Part of the reason why linux and BSD don't actually get POSIX certified is because they change so quickly that it wouldn't be practical. So it's difficult to get an idea of what system is most compatible with POSIX. And even if you did, it would be different by the next version.
Re:Autoconf and portable programs: the joke by mansr on Wednesday March 31, 2010 @12:59PM (#1232343)
OK, there are probably corner cases where Linux isn't quite compliant. However, in my day to day work, I encounter far more problems with BSD than with Linux. I don't know how I'd go about proving that to you.
Re:Autoconf and portable programs: the joke by j_baker on Wednesday March 31, 2010 @04:56PM (#1233002)
I don't doubt that you do encounter more problems with BSD than Linux. But does everyone who works with the two encounter more problems?
Re:Autoconf and portable programs: the joke by aidenn0 on Wednesday March 31, 2010 @04:37PM (#1232951)
Too bad nobody does this...

Quick example:

http://shootout.alioth.debian.org/gp4/program.php?test=threa...

Can you spot the non-compliant behavior in this? It actually relies on undefined behavior in the POSIX spec to work on linux!

Re:Autoconf and portable programs: the joke by jvdh on Wednesday March 31, 2010 @10:17AM (#1231817)
True, but the most relevant part for POSIX is always GNU/Linux, which is always the same in each of the Linux distributions.
Re:Autoconf and portable programs: the joke by bensummers on Wednesday March 31, 2010 @11:06AM (#1231949)
Well that's true up until a point. But an OS is more than an API, it's also a collection of files and libraries within a directory structure. In my experience Linux distributions rarely agree on these minor points, and that is where the hassle lies in porting anything non-trivial.
Re:Autoconf and portable programs: the joke by mansr on Wednesday March 31, 2010 @11:47AM (#1232074)
The details where they differ are not standardised. If you stick to the standards, you will have no problems. The problem with BSD is that following standards is what gets you in trouble.
Re:Autoconf and portable programs: the joke by dlsspy on Wednesday March 31, 2010 @02:47PM (#1232684)
I spent an unreasonable amount of time porting software that is generally run on Linux and Mac OS X to RedHat (mostly because their fork of Linux appears to be a museum of obsolete libraries).

The BSD forks are often quite interesting in their goals. Some of the Linux ones are as well. There are so many more Linux forks than BSD forks though.