Dennis Ritchie, the Bell Labs Programmer Who Gave Us C
In 1978 Dennis Ritchie put his name on a slim paperback about a language with an even shorter name. He'd created C at Bell Labs, where he and Ken Thompson had used it to do something most people wouldn't try on a perfectly good operating system.
They'd rewritten much of Unix in it. Now a first-time programmer could sit down with Ritchie and Brian Kernighan's book and try the same language, starting with two words on a screen.
Dennis Ritchie at a Glance
- Ritchie was born in 1941, grew up in New Jersey and followed his father into research at Bell Labs after studying at Harvard.
- He created C in the early 1970s and worked with Ken Thompson to build Unix. Their work won them the 1983 Turing Award.
- He co-wrote The C Programming Language with Brian Kernighan in 1978. Programmers still refer to the authors and the book by their initials, K&R.
- He helped move Unix to other kinds of computers and spent his later years at the labs working with the teams behind Plan 9 and Inferno.
The Life of Dennis Ritchie
A telephone engineer in the family
Alistair Ritchie worked on switching circuits, the equipment that made it possible for one telephone customer to reach another. He also helped write a book about them.
His son Dennis eventually managed to follow him into both lines of work.
Dennis was born in Bronxville, New York, and grew up in New Jersey near the labs. At Harvard he studied physics, then went on to graduate work in applied math.
A computer there caught his interest, in part because he wanted to know how the thing actually worked.
In his account of his early life, Ritchie described a career that looked much less planned from the inside. In 1967 he went to Bell Labs, where he could follow that interest alongside people who knew the machines down to the wires.
Alistair had written The Design of Switching Circuits with two colleagues. When Dennis later wrote about his father, he singled out that book.
It would give father and son one more thing in common once Dennis found his own coauthor.
His assignment was Multics, a joint effort by the labs, MIT and General Electric. It was meant to let many people share one large computer and work at their own terminals, quite a change from handing in a job and waiting for the answer.
Ritchie finds a partner
The project paired him with Ken Thompson. They liked the freedom of that shared machine, and when Bell Labs withdrew in 1969, neither wanted to go back to the old way of working.
They found a spare PDP-7. Thompson wanted to move a space game onto it, and Ritchie joined him in figuring out how to make it run.
Before long Thompson was writing a system for storing files, and the two had the beginnings of Unix.
The pair made an unlikely pitch for a better computer. Give them a PDP-11, they said, and they could help the patent department prepare documents.
Nobody signing the purchase order had to share Thompson's enthusiasm for landing a spaceship.
Three typists used the new system to prepare patent applications. They needed equations to print correctly and line numbers that made it easy for a lawyer to point to a passage.
The patent department's experience gave Unix a job outside the research group.
- Chapter 7 takes apart Google’s first TPU on paper, down to the grid that does the math.
- This is a college textbook for readers who want to work through the numbers behind the design.
How B became C
Thompson had already made a language called B. It was compact, a fine quality on a machine where every scrap of memory mattered, but a different computer exposed things B couldn't express neatly.
Ritchie began changing it. He wanted programmers to be able to describe a character or a number and to say how pieces of data belonged together.
He also wanted the machine to run the result fast enough to handle the work of an operating system.
In his history of C, Ritchie dated the busiest part of that work to 1972. He could take a new idea down the hall to people using the language on Unix.
If it made their work harder, he generally heard about it.
By 1973 the team had rewritten much of the core of Unix in C. For Ritchie the next question was whether someone could move it to another kind of computer without having to start all over again.
Taking C Out of the Lab
Ritchie and his colleagues tried the move on an Interdata computer. Programs that had seemed perfectly good on their PDP-11 turned out to assume things about the size of a number or the way a machine kept it in memory.
Ritchie credited Steve Johnson as well as Thompson in his account of the move. Finding those hidden assumptions helped the team sort out which parts of Unix could travel as they were and which had to change at each new stop.
Brian Kernighan had another way to put C in the hands of strangers. He was a Bell Labs colleague with a gift for teaching, and he'd been writing about programming for people who wanted to get a working result before lunch.
Together they wrote The C Programming Language. The book opened with a small program that printed a greeting.
A reader who got it to say hello had already figured out how to write a program, translate it and run it.
The book came out in 1978. It was short enough to sit beside a keyboard, and readers started calling it K&R.
A second edition followed a decade later as C was being written into a formal standard.
A Quiet Life After a Very Loud Success
Ritchie and Thompson shared the 1983 Turing Award and later received the US National Medal of Technology. Inside the labs, Ritchie continued to do what colleagues knew him for, working on systems with other people and giving them room to try things.
- Try both Arm and RISC-V processors on a single board and compare them yourself.
- Skip the soldering: the header pins arrive already attached.
- Follow the step-by-step tutorial in MicroPython or C at your own pace.
He led the computing research department and worked on Plan 9 and Inferno, systems that let a younger generation of researchers revisit the choices his own group had made. Kernighan's remembrance of his coauthor records the loss of a colleague and a friend in 2011.
Ritchie also kept an odd little collection of other things called Unix. One was a British line of shelving.
After all the awards and all the machines running his work, a clipping about a set of shelves still made Dennis Ritchie smile enough to save it.
Ken Thompson and the Spare Computer That Became Unix

Steve Bourne: The Man Who Turned a Command Prompt Into a Language

Daniel Stenberg: The Programmer Whose Code Runs on Mars

QUOTE:
"Amateurs hack systems, professionals hack people."

