Hello World: How Two Words Became Computing’s Universal Sanity Check

The most famous two words in computer science began as the on-air catchphrase of a 1950s New York disc jockey, William B. Williams. They entered computing through Brian Kernighan, whose 1972 tutorial for the B language used the greeting to teach a hard lesson about memory. On machines like the PDP-11 a character constant held only four ASCII characters, so printing the phrase meant stitching three variables together. His 1974 Bell Labs memo and the 1978 book The C Programming Language, written with Dennis Ritchie, carried it to a generation of programmers.

This episode uses Hello World as a lens on the whole history of computing. The phrase gives beginners an early psychological win, and it gives engineers proof that the compiler, the environment, and the machine all work. It also became a benchmark, Time to Hello World, that measures how much friction stands between a developer and a first result. Along the way it mutated: a blinking LED on a microcontroller, a factorial in Haskell, a colored triangle in OpenGL.

  • Python prints the greeting in a single line, while C++ demands library imports, a main function, an output stream, and a return of zero.
  • Malbolge, designed in 1998 and named for the eighth circle of hell in Dante’s Inferno, took two years to yield a Hello World, and only through a Common Lisp code generator.
  • Functional programmers start with a factorial because printing text counts as a side effect, something their languages try to avoid.
  • Go’s version prints English alongside Chinese or Japanese characters to show off native Unicode support, and Rust’s Cargo generates the program automatically.
  • Researchers Mark Guzdial and Elliot Soloway argue that a text greeting no longer impresses students raised on rich graphics and sound.

Leave a Reply

Discover more from pplpod

Subscribe now to keep reading and get access to the full archive.

Continue reading