3 ms·
> It's an impressive run, but the ground has shifted, slowly, under our feet, and now Unix/Linux are no longer a good fit. Unix is still a good fit for a kerne
by amelius 6y ago
> It's an impressive run, but the ground has shifted, slowly, under our feet, and now Unix/Linux are no longer a good fit.
Unix is still a good fit for a kernel; e.g. it is used by Apple. The stuff built on top of the kernel (UI, etc.) can change, of course.
- jcranmer 6y 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.
- curt15 6y agoWindows NT has far more advanced facilities for async I/O [1]. [1] https://stackoverflow.com/questions/5283032/i-o-completion-ports-advantages-and-disadvantages https://stackoverflow.com/questions/5283032/i-o-completion-p...
- johncolanduoni 5y agoIt did, then io_uring leapfrogged it, and now Windows is moving towards adding a ring-based IO submission system: https://windows-internals.com/i-o-rings-when-one-i-o-operation-is-not-enough/ https://windows-internals.com/i-o-rings-when-one-i-o-operati...
- pjmlp 5y agoUNIX as used in macOS isn't the classical UNIX kernel, and since the last 5 years Apple has been moving away from it. Want the new networking APIs? They are exposed only to platform frameworks not POSIX.