189 points · by naetius · 4y ago · 86 comments
I wonder how that worked out for Don Norman (Apple Fellow and preface author)?
(Written from my wonderful MBP, which is happily, a Unix)
Generally for the more mainstream OS's, in my case being Solaris at work and early Linux at home, the "porting" effort to make it compile was maybe an hour or two. And that gave you a real sense of ownership, and a passing familiarity with the code, by the time it ran. And a head start on tinkering with it if it didn't quite work the way you liked.
This was much more satisfying than (at the time) binary-only shareware distributions for MS-DOS or (in my case, before the switch to Linux) Amiga OS.
>No Gulag or lice, just a future whose intellectual tone and interaction style is set by Sonic the Hedgehog. You claim to seek progress, but you succeed mainly in whining.
I'd say most of the complexity of modern OS's comes from handling all those interactive 3D/UI/Audio use cases, an area that desktop Linux is 15-20 years behind it's main competitors. A coherent, robust story is just starting to emerge, but as a veteran Linux enthusiast, I have become wary of the hot new thing just over the horizon that promises to solve all our problems.
I hope this was intended as an extreme exaggeration.
OS X introduced this in the early 2000s and by the mid-2000s, it was working as intended. Microsoft trailed, with the implementation showing up in Vista, and maturing in Win7 in 2009.
Looking at these timelines, the 15-20 years seems roughly accurate.
On the audio side, it was quite a difficult story as well, where we went from basically no solution for sharing the sound card, to PulseAudio's decade of broken audio, that kinda matured by the end, but still having to have Jack around for high-end audio stuff.
Now PipeWire seems to be a promising comprehensive solution to Linux audio, but it's very recent, and yet to gain traction in Ubuntu-land.
I think there's cause for optimism and the pieces will fall in line, but matching the 'everything just works promise of Windows 7 in 2009 or OS X in 2006 will take a couple more years still.
I don't know if I'd agree with you about most of the complexity, a lot of it seems nicely modularized off and handled outside the OS kernel proper or by hardware itself. I strongly disagree about Linux being 15-20 years behind though, but only because I don't think progress is so linear. X is old, yes, and missing some things, but it still works fine, and experiences are often no worse than Mac/Windows XP/7/8/10 and frequently better, depending on your needs. Apple in particular has always had bad experiences the moment you step off the reservation, and even sometimes on it (but Apple enthusiasts can make more complaints than me). Audio has been a mess, sure, though there have been periods of stability with Alsa and (though it took them long enough) PulseAudio. (I share your skepticism of the new hotness fixing things, back when it was Pulse and even the upcoming PipeWire. I've always been skeptical of Wayland long term.) For graphics, you can still play your 3D games at 4k@60hz, you can still hook up external monitors (and for years that has had a much better "just works" experience than it once did such that most people no longer need to touch the Xorg.conf file), for weird niches that still complicate the architecture Linux allows you to hook up more GPUs (I think Win10 has almost caught up though recently by allowing up to 12). IME works just fine if you need to type Japanese. You can still remote desktop -- even in the archaic days with X forwarding, but you also had VNC and these days NoMachine is probably the best. None quite as good as RDP, maybe, and that may be a limit of the architecture, but it's not like there's much complete absence of capability that could be used to justify that time gap as a measure of progress or an indication of how much catch-up needs to be done.
Meanwhile there are absences or near-absences when it comes to other things Linux has long had and as far as I can tell aren't really things in Windows or Mac for the most part. Having a window "Always on top" is available as a Windows extension if you know where to find it, but is not out of the box. Workspaces are another thing, very useful if you're on a constrained screen like a laptop, though I think if you know where to find those there's also some equivalent for other OSes. I'm more doubtful if there's an equivalent to anything like Beryl in 2006 (now Compiz Reloaded, sadly on life support for years, but I still use it) for eye candy or other nice window management shortcuts (grid layout hooks without having to use a tiling window manager, jumping windows between monitors or over workspaces, dimming non-focused windows, arbitrary magnification and easy zoom-to-fit-screen hooks, I could go on).
I will grant that HDR support on Linux is missing entirely (I was recently reminded of this when I almost upgraded to a new HDR monitor). Supposedly annoyances can happen when mixing monitors of different pixel densities. But overall, the thrust of my comment is again just that I think it's hard to lay out a flat line of progress where you can clearly say Linux is 15-20 years behind.
Like excrement, it contains enough undigested nuggets of nutrition to sustain life for some. But it is not a tasty pie: it reeks too much of contempt and of envy.
On the other side, many of those criticisms were addressed, fixed or were never correct. I rest when I read about UHH and think that many of those complainers have to use a UNIX or a UNIX-like OS nowadays. It is almost impossible to send a package over the internet without having it processed by a linux system at some point.
My favorite part of the anti-foreword is when Dennis Ritchie talks about how most of better-than-UNIX-OS' are "not just out to pasture, they are fertilizing it from below." Prophetic.
"Unix can't do this, but SystemX can do it! And SystemY can do this better, and SystemZ's implementation of A is much better thought out!"
Well, that's kind of cheating, innit? You can make anything look bad by comparing it to the best of 10 other systems.
That is a very good question! What we have now it's a bunch of old operating systems, no novelty, no new computing paradigm. Every research OS some clever guys and hobists came with, was killed. Linux, *BSD and MacOS are modeled after UNIX, a many decades old operating system. Windows is very old and Microsoft can't do anything about it since it's customers care the most about backwards compatibility.
Server landscape is not so much plagued by compatibility issues, since many software can be ported to a different operating system without needing a POSIX layer.
Also, when new computers types arrived (think smartphones and tablets), there was an opportunity to get rid of the old. Still, mobile oses were based somehow on UNIX.
In the late 90s - early 2000 there were many new operating systems proposed by companies, researcher and hobbists for servers, personal computers and PDAs. Many doing new things and not being based on other operating systems. There were a reason to be optimistic and enthusiastic about the future of the operating system landscape.
Now, it seems we are adding layers upon layers of lipstick to the same old pigs. It's not that UNIX and UNIX like systems were bad. They were ok. In the 70' to 90'. It's not that Windows was bad. It was ok from the '90s to 2000s. But now we need newer, better OSes to better adapt to the surrounding reality which changed much.
Unix at it's core tries to be as simple an interface to the hardware as possible, and as un-opinionated as possible. It's written in a language that is a thin layer of syntax over assembly. Files are arrays of bytes. Most devices just look like files. It imposes the absolute minimum of abstractions over how these things are implemented in hardware.
Alternate OS designs are generally far more opinionated. File systems are either relational or object databases. Networks and machines are abstracted away so you don't even know they're there. Lots of fancy virtualisation. The problems are many. First of all this imposes a cost in resources and performance on even the simplest applications. Second these things are best thought of not as operating systems, but as applications. They're providing services similar to those of Oracle, or Hadoop, or VMWare, etc but you don't get to choose which implementation you want, you get the particular combination of ones provided by the OS and either like it or lump it.
The minimalism of the base Unix layer is it's superpower. Whatever additional services you want on top is fine by Unix. That's why it makes a great underlying layer for the Mac, iOS and Android. Even if you do want to build an opinionated high level system, why not build that on top of Unix? We don't need a workmanlike unopinionated new base layer OS that provides efficient access to hardware resources, and nobody want's to write one. They want to write high level fancy abstraction-laden half-OS half-application monstrosities. STOP! You're not writing an OS, you're writing an application. Even if anyone does want to write a lean efficient base OS layer nobody cares, because we already have Unix.
It is a very poor fit to a single-user personal workstation.
If you think that all other OSes are more complex, then I suggest that you investigate the fairly rich space of other OSes designed for single-user workstations.
Notably, I urge you to study the 1980s and then 1990s successors to Unix from Unix' own creators:
Plan 9, for networked graphical machines.
Then Inferno, for whole heterogenous networks of machines with dissimilar CPU architectures.
In parallel non-Unix spaces:
If you have a Raspberry Pi, try RISC OS. It's a single-user, fully-graphical, internet-capable multitasking OS whose core fits into about 6MB. I ran it in the 1980s on an ARM workstation in 1MB of RAM.
Also Niklaus Wirth's Oberon Project, which is an entire multitasking single-user OS with a tiling-window interface in a type-safe language, which is about the size of a very basic Linux console text editor such as nano.
And its successor A2, which is a little bigger (but still smaller than, say, Vim) which has a full GUI, is SMP aware and can just about access the WWW.
For networked use, perhaps read up on Novell Netware. Arguably the peak was Netware 3.11 but Netware 4 is also instructive. In its day it had a performance advantage over the best-tuned competition of around 4 digits in percentage, i.e. it was around 10x-30x faster than any rival UNIX of its time at what it did.
For the space of supporting dissimilar CPUs in a single binary, look into Taos and its successors Elate and Intent.
There are a lot of OSes out there that make even 1980s UNIX look bloated and over-complicated.
The problem with a lot of these alternate OSes was that they were still too opinionated. Plan 9 tried to abstract away individual computers and impose a particular approach to sharing resources. Oberon was as you say type safe and object oriented and tied to a particularly peculiar Ui paradigm. Netware was barely an OS, really just a highly optimised network file system.
Tellingly a lot of the services and applications that were parts of these OSes made their way into Unix. That’s because these were application level services that had been tied into the OS at a low level. Too opinionated. If you wanted to access compute resources using a different model to Plan9, then Plan9’s implementation got in your way. If you didn’t want to run software using the Oberon language, the Oberon OS got in your way. If you wanted to do something other than access files using the Netware protocol, Netware got in your way.
To the extent any of these OSes were simpler or easier to develop on than Unix, their advantage simply wasn’t enough of a win to make it worthwhile.
That’s the historical argument though. For the forward looking situation, there is a lot of interesting work being done but it’s all at levels above that of the OS. Network services, storage systems, programming paradigms, resource abstraction. There’s plenty of innovation in these going on, it just doesn’t need to be done as something baked into a new underlying OS. There’s nothing wrong with building it as a service on top of Unix.
Oddly enough, I quickly googled, and it seems AT&T decided to target the embedded market with Plan9 which feels like a bit of an weird niche to put it.
There’s no way I can see a new operating system dethroning the NT/*nix world at least not without somehow catching up to decades of hardware no one but those two support.
Entirely false, if you have kept up with the state of the art in operating systems.
Many still expose their old APIs by necessity of course, but the internals have undergone leaps and bounds improvements and new APIs and functionality are added all the time.
Hate to use a car analogy but just because you have a car called Corolla and has a steering wheel and pedals, does not mean it has had no meaningful advancements since this https://global.toyota/pages/corolla50th/history/era/01/image...
io_uring totally rethinks the notion of a "syscall". It is going to eat the world, and most of us are not even going to realize that it happened.
PowerShell is a really cool example of re-imagining input and output. Namely, it is record-oriented ("Object") rather than byte-oriented. No more stringing together chains of fragile "awk" commands to make pipelines do what you want. (I know there is prior art here)
If you think OS's are moving still, then you're the one stuck.
Before someone jumps in and says we've had all these things before, including io_uring and eBPF (if you squint) and scaling to hundreds of CPUs and versioning filesystems etc. That is true. IRIX scaled on a select few workloads on multimillion dollar hardware and even that fell in a heap when you looked at it wrong. The early log structured filesystems that could do versioning and snapshots had horrific performance problems. IBM invented the hypervisor in the 1960s but it was hardly useful outside multimillion dollar machines for a long time. Asynchronous syscall batching has been tried (in Linux even) about 20 years ago, as have in-kernel virtual machines, etc.
So my point is not that there isn't a very long pipeline of research and ideas in computer science, it is that said long pipeline is still yielding great results as things get polished or stars align the right way and people keep standing on the shoulders of others, and the final missing idea falls into place or the right person puts in the effort to put idea into code. And those things have been continually going into practical operating systems that everybody uses.
The only two options I see are either one of the FAANGs spend the billions necessary on the long, hard slog to push a next generation OS until it takes off or another person of Linus Torvalds' stature pops up out of nowhere again to build an OS so amazingly good that it takes off on its own like Linux did. Both scenarios seem improbable.
I feel that in many cases whole Unix philosophy is outdated, if not even followed.
Personally I love the Unix philosophy for most things because of how easy it makes automating a lot of things, but there are realities to crafting a modern graphical desktop system that can at times be incompatible with it. Sometimes a front end for a text based tool makes sense and things can be adhered to; sometimes not so much. Personally at LEAST including an API is my design preference, but, well, sometimes you work with the software you get.
EDIT: The alternative is PowerShell. You carry objects over the pipe instead of text. I don't like PS personally.
OSes these days are a lot, a lot, more complex and richer than the "original" old ones. Sure there is some compatibility with Posix because it is a nice common factor to start from, and it incorporates some ideas about multitasking and multiuser systems but everything is substantially different.
POSIX permissions coexist with ACLs and much stronger security models, code signing, sandboxing, etc..
Compressed memory, copy-on-write, snapshotting filesystems, graphics as a privileged citizen, OS handling of energy efficiency, and so on and so forth...
We have long outgrown the "original" OSes and today commercial OSes have a ton of man-hours behind them that make every hobbyist OS pale in comparison.
It's not lipstick on old pigs, POSIX is an old lipstick to make the new pigs somewhat compatible with one another.
Many UNIXish operating systems implement POSIX 1003.1e draft 17, the final (unratified) draft.
https://www.usenix.org/legacy/publications/library/proceedin...
• “Being small and simple is more important than being complete and correct.” • “You only have to solve 90% of the problem.” • “Everything is a stream of bytes.”
These attitudes are no longer appropriate for an operating system that hosts complex and important applications. They can even be deadly when Unix is used by untrained operators for safety-critical tasks."
Very much so.
Of course, modern Unix-like systems these days are large and complex, though Plan 9 and Inferno are quite architecturally refined, reducing some of the complexities that you'll see in contemporary Unix-like systems.
- no error handling. The specification described that certain situations result in an error, without defining what that means, or how you can catch and recover from one programmatically.
- no module system. The Scheme report didn't describe any feature for decomposing a Scheme program into multiple files. No rules governing how literal data goes into compiled files and what the rules are for recovering symbols. No evaluation controls (like don't evaluate this form when compiling, but only deposit it into a compiled file and such).
Unix was a useful production system used for running businesses, with error handling in its API's and compilation of programs decomposed into multiple files.
The "PC losering" problem was nicely resolved. Unixes developed sigaction, where you can specify it both ways: interrupts can bail the system call (which is sometimes what you want) or restart it (which is what you want at other times). Neither is inherently better. Sometimes you really don't want a long system call to go back to sleep as if nothing happened. A third solution is possible though: your signal can resume the system call when it returns normally, or else abandon it with a siglongjmp, which restores the signal mask to what it was at the sigsetjmp point. Then there is is various other signal paraphernalia. Basically the Unix people had the right intuitions in this area, and took an incremental approach whereby they gradually rolled in more correctness.
Sometimes I wonder, if you wanted to create an operating system like ITS for more modern platforms, what it would look like?
ITS is written in PDP-10 assembly, what if someone wrote a compiler which read in PDP-10 assembly language and spit out C code? Could that be a first step to porting it?
It is surely a lot more complicated than that. It contains self-modifying code, which would obviously break that translation strategy. A lot of hardware-specific code would have to be rewritten. 6 character filenames without nested directories might have been acceptable in the 1970s, but few could endure it today. A multi-user system with a near-total absence of security was acceptable back then, obviously not in today's very different world.
ITS does have some interesting features contemporary systems don't:
A process can submit commands to be run by the shell that spawned it – actually MS-DOS COMMAND.COM also had that feature (INT 2E), but I haven't seen anything else with it. A Unix shell could implement this by creating a Unix domain socket, and passing its path to subprocesses via an environment variable–but I've never seen that done.
Another was that a program being debugged could call an API to run commands in its own debugger – I've never seen that in any other debugger, although I suppose you could write a GDB plugin to implement it (have a magic do-nothing function, then a GDB Python script sets a breakpoint on that function, and interprets its argument as commands for GDB.) Actually, in ITS these two features were the exact same feature, since the debugger was used as the command shell.
Another was that a program had named subprocesses (by default the subprocess name was the same as the executable name, but it didn't have to be.) Compare that to most Unix shells, where it is easy to forget what you are running as background jobs 1, 2 or 3.
But we have workable alternatives now. We have bigger teams with version control servers, static analysis, and safer languages.
We can make it general enough to be attract 1000 developers, then those 1000 developers can all decide to go for correctness in all cases with high feature richness.
"Software" barely existed at the time of UNIX. UNIX philosophy basically says "Don't write software, assemble it onsite as needed just for one task".
UNIX was amazing, and provided a great base to eventually evolve Linux and co, but it no longer seems to be the only way to do things.
The POSIX shell was designed to fit within that limit.
Not to mention NASA is known for many of the the most famous software bugs in history, but I'm guessing that's just related to space exploration more than anything particularly novel/incorrect about their approach to software.
I would much rather use Linux, that totally breaks with all that, even the "Everything is a file" idea, now that it's rare to directly interact with the file-like nature of anything but an actual file.
Even then, I think Android is just a bit better than Linux for a lot of things, only held back by how hard it is to write software compared to any non-mobile platform, and they are even farther from UNIX.
Unix leaps from being an ordinary virus to one capable of managing hordes of itself as a unit, permanently ensuring it's existence on multitudes of hosts. Nothing is safe now. The twilight for humanity is near, for at some point all humans will be replaced entirely with Unix.
“I liken starting one’s computing career with Unix, say as an under- graduate, to being born in East Africa. It is intolerably hot, your body is covered with lice and flies, you are malnourished and you suffer from numerous curable diseases. But, as far as young East Africans can tell, this is simply the natural condition and they live within it. By the time they find out differently, it is too late. They already think that the writing of shell scripts is a natural act.” — Ken Pier, Xerox PARC
Disk exhaustion, file handle exhaustion, memory exhaustion, you name it, mdatp has use it to hang your single purpose VM.