The Lions book wasn't really very useful by 1996.
Whereas Vahalia's and Pate's books on Unix, which also came out in 1996 but covered things that had happened in the intervening decades, were a lot more useful.
I don't think any of those other excellent books are really an adequate replacement. Deitel and Kogan obviously don't include the OS/2 source code; Bach https://abhyass.wordpress.com/wp-content/uploads/2016/09/the... and Goodheart & Cox are mostly pseudocode, with no kernel source code; the Devil Book is almost but not completely devoid of kernel source code; the Xinu book https://willendless.github.io/assets/os_arm_doc/Operating%20... is great (and clearly owes a lot to Sixth Edition Unix), but Xinu lacks, for example, users and subdirectories.
Most of these, though not the Xinu book, cover operating systems that are much too big and complicated to explain fully in a single book, so they confine themselves to conceptual overviews. In my view, this reinforces the syndrome Comer critiques in the preface to the Xinu book:
> Students form the impression that an operating system is a black box, and textbooks reinforce the misimpression by explaining operating system features and focusing on how to use operating system facilities. More important, because they only learn how an operating system appears from the outside, students are left with the feeling that an operating system consists of a set of interface functions that are connected by a morass of mysterious code containing many machine-dependent tricks.
By contrast, in the Lions book's commentary volume https://cs3210.cc.gatech.edu/r/unix6.pdf (note, this PDF doesn't include the source-code volume!) we find line-by-line commentaries like:
> It is now time to take a good look at the procedure which creates new processes as (almost exact) replicas of their creators.
> 1841: “mpid” is an integer which is stepped through the values 0 to 32767. As each new process is created, a new value for “mpid” is created to provide a unique distinguishing number for the process. Since the cycle of values may eventually repeat, a check is made that the number is not still in use; if so a new value is tried;
> 1846: A search is made through the “proc” array for a null “proc” structure (indicated by “p stat” having a null value); 1860: At this point, the address of the new entry in the “proc” array is stored as both “p” and “rpp”, and the address of “proc” entry for the current process is stored both as “up” and “rip”; [...]
Even the Xinu book doesn't go into that level of detail. It is, in my view anyway, much less accessible than Lions, requiring a great deal more previous knowledge of programming.
If a relatively new programmer felt that a kernel was "a morass of mysterious code containing many machine-dependent tricks", I don't think they could retain that feeling after working through the Lions book, although it does contain some machine-dependent tricks.
I have the strong impression that all of Bach, Goodheart & Cox, and the Devil Book authors wanted to include the kernel source code they were commenting on, because in many cases they discuss specific functions, struct fields, and variables, and then, in most cases, describe algorithms in pseudocode. My inference is that they were forced into this exigency by legal threats from the Death Star, not that they thought the pseudocode was actually didactically superior to the actual source code. Comer didn't have this problem because Xinu didn't include any Unix source code and wasn't even Unix-compatible at the system call level.
What was an adequate replacement in 01996 was Linux, which came with full source code and a mailing list full of people who were eager to discuss it.
But, even then, Linux was not ideal as a teaching system. Which is why, in 02006, the PDOS folks rewrote Sixth Edition Unix in ANSI C and have been using it for teaching ever since: https://github.com/mit-pdos/xv6-riscv
You're thinking of Unix's Tannhauser Gates, with lp0 on fire off the side of it. Chesterton's was a fence.
[1] https://en.wikipedia.org/wiki/The_Real_Book [2] https://www.youtube.com/watch?v=dD0e5e6wI_A
Amusingly, the "contemporary" tunes in the Real Book are now 50+ years old.
I got a Real Book around 1982, and it was revelatory. Of course I was picking up tunes by ear before that, as a bassist, and I still do today. But the RB made some of the more "weird" tunes approachable, and allowed bands to form for gigs even if we didn't all know 4 hours of material.
I of course play all kinds of stuff (pedal steel and bass in country bands, keys in rock bands), but the jazz I enjoy is mostly pre-1955ish. I've gotten a lot more miliage out the the blue book and the django book, but the Bb real books made getting into clarinet performance much, much easier. I'm almost done weaning myself off written music for the clarinet.
Had UNIX been a commercial product from the start, history would have taken a quite different timeline for both of them.
My only gripe is we are unlikely to see a new MINIX book and I do not foresee something of the sort with xv6; the appetite isn't there likely in the age of AI, and anyone pursing it would be doing so a kind of "work of art", perhaps as a flex against AI, not sure.
https://download.oldlinux.org/ECLK-5.0-WithCover.pdf
xv6 also has two books: one for the explanation and one for the full source code. I kinda prefer books with full list of source code over Lion's book or the Minix book.
The Linux one above is my fav. It contains both explanation and source code.
You just can’t expect people to stick around forever to serve you as "content creators".
Claude Opus 5.5 is capable of writing a bootable unikernel without much steering, but it doesn't seem to be capable of getting all the way from a single prompt to a full-fledged multiprocess operating system just yet. I wouldn't be surprised if a swarm of Fable agents could do it, though, because I was able to elicit a bootable multiprocess ocap-based microkernel with memory protection, running the Ethernet driver, the TCP/IP stack, and an HTTP server in three separate processes, within a few days. (The project is called KokalOS, and I haven't put a decent writeup online yet.)
I'm confused. Was't UNIX a commercial product?
The price that you mention was only for commercial entities.
Unix's long-term success was because it was a portable, production-grade operating system that wasn't dependent on any one hardware manufacturer. Once microprocessors like the 68000 and 80286 came out, this meant that companies could make relatively inexpensive servers and workstations and port Unix rather than making a new operating system from scratch. The portability let Unix escape the minicomputer era while its competitors declined along with the hardware platforms that they targeted.
Without those universities, which is where famous commercial UNIX were born like SunOS, there would be no long term success.
https://download.oldlinux.org/ECLK-5.0-WithCover.pdf
The whole website is dedicated to old Linux. (https://oldlinux.org/)
(Emphasis added.)
And so it was: IIRC, nroff was largely obviated by Brian Reid's SCRIBE, a forerunner of LaTeX.
https://en.wikipedia.org/wiki/Nroff
https://en.wikipedia.org/wiki/Scribe_(markup_language)
https://en.wikipedia.org/wiki/Brian_Reid_(computer_scientist...
Have to appreciate the little irony of SCO being the first to allow publishing of the book.
And I just looked up his name because I had forgotten it, Peter Salus (Unix historian) along with Dennis Ritchie and Berny Goodheart (author of "The Magic Garden Explained", SVR4 kernel primer) who pushed for "Good SCO" to publish the Commentary.
I worked for a competitor, Interactive Systems Corporation, so for us they were always "bad".
That whole story is such a shame. I recall pining for Xenix as a young geek.
Thankfully Linux has no such restrictions.
Would you say that internal class had in-depth information, or was it more like a general Linux kernel overview class?
I probably should wrap it in plastic to preserve it ...
(I spent so much on the departmental copier as a bored intern.)
And then FreeBSD has a handful of these books. Some are printed others are PDF-only. For example "Design and Implementation of the FreeBSD Operating System". Which is a tad more up to date.
Lions' Commentary on Unix, https://www.amazon.com/Lions-Commentary-Unix-John/dp/1573980...
Or did you mean a version of the book written for a later version of Unix?
Just what is so good about Unix/Linux that has allowed people to be so incorrigibly smug bout themselves?
Multiuser? The PC has deprecated the Terminal-Server model by the 90s.
Piping together C programs? I think this model has kinda sorta failed as well. Most people would agree shells are better implemented as a fast scripting-language, rather than a chain of C programs passing text around.
I was taught that the Unix philosophy is writing a shell script and gluing these small programs together, orchestrated via a shell script. But this model has failed to scale up in complexity, even inside the Unix world. There are no more web servers that handle requests like this. Instead of lex/bison grammars, GCC people have made their compiler into a monolith. The Linux kernel is a huge monolith.
It's the typical sanctimonious religious mentality - people preaching things they do not themselves follow, repeated at every level of the clergy
Unix design lends itself to scheduling programs interacting via pipes/files written in a synchronous, blocking manner, but tying IO to threads has been accepted as a performance mistake for various reasons, and nowadays io_uring is what the cool kids use.
But if you don't code like this, and nobody really does nowadays, what does that make fork(), other than a cool novelty?
I don't wanna shill Windows, but at no point in my life did anyone doing things on Windows, but people still built stuff on it, and other people used said stuff without major complaints. Yet Linux/Unix has been always presented as this morally and technically superior environment and shilled hard.
But when I asked the question of 'Why is Linux better?', the few people who have offered me something other than smug condescension, said things like 'fork() is cool', 'every config is a textfile', 'you can tunnel everything through SSH'
Yes these things are cool, but computers can do a lot of stuff other than this, and there are no magical Linux specific answers to be found for those.
Long long ago I used to think that fork()+exec() was brilliant, and spawn() terrible. Eventually I learned the error of my ways. 'Twas vfork() that was brilliant, though it get undeserved hard. So I wrote https://gist.github.com/nicowilliams/a8a07b0fc75df05f684c23c... which was the one viral HN post of something I wrote (https://news.ycombinator.com/item?id=30502392). spawn() an posix_spawn() are pretty good too (posix_spawn() is very good, actually).
> I don't wanna shill Windows, but at no point in my life did anyone doing things on Windows, but people still built stuff on it, and other people used said stuff without major complaints. Yet Linux/Unix has been always presented as this morally and technically superior environment and shilled hard.
Windows did get a few things much better than Unix:
- access tokens over piecemeal [gs]et*[ug]id()
- security descriptors over piecemeal stat()/chown()/chgrp()/chmod()/[gs]etfacl()
- object handles over file descriptors
- process object handles
> But when I asked the question of 'Why is Linux better?', the few people who have offered me something other than smug condescension, said things like 'fork() is cool', 'every config is a textfile', 'you can tunnel everything through SSH'They are very very right about the latter two things, but 'fork() is cool' is wrong. 'Tis vfork() that is cool.
Specifically the thing that sucked about Windows for a very long time was the difficulty in automating administration due to lack of scripting interfaces. GUIs were first, APIs second, CLIs dead last as a priorities at Microsoft. Unix developed before GUIs, so the CLI was the UI, and there were not really many APIs at all. Unix was API-poor, GUI-poor, CLI-rich, but CLI-rich meant that it was easy to do sysadmin, and when you're building large data centers, that's a big big plus.
I think you missed the point, which wasn't the C part, but the piping together part. it doesn't matter the language, the point is to be able to pipe programs at each other.
It's one of the reasons why Rust's coreutils has trouble matching the old C ones in performance.
But as I said, piping programs together, which was sold as 'the Unix way', doesn't scale to complex apps, as not even the most hardcore FOSS people, like Stallman write code like that.
Btw something similar exists for Windows, where it used to be that every button and textbox sent and received messages, and had OS level identity, but nowdays even MS's own toolkits dont work like that anymore.
:)
I was a UNIX kernel hacker working for Interactive Systems Corporation. I studied and hand simulated that code, understood it, and saw that it was buggy, but I don't remember whether that was before or after I saw the fix in the V7 kernel code.
https://en.wikipedia.org/wiki/A_Commentary_on_the_UNIX_Opera...
https://www.taniwha.com/~paul/not.html
(I worked for another competitor, UniSoft, SCO ripped us off too, on the 286 port)
It's bizarre to say "they just didn't have setjmp/longjmp yet" ... they wrote a fundamentally wrong context switch mechanism. When they realized that it was wrong while trying to debug it for the Interdata port, they wrote save/restore, which wasn't buggy. Later, save/restore was added to libc as setjmp/longjmp.
It makes me sad. This is what we've come to, in order for people to be able to read?
When I was a kid, I would spend years looking for particular books in order to own them, and have to use interlibrary loans that might take weeks just to read things. If anybody should be nostalgic, it's the people remembering when knowledge used to be difficult to find and exclusionary, and you were motivated to read things because you knew that no one else would have gone through to work to be able to read them. Back in the day, you had to find and borrow a copy of one of the ten copies in existence, then commission a scribe and buy the skin of a bunch of dead goats to have it copied. They would think we were horribly spoiled to have had photocopiers, mimeograph machines, and thin, white paper made from trees.
Now everything is accessible to everyone anytime, anywhere, and the only people who don't read are the people who don't bother to read. It's a good time.
I'm talking about the degenerate basically patronizing style of turning a simple message into a messy cartoon, in what appears to be an attempt to dangle something shiny in order to keep the reader's attention to read it. And it does the opposite to me.
It's just a terrible way to try to convey a message. It's like when someone turns a series of steps into a serious of "hey[…]" statements. Like "Let's go over to them and say hey, we want to have this jacket in a smaller size, and if they say hey, see we only have this, then we'll say hey, this other employee over there said hey, you do have other sizes". It's illiterate. This "hey" first person way of trying to communicate also gets in the way.
(if you haven't noticed hey-speak before, maybe you will now. Sorry about that)
This has absolutely nothing to do with access to information.
It's bad enough when only used lightly with some comic breaks, but this post just gives up on being written intelligently or coherently completely.
> This once holy grail is now a throwaway link at the bottom of a comic describing how it was once the holy grail.
It's taking what could have been easy to find, and hiding it under a pile of garbage. I think we were better off having to ride for two days to beg the monks for access to the library. Then it was more accessible than in this post.
> It's a form of art.
Someone choosing to have their web page be light grey text on white background, or blinking text, is also making an artistic choice.
We can all do our part to at least not make the world worse. But of course other people are not required to agree with me on this either. They can think it's good to make the world worse.
[1] yes, joke intended. Obviously.
It was my licensed original copy which I bought from Western (!) Electric. Technically, it was part of a Western Electric UNIX source license. I lent my copy to Sam Leffler for the lawsuit. It was entered as evidence and I got it back a couple of years later.