The Unix book AT&T tried to bury, and every CS lab photocopied anyway

5 min read 1 source explainer
├── "Restrictive IP licensing on foundational technical knowledge creates underground education networks rather than preventing knowledge transfer"
│  ├── fosscomics (fosscomics.com) → read

The article documents how AT&T's attempt to lock down Unix source code as a trade secret in 1979 didn't stop CS education — it just drove it underground. Students photocopied Lions' Commentary for 17 years, making it 'the most duplicated document in computer science history' per Dennis Ritchie, demonstrating that demand for foundational knowledge routes around legal barriers.

│  └── @joonehur (Hacker News, 172 pts) → view

By submitting this piece to HN, the submitter surfaces the samizdat framing — treating the photocopy underground as a case study in how closed licensing on critical infrastructure backfires. The 172-point score suggests the HN community recognizes this as a recurring pattern worth revisiting.

├── "Teaching OS concepts requires reading real, working kernel code — not abstract treatments of semaphores and page tables"
│  └── fosscomics (fosscomics.com) → read

The article argues Lions' Commentary was the first 'real' OS textbook precisely because it was a line-by-line annotated reading of a shipping kernel rather than theoretical abstractions. The claim that 'you couldn't actually learn how a real OS worked in 1977 without either working at Bell Labs or reading Lions' frames hands-on code reading as the only legitimate pedagogy for systems education.

└── "The Lions saga is a recurring pattern, not historical trivia — the same mechanics keep replaying with new technologies"
  └── fosscomics (fosscomics.com) → read

The piece explicitly rejects the 'quirky folklore' framing and insists the mechanics are 'worth sitting with, because they keep repeating.' The implication is that closed-source lock-in on foundational tech — whether 1979 Unix or modern equivalents — produces the same gray-market knowledge transfer dynamics every time.

What happened

In 1977, a soft-spoken Australian professor named John Lions sat down at the University of New South Wales and did something that sounds unremarkable today: he printed out the source code for Unix Version 6 and wrote a line-by-line commentary explaining what it did. The result was two slim volumes — one containing the ~9,000 lines of C and PDP-11 assembly that made up the kernel, the other walking through every data structure, every scheduling decision, every file-system quirk. He mimeographed copies for his operating systems class.

It was the first real operating systems textbook in the sense we understand the term now: not an abstract treatment of semaphores and page tables, but an annotated reading of a working, shipping kernel. You couldn't actually learn how a real OS worked in 1977 without either working at Bell Labs or reading Lions.

Then AT&T got twitchy. When Unix moved from a research curiosity to a commercial product in 1979, the license terms tightened. Source code — and by extension, anything that reproduced the source code, including Lions' annotated edition — was now a trade secret. AT&T told universities they couldn't teach from it. They told the publisher they couldn't print it. For roughly the next 17 years, the official position was that Lions' Commentary did not exist in any form a student could legally own.

So students did what students do. They photocopied it. Then they photocopied the photocopies. Dennis Ritchie himself later estimated it was the most duplicated document in computer science history. Faded nth-generation copies with illegible margins circulated through MIT, Berkeley, Cambridge, Waterloo, every serious CS department on the planet. Entire OS courses were quietly built around a book the instructor technically wasn't allowed to acknowledge owning.

Why it matters

The fosscomics retelling frames this as a quirky piece of folklore, but the mechanics are worth sitting with, because they keep repeating. AT&T's gatekeeping didn't suppress the knowledge — it just redistributed the social cost of accessing it onto the people least able to pay. A professor at Berkeley could get a bootleg through back channels. A self-taught kid in a country without those back channels was out of luck. The book kept flowing, but only inside the network that already had access.

There's also a quieter point about what Lions actually did. He didn't invent anything. He didn't reverse-engineer anything. He just *read the code carefully and wrote down what he saw.* That turns out to be an incredibly rare act. Thompson and Ritchie had written Unix with a specific aesthetic — small, orthogonal, almost suspiciously elegant — and Lions was the first person outside Bell Labs to articulate *why* it was elegant. He pointed at the twenty-line context switch and explained why it was twenty lines and not two hundred. He walked through the buffer cache and showed how a handful of primitives composed into the whole I/O subsystem. Generations of kernel engineers — the ones who went on to write BSD, Minix, and eventually Linux — learned their taste from Lions, not from any official Bell Labs document.

Andrew Tanenbaum has said Minix wouldn't exist without Lions. Linus Torvalds learned from Tanenbaum, who learned from Lions. The entire open-source operating system lineage traces back, three or four hops, to a book that was illegal to own for most of its useful life. That's not a minor historical footnote. That's the actual mechanism by which the Unix philosophy escaped Bell Labs and became the water everyone swims in.

It took until 1996 — after AT&T had divested Unix, after Linux had already won, after the commercial case for secrecy had fully collapsed — for Peer-to-Peer Communications to secure rights and publish the thing legitimately. The foreword was written by Ritchie and Thompson themselves, who had always wanted it in print. Seventeen years of enforcement to protect an asset the asset's own creators thought should be public.

What this means for your stack

If you're reading this and thinking "interesting history, doesn't affect me," look harder. The Lions pattern — treat educational material as a trade secret, create a samizdat underground, lose the PR war, eventually surrender — is running right now across half a dozen fronts.

Closed model weights are the obvious one. Frontier labs have locked up the weights for GPT-4-class models for competitive reasons that are entirely rational on paper. In practice, researchers reconstruct capabilities through API probing, students leak fine-tuned derivatives, and the actual *understanding* of how these systems work diffuses anyway — just more slowly and more unevenly than if the weights were open. Meta's Llama release wasn't altruism; it was a read of the Lions situation. If you can't stop the knowledge from spreading, release it on your own terms.

Standards paywalls are another. ISO specs, IEEE specs, ASTM specs — the formal documents that define how your code is supposed to behave — sit behind $200 PDFs that get pirated the day they drop. Every working engineer has a folder of "research copies." No one talks about it. ECMAScript is free because TC39 learned the lesson. ISO C++ still charges you for the standard your compiler is supposed to implement.

And on the smaller scale: internal docs at your own company. If the staff engineers won't write down how the payment system actually works because "it's sensitive," you'll have a Lions situation inside your own walls within eighteen months. Someone will write a bootleg wiki. Someone will screenshot design docs into Slack DMs. The knowledge will spread, but it will spread wrong, with errors baked in, through channels you can't audit.

The actionable read is simple: if something is going to leak into practitioner knowledge anyway, you pay a smaller tax by releasing it than by fighting it. AT&T spent nearly two decades of lawyer-hours protecting a document everyone had already read.

Looking ahead

The modern successor to Lions isn't a book — it's code walkthroughs on YouTube, annotated kernel reading groups on Discord, blog series that read a real production codebase and explain what it's doing. The impulse Lions had in 1977 — *the source code is the truth, and someone should explain it* — is stronger than ever, just distributed across a thousand practitioners instead of one Australian professor. The next Lions is probably writing a Substack right now about the Postgres query planner or the V8 garbage collector, and someone's manager is probably arguing it shouldn't be public. The historical record says they'll lose that argument eventually. They always do.

Hacker News 285 pts 78 comments

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

→ read on Hacker News

// share this

// get daily digest

Top 10 dev stories every morning at 8am UTC. AI-curated. Retro terminal HTML email.