51 points · by privacyishuman · 2w ago · 93 comments
"I remarked to Dennis that easily half the code I was writing in Multics was error recovery code. He said, "We left all that stuff out of Unix. If there's an error, we have this routine called panic, and when it is called, the machine crashes, and you holler down the hall, 'Hey, reboot it.'"
-- Tom Van Vleck
Not that this is a bad thing, but unix was created as a hacker's toy, a small elegant system to play games on, This is why it is so fun to use. I mean, it is not really small or elegant anymore. but that is how it started, not as a robust correct business system. That is also why it got so popular. "A small hackable lowcost operating system with full source" colleges: yes please, and at a critical time in computing history, a very influential generation of hackers learned on it. Something now is better than perfect that does not exist, or that old cliche, worse is better.
> Speaking as someone who has delved into the intricacies of PL/I, I am sure that only Real Men could have written such a machine-hogging, cycle-grabbing, all-encompassing monster. Allocate an array and free the middle third? Sure! Why not? Multiply a character string times a bit string and assign the result to a float decimal? Go ahead! Free a controlled variable procedure parameter and reallocate it before passing it back? Overlay three different types of variable on the same memory location? Anything you say! Write a recursive macro? Well, no, but Real Men use rescan. How could a language so obviously designed and written by Real Men not be intended for Real Man use?
I think it speaks to the core of the "software crisis" literature which is its own genre. Big Ball of Mud, No Silver Bullet, The Three Cultures of Computer Science and so on.
Correctness and expediency are at odds and we have to make choices along these trade-offs constantly. The costs each imply accumulate. I don't think there can ever be a simple answer to the question of how to design and run complex systems. Every facile argument about this or that tool chain devolves into flame wars precisely because these arguments are about "the right way" (or the wrong way) to design and run complex systems and there simply isn't any (right or wrong).
"Systemantics" is a perpetual gem that should be High School required reading.
Linux was a monolithic kernel because in 1991 microkernel were in earnest 25 years too early. Computers didn't really have the extra performance to spend for things like IPC and stuff. lots of other kernel designs that started back then like NT and Nextstep (was the NextStep kernel called XNU already? I guess not) all tried the microkernel route and then ended up doing stuff like networking at kernel level anyway because it just didn't work well enough.
arguably nowadays we have extra headroom to spare so stuff like containers, sandboxing, userspace drivers are becoming more and more commonplace.
Perhaps processor architectures like the https://en.wikipedia.org/wiki/Intel_iAPX_432 which do away with such coarse grained and therefore dangerous abstractions by using capability-based addressing should have succeeded earlier too. This is how modern programming languages should be structured too, instead of giving no guarantees to programmers (and therefore their users) about what (parts of) programs are able to access like they do now.
Do you have a way to do it on the hardware people actually have that doesn't destroy performance every time the CPU context switches? You can always move all your filesystems to FUSE if you like the performance...
But i'm perplexed by the unrelenting, ever re-occurring "counterpoint" of performance whenever the topic of sound security architectures comes up. As if even a 2x slowdown would be unacceptable, so many Moore's law doublings after Linux has been created later, in exchange for a system that doesn't allow thousands of vulnerabilities, and would limit the effects of more, yet undetected ones.
OpenBSD fits the bill
And all those cars, rockets, factories powered by QNX, INTEGRITY,....
Ah, and those Switch games, nothing really that relevant.
Other than Fuchsia (I assume), all of those are at most hybrid systems with the performance-sensitive drivers still in ring 0.
> And all those cars, rockets, factories powered by QNX, INTEGRITY,....
Yes, you can get away with a lot if you're willing to sacrifice performance for safety.
> Ah, and those Switch games, nothing really that relevant.
That actually is an interesting point. Do you know how that works? I'd guess either they're doing something fun in hardware or they've actually got something going on in software worth considering. (Unless the thing they're doing is impractical to port to more general-purpose systems)
We need another Bell Labs.
We weren't talking about motivations or goals for making an open source kernel. Why Linus wanted to make an open source kernel is not the same topic as him being so strongly against microkernels and anything inspired by them for years. Linux could have ended up with isolated kernel components including the ability to choose to run components as a whole or instances of those with isolation. It has so many features and so much complexity added across the code for niche purposes but yet not basic measures for robustness and security due to the core design philosophy.
We were talking about the chosen architecture and design choices. Those have been explicitly made to prioritize performance and features over robustness and security. More robust and secure ways of doing things have been explicitly rejected and often ridiculed.
The fact that we now have multi gigabyte RAM devices, does not mean that the kernel can go multi megabyte.
I'm also think that CPU designers should talk more to kernel developers: Linus is right on this topic.
Yeah I think they're conflating UNIX-like general philosophy and Linux.
The UNIX method has been shown to have many upsides.
Though implementations due to slow old computers without fancy GPUs are user hostile
It's all computer state so IMO applying the same concept and principle is more valuable a mindset than something more specific "Linux 4eva!"
I don't think they are, actually; they appear to be arguing microkernel vs monolithic kernel, and we have unix-likes based on microkernels.
Of course, I am talking about the kernel, not the entire OS.
Linux stood up on the shoulders of a giant like Minix, Unix was basically designed and coded from scratch.
Then, I for one, would not change C for anything else. The problem is not the language (which is just a tool), the problem is the coding (and the coders).
The UNIX command line userland philosophy was not to architect a rigid user facing system in advance but enable ad hoc, as needed edge case problem solving.
Linus solved the problem of not having UNIX kernel sources by designing the Linux kernel from his experience as a UNIX user solving problems as they appeared not through advanced speculation and architecture. The connection seems obvious to me.
And this doesn't say anything that wasn't obvious this whole time. It's just in the spirit of the don't architect based on speculation but reality, LLMs didn't exist and didn't need to be accounted for. No corporation, nation state or script kiddie had enough compute back then.
This is all like config DSLs; it all been coming up again and again the entire 30ish I been paying attention to Linux/Unix.
Never contributed code back then though. I was more interested in EE, building electronics back then but was curious enough about Linux to build kernels and eventually Slackware. Really not all that interested in code today even; it's just how it works
Anyone who studies kernel development long enough will eventually say micro kernels are much safer, we have better languages now, or there are better ways to access OS resources, and they’re sort of right. But the reason Linux succeeds is because it focuses on being the fastest, fully featured kernel, and that’s what people actually wants. There are dozens of alternatives that nobody uses because at the end of the day, nobody cares if your language is “safer” and your drivers don’t have kernel access if it’s 10% slower when reading IO. They’ll just stick with Linux
Replacing Linux (and likely having to change some parts of POSIX as well) would be an even taller order than rewriting C code in some other language. At least for userland rewrites, you have parity and an API (POSIX, other libraries in userland) to code to.
It might still be a good idea to do both of those, mind you. But let's not fool ourselves: the main reasons the incumbents are the incumbents is that it's hard, likely-to-fail, and incredibly slow work to replace them.
Which is, of course, why GrapheneOS is based on minix, right?
Edit: Really, this is just GOS being GOS; only ever Security (by their own very specific, poorly defined definition thereof), with nothing else allowed to be a consideration. There is a reason the industry went with monolithic kernels when other options existed. Even today in 2026, we've merely worked out how to reduce the performance hit of microkernels, and in the 90s Torvalds was very justified in preferring to ship something that would actually run decently on extant hardware.
Edit2: To be fair. I like minix. I have actually tried to make HURD into a usable system. I want these things to work. But there are harsh tradeoffs in play that are still painful even after decades of work, and this kind of post does not exactly convince people that GOS is making level-headed evaluations of technical choices.
Lots of options exist for people who do what you describe as the "right" way. People who aren't in the security-at-all-costs group have plenty to choose from.
Are you saying that software that promotes security at the price of usability should not be permitted to exist, nor that people should, whatever their use case, desire it?
I'm saying maybe they could desire and work on their thing without having to constantly yell about how everyone and everything else is awful and sucks.
I see them taking the lens through which they look at their own software, and looking through that lens at other software too.
If someone cares about GOS's view on security, that's useful. Since you don't care for GOS's view on security, it's not useful to you.
Them saying it's objectively awful and sucks is your imagination. Them saying it doesn't meet good security standards is subjectively true. If you feel personally hurt by frank security discussions of software, that's not something another person is expected to accommodate. If you don't feel personally hurt by that, you should be aware that your writing implies otherwise to the reader.
You're misrepresenting about what we've said and done. You're misrepresenting what we've built and are building. You're claiming our posts in that threads are somehow irrational which they're not. On the other hand, your posts in discussions about GrapheneOS are clearly irrational attacks on the project and our team. You post attacks on it in many threads about it and desperately try to spin things to harm the project and our team. You've consistently engaged in vile personal attacks towards our team and supported harassment. The post you've made only subtly masks that you're continuing to make those personal attacks. It's a clear reference to the libel and harassment you've supported for a long time.
Or, TLDR: Criticizing a project is not a personal attack.
In the same time you silence users on your discussion board for quoting your public takes and whining about other platforms (like Hacker News) allowing people to express their opinion freely. Recent example thereof: https://grapheneos.social/@GrapheneOS/117566606444951363
It's also strange how there's often this double standard. People are allowed to attack the project, but we're not allowed to call out platforms that permit it? And is there something about those posts that you found incorrect?
Another consideration is design: everything having access to everything as a monolithic kernel running in a privileged execution environment (ring 0) is an inherently unsafe and insecure design, however it offers apparent simplicity compared hybrid microkernels that have to coordinate messy transactions across multiple areas of responsibility and organize the exposure/control of particular data and operations that would otherwise be exposed in a monolith.
My 2 centidollars: I think it can be fixed with a different, mostly-compatible approach. A basic kernel should be shrunk to include as little as possible and formally prove that (under all combinations of configuration options that change it). Then, almost all functionality should be loaded as a module with an accompanying allowlist metadata of granted functions/data structures. On top of that, modules should be thoroughly testable and also provably correct.
What do you mean by that?
Rust feels very similar, and while things could always be different (Rust makes sense for vibe-coders) we won't know if it's here to stay until the future arrives.
Ignoring the pesky little problem that these microkernels and languages did not exist 30 years ago. It was Linux with their garbage drivers that enabled people to use it in their computers. It is very easy to imagine something rather than creating it in reality.
L4, which had much faster IPC than Mach, started in 1996. QNX4 was released in 1990, which had POSIX support (and was a microkernel before that) and was used in many critical embedded systems. There were a lot of exciting microkernel projects in the mid to late 90s, but they never gained much traction because of the network effects that Linux already had (drivers, etc.).
Memory-safe languages go way back before the 90ies. ML is from the 70ies and was quite performant early on. Rust can in many ways be traced back to ML (despite not being a functional language). Not only was the original Rust bootstrapping compiler written in OCaml, is also uses many concepts from ML (algebraic data types, type inference, etc.).
That is my point. My point was about the drivers, not that microkernels or memory safe languages did not exist at all. You could not download a microkernel written in a memory safe language and run it on your personal computer. Like you could with Linux. Why? Because Linux had the drivers and other projects did not. AFAIK there are still no microkernel OS with the same level of driver support as Linux. We should stay grounded in this reality instead of daydreaming about something impossible. Like running a microkernel OS written in memory safe language. It was impossible 30 years ago and it is still impossible 30 years later.
Had Microsoft been serious about their POSIX support, I would not have bothered one second.
It wasn't FOSS nor hardware support, rather not having to travel to campus laboratory and fight for a terminal, losing a couple of hours.