News for hackers. Stuff that matters.
Re:The Sorry State of C++ Portability by pjmlp on Wednesday October 24, 2012 @04:05PM (#4694792)
It is optional and not up to date with the latest specification.

The problem with POSIX, like any other standard, is that not all systems implement the same POSIX.

Re:The Sorry State of C++ Portability by MatthewPhillips on Wednesday October 24, 2012 @04:17PM (#4694851)
I'm not a porter so I'm just trying to understand here, but I would suspect that having POSIX, albeit quirky, would automatically make it easier to port than Windows which has no POSIX. Like porting a web app to IE6 is easier than porting it to a Node CLI app. Does that analogy not work?
Re:The Sorry State of C++ Portability by parfe on Wednesday October 24, 2012 @04:25PM (#4694888)
Windows has a POSIX implementation.

https://en.wikipedia.org/wiki/Interix

Re:The Sorry State of C++ Portability by pjmlp on Thursday October 25, 2012 @02:44AM (#4696640)
The problem is that each POSIX compatible system tends to have different levels of support for the various POSIX standard versions.

Additionally there are APIs which have undefined edge cases or different limits (e.g. amount of open file handles).

So even if you only target POSIX systems, you have to pollute the code with #ifdef to handle such differences.

It is similar to do web development. There are standards, but each browser version is a different world.