3 ms·
There is definitely room to innovate more fundamentally in operating system design. POSIX is effectively a 50-year old API, and there are definitely places wher
by jcranmer 6y ago
There is definitely room to innovate more fundamentally in operating system design. POSIX is effectively a 50-year old API, and there are definitely places where the API it provides is far from optimal.
For something that interests me personally, the POSIX idea of ptrace and signals for debugging is a fundamentally broken and obtuse API that just don't work very well with how modern software is designed, and requires a decent amount of hacks to do anything rational with hardware traps. I did think a little bit about what kind of API I wanted if I were designing de novo, and happened to pop through Fuchsia's API at a glance to see what it decided... and it was exactly the kind of way I'd have thought about this space.
- trasz 6y agoPOSIX doesn't say anything about ptrace. And yeah, ptrace is somewhat horrible, but there's no reason you couldn't implement something better in existing systems; it's just that the amount of work necessary is so huge it's probably not worth it, but the same amount of work would be needed to write it from scratch.
- bregma 6y agoptrace is a Linux thing. POSIX is not Linux.
- loeg 6y agoPtrace long predates Linux: https://en.wikipedia.org/wiki/Ptrace#Unix_and_BSD https://en.wikipedia.org/wiki/Ptrace#Unix_and_BSD