2 ms·
> Unix is still a good fit for a kernel; e.g. it is used by Apple. The POSIX APIs are not a good basis for designing a kernel. There are plenty of areas where
by jcranmer 5y ago
> Unix is still a good fit for a kernel; e.g. it is used by Apple.
The POSIX APIs are not a good basis for designing a kernel. There are plenty of areas where it's widely agreed that the APIs are fundamentally utter garbage: POSIX signals, filesystem ACLs, async I/O, select, IPC. Arguably even some of the more less garbage APIs (e.g., regular filesystem calls) are extremely detrimental towards writing good software--imagine if we had filesystem APIs based on semantics such as "atomic file write" or "append-only files" (that guaranteed that a reader would only see old or new versions, not partly-written versions) instead of what we have now, where people attempt to recreate those APIs in userspace.