Lions' Commentary on Unix: Why It Was Secretly Copied for 20 Years

(fosscomics.com)

156 points | by joonehur 9 hours ago ago

26 comments

  • JdeBP an hour ago ago

    By the time I got hold of a copy when the book came out, the Deitel and Kogan book on OS/2 had been out for 2 years, as had the Goodheart+Cox Magic Garden book, the Leffler+McKusic+Karels+Quarterman book on 4.3BSD had been out for 7 years, the Bach book had been out for 10 years, and the Xinu books had been out for 12 years.

    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.

  • pjmlp 5 hours ago ago

    Yes, many forget that books like the Lions' Commentary on Unix, or later Andrew Tanenbaum on Minix, are the reason UNIX alongside C, won over the big bucks alternatives universities had to pay for.

    Had UNIX been a commercial product from the start, history would have taken a quite different timeline for both of them.

    • intrasight 2 hours ago ago

      > Had UNIX been a commercial product

      I'm confused. Was't UNIX a commercial product?

      • msh 2 hours ago ago

        No. AT&T was not allowed to sell software due to their phone monopoly

        • ndiddy 7 minutes ago ago

          Unix was commercialized in the sense that AT&T sold source code licenses to universities and companies through its existing IP licensing organization. These licenses were quite expensive (~$20,000). They just couldn't run a traditional software business where they would directly sell Unix to end users and provide support. Unix was never public-domain or freely redistributable.

        • AlecSchueler 44 minutes ago ago

          That's also why they had to put so much time and money into research in the first place.

  • acomjean 36 minutes ago ago

    I took the Linux Kernel Internals class at redhat as my company was switching from HPUX and Solaris. HPUX had some great tools for semi real time and we needed OS info. They gave us a tome that was really useful, but slowly went out of date….

    Thankfully Linux has no such restrictions.

  • hidroto 6 hours ago ago
    • tda 4 hours ago ago
      • analog31 25 minutes ago ago

        >>> The other big problem with these fake books at this point was that the music inside felt really out of date. The fake books hadn’t changed since the mid-40s, but jazz had.

        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.

    • shermantanktop 4 hours ago ago

      That Wikipedia page is wild. I never knew the detailed history. It explains why the Real Book has so many Steve Swallow tunes!

  • turtleyacht 8 hours ago ago

    Programmers know the value of books.

    • sirtaj 8 hours ago ago

      Interestingly, Plan 9 was already being distributed as books with source at the same time. So Thompson, Pike et al were already on board with this idea.

      Have to appreciate the little irony of SCO being the first to allow publishing of the book.

      • tankenmate 7 hours ago ago

        I'm pretty sure that it was "Santa Crus Operation" (i.e. "Good SCO") that gave permission for the book to be published (Unix Support Group (USG) was sold to Novell and then to "Good SCO"). "Bad SCO" was "SCO Group" (Darl McBride, et al) which was ex Caldera.

        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.

        • jibalt 5 hours ago ago

          Santa Cruz (a city in California).

          I worked for a competitor, Interactive Systems Corporation, so for us they were always "bad".

        • sirtaj 6 hours ago ago

          I thought so too, but by 1996 Novell had already sold (some subset of, as we found out) Unix to "Bad SCO"... or what eventually became ex-Caldera Bad SCO.

          That whole story is such a shame. I recall pining for Xenix as a young geek.

      • EdwardDiego 7 hours ago ago

        That irony regarding SCO struck me too. "Wait, SCO? That SCO? Huh."

  • ape4 an hour ago ago

    Is there a definitive equivalent about Linux?

  • jibalt 5 hours ago ago

    I got my hands on the Lions book at some point, but I worked for Interactive Systems Corporation, a UNIX development shop, and had already seen the code.

  • mkarliner 5 hours ago ago

    I still have my bootlegged photocopy from around 1985

  • ajasmin 6 hours ago ago

    Is there a good modern reprint of Lions` book?

  • jeffrallen 7 hours ago ago

    "You are not expected to understand this."

    :)

    • jibalt 5 hours ago ago

      For good reason -- it was buggy! It used the wrong stack. They fixed it in V7.

      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.

      • mesrik 2 hours ago ago

        And the comment was as Wikipedia page explains, just a Lions note his students not to worry being asked in exam.

        https://en.wikipedia.org/wiki/A_Commentary_on_the_UNIX_Opera...

      • Taniwha 3 hours ago ago

        Not really, they just didn't have setjmp/longjmp yet, they used something else. The real thing you weren't meant to understand was why a routine that was never called returning a value and mostly didn't return a value had to return "1" at that particular point

        https://www.taniwha.com/~paul/not.html

        (I worked for another competitor, UniSoft, SCO ripped us off too, on the 286 port)