Why C Took 52 Years to Get a Real Bool
dev.to·20h·
Discuss: DEV
Flag this post

1972 April. Cherry blossoms bloomed in Cambridge Park, but MIT’s AI Lab was in open revolt over the glacial speed of ARPANET. 300 kilometers south of New York, at Bell Labs, Dennis Ritchie hunched over a PDP-11/20—its green phosphor screen glowing, its memory a mere 24KB, its hard drive smaller than a modern USB stick. His mission was deceptively simple: rewrite the entire Unix operating system from assembly into a “higher-level” language, one that could run on other machines.

He set himself a brutal goal: “Code written in this language must generate assembly as fast and compact as handwritten code. Not a single extra byte allowed.”

And so, C was born.

It was an era without function prototypes. An era where writing int flag; and then if (flag = 1) wouldn’t trigger a si…

Similar Posts

Loading similar posts...