7 ms·
Its purpose was to create compatibility between Unix vendors so developers could write software compatible with different flavors. The primary market for Unix v
by AnthonyMouse 3y ago
Its purpose was to create compatibility between Unix vendors so developers could write software compatible with different flavors. The primary market for Unix vendors is servers, which to this day are still about CLI and daemons, and POSIX systems continue to have dominant market share in that market.
- nvm0n2 3y agoArguably the dominant APIs in the server space are the cloud APIs not POSIX.
- AnthonyMouse 3y agoMany of which are also open, like OpenStack or K8s, or have third party implementations, like Ceph implementing the Amazon S3 API.
- natbennett 3y agoAlso all reimplementations of proprietary technology. The S3 API is a really good example of the “OSS only becomes dominant when development slows down” principle. As a friend of mine who has had to support a lot of local blob storage says, “On the gates of hell are emblazoned — S3 compatible.”
- AnthonyMouse 3y ago> Also all reimplementations of proprietary technology. That's generally where open standards come from. You document an existing technology and then get independent implementations. Unix was proprietary technology. POSIX is an open standard. Even when the standard comes at the same time as the first implementation, it's usually because the first implementer wrote the standard -- there has to be one implementation before there are two.
- pjmlp 3y agoNah, POSIX on servers is only relevant enough for language runtimes and compilers, which then use their own package managers and cloud APIs for everything else. Alongside a cloud shell, which yeah, we now have a VT100 running on a browser window. There is a reason why there are USENIX papers on the loss of POSIX relevance.
- AnthonyMouse 3y ago> Nah, POSIX on servers is only relevant enough for language runtimes and compilers, which then use their own package managers and cloud APIs for everything else. Those things are a different level of abstraction. The cloud API is making POSIX system calls under the hood, which would allow the implementation of the cloud API to be ported to different POSIX-compatible systems (if anybody cared to). > There is a reason why there are USENIX papers on the loss of POSIX relevance. The main reason POSIX is less relevant is that everybody is using Linux and the point of POSIX was to create compatibility between all the different versions of proprietary Unix that have since fallen out of use.
- pjmlp 3y agoHardly as many recent TCP/IP features aren't fully exposed by POSIX socket API, rather OS specific APIs. Security and asynchronous servers are also hardly implemented with raw POSIX APIs. POSIX also doesn't have anything to say about hypervisors, containers, kubernetes infrastructure, or unikernels. Nor it says anything about infrastructure written in Go, Java, .NET, Rust, C++.
- AnthonyMouse 3y ago> Hardly as many recent TCP/IP features aren't fully exposed by POSIX socket API, rather OS specific APIs. It's the same API. Some of the calls have OS-specific flags that can be passed as options. The way this often goes is that the flag then gets added to a future version of the standard. > POSIX also doesn't have anything to say about hypervisors, containers, kubernetes infrastructure, or unikernels. You keep listing different layers of abstraction. When the host goes to open the disk image file for the guest, pretty good chance it's using open(2) etc. > Nor it says anything about infrastructure written in Go, Java, .NET, Rust, C++. It's extremely common for C++ code to use C system calls directly, or thin wrappers around them, e.g. to have a socket class that calls close(2) in the destructor. Likewise for other languages: https://docs.rs/posix-socket/latest/posix_socket/ https://docs.rs/posix-socket/latest/posix_socket/ You can say this "isn't POSIX" because the POSIX standard describes using it in C, but meanwhile the same library implementation and anything using it would be able to run on any POSIX system.
- DeathArrow 3y agoMaybe it's POSIX that is holding new developments back because people think it's good enough. It's not '60s anymore. I would have expected to have totally new paradigms in 2023 if you asked me 23 years ago. Even NT kernel seems more modern. While POSIX was state of the art when it was invented, it shouldn't be today. Lots of research was thrown in recycle bin because "Hey, we have POSIX, why reinvent the wheel?", up to the point that nobody wants to do operating systems research today, because they don't want their hard work to get thrown into the same recycle bin. I think that people who invented POSIX were innovators and have they live today, they would come with a totally new paradigm, more fit to today's needs and knowledge.