News for hackers. Stuff that matters.
Re:It's time to get the Posix elephant off our necks by jsjohns2 on Wednesday February 22, 2023 @10:11PM (#34906244)
To those bashing the author as uninformed -- this is George V. Neville-Neil. Member of FreeBSD Core Team who wrote the book on FreeBSD. He might know a thing or two about POSIX! [1]

[1] https://www.amazon.com/Design-Implementation-FreeBSD-Operati...

Re:It's time to get the Posix elephant off our necks by jeroenhd on Wednesday February 22, 2023 @11:09PM (#34906645)
He also worked on VxWorks, an operating system that is decidedly non-POSIX!
Re:It's time to get the Posix elephant off our necks by scottlamb on Wednesday February 22, 2023 @11:38PM (#34906829)
It's a bad article because it's too vague and doesn't clearly relate to the questioner's problem, not because the author doesn't have the proper pedigree.

One could certainly write good articles about why the POSIX API is too limiting. For example: the filesystem API is awful in many ways. I'll try to be a bit more specific (despite having only a few minutes to write this):

* AFAICT, it has very few documented guarantees. If sector writes are atomic [1]. And even the ones that I think its language guarantees, like fsync guaranteeing all previously written data to that file has reached permanent storage, systems such as Linux [2] and macoS have failed to provide. [3]

* It doesn't provide a good async API. io_uring is my first real hope for this but isn't in POSIX.

* IO operations are typically uninterruptible (with NFS while using a particular mount operation as a rare exception). Among other problems, it means that a process that accesses a bad sector will get stuck until reboot!

* It doesn't have a way to plumb through properties you'd want for a distributed filesystem, such as deadlines and trace ids.

* It provides just numeric error codes, when I'd like to get much richer stuff back. Lots of stuff in distributed filesystem cases. Even in local cases, something like how where in particular path traversal failed. I actually saw once (but can't find in a very quick search attempt) a library that attempted to explain POSIX errors after the fact, by doing a bunch of additional operations after the fact to narrow it down. Besides being inherently racy, it just shouldn't be necessary. We should get good error messages by default.

[1] https://www.sqlite.org/atomiccommit.html

[2] https://wiki.postgresql.org/wiki/Fsync_Errors

[3] https://developer.apple.com/library/archive/documentation/Sy...

Re:It's time to get the Posix elephant off our necks by drpixie on Thursday February 23, 2023 @02:45AM (#34907969)
It's a great article, and it raises many major issues with our current model of computing. But it's obviously triggering, and lots of people are rushing to defend their comfort zone.

Think outside the box people ... "files", what a charming but antiquated concept; "processes" and thus "IPC", how quaint!