News for hackers. Stuff that matters.
Re:Ask HN: How would you design a Modern Operating System in... by zamalek on Monday September 12, 2022 @01:47PM (#32814045)
I think that the 'everything is a file' approach used by POSIX is partially flawed. There are certain fds that you can't interact with in the shell (I forget which, but it think it was container related). Ultimately these feel like cargo-culting and show the limitations of the POSIX model. However, a namespaced system (directories) containing endpoints (files) is a good idea.

I think that dbus does a much better job of this (and it should be possible to have a tool that interacts with the system bus on the CLI). I would definitely take more inspiration from dbus than POSIX for a modern OS.

Re:Ask HN: How would you design a Modern Operating System in... by bravetraveler on Monday September 12, 2022 @02:40PM (#32814837)
I support this -- 'everything' being a file brings about some interesting scale problems.

Considering 9/10 the system we're using at any given moment is with defaults that weren't sane ten years ago...