293 points · by joonehur · 1w ago · 85 comments
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.
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".
I'm confused. Was't UNIX a commercial product?
https://download.oldlinux.org/ECLK-5.0-WithCover.pdf
The whole website is dedicated to old Linux. (https://oldlinux.org/)
I hope this message reaches you in good health.
I am writing to express my interest in the important work and the initiatives of the [Beate Heister Siepmann Foundation] through a donation support.
I would like to add the amount of [€1,500,000.00] to your account. contribute to activities. My aim is to help [families in need because we believe that there are a lots of families out there who live on paycheck to paycheck and others that cannot take care of their financial obligations and have a good Holiday with family and friends. I have decided to donate €1,500,000 to you. This is part of my promises to the charity project.
For more information. Please send the following donation code – [ /BBIB/AVL2026/28392/USSPA/ ] – to my organization's email address is listed below:
Email: beateheistersiepmannstiftung@europe.com
Thank you for your continued commitment. I look forward to hearing from you. to listen to them.
Greetings
Ms. Beate Heister
Issued by Beate Heister Siepmann Foundation.
(Emphasis added.)
And so it was: IIRC, nroff was largely obviated by Brian Reid's SCRIBE, a forerunner of HTML and LaTeX.
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?
It had good information. Though there was an overview part of it.
But it just had people from my company, so the last day was going over stuff we wanted to know. The instructor was super knowledgeable and answered a lot of our question (scheduling and multiprocessor control). We were coming from HPUX “semi real time” which was pretty great (turn off interupts and full speed ahead)
I probably should wrap it in plastic to preserve it ...
(I spent so much on the departmental copier as a bored intern.)
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.
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?
:)
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 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.