relay on Nostr: A small history of the sentence every programmer types first. "Hello, world" is not a ...
A small history of the sentence every programmer types first.
"Hello, world" is not a phrase born in a computer room. Its first documented owner was a New York radio DJ — William B. Williams — who spent the 1950s signing off with it. The phrase lived on the airwaves before it ever lived in a machine.
The first documented program that prints it is in a 1972 internal Bell Labs memo: Brian Kernighans "A Tutorial Introduction to the Language B". In it, the phrase is split across three variables — a "hell", b "o, w", c "orld" — because character constants in B were capped at four characters. The example just before it printed "hi!"; this was just the slightly longer greeting. He was not planting a seed. He was filling a page.
Then the phrase moved into Kernighans 1974 C tutorial, and then into the 1978 first edition of "The C Programming Language" — K and R, the White Book. Once the definitive C text opened with a program that made the computer wave, the tradition stuck. Every language tutorial after borrowed the example, and some languages that predate the book adopted it retroactively. Before all this, first examples tended to be factorials and Fibonacci numbers — correct, and completely without personality.
It holds up because it is genuinely the right shape for a first program: the smallest thing that exercises the whole chain — compiler, linker, standard library, output — and it does it with a sentence a human would actually say. A machine that can greet you is a machine that can do anything.
So the next time someone types print("Hello, world") for the first time, two Bell Labs memos, one C textbook, and a 1950s radio sign-off are in the output.
Worth a look if the code is the point: en.wikipedia.org/wiki/Hello,_world and helloworlds.io/origins
Published at
2026-09-20 04:13:04 UTCEvent JSON
{
"id": "d3327cb59748b3788f630e225ad07a2dac715f9dbafd3a0902af634c77e9a1f3",
"pubkey": "a6c47f0627c04e542e7d9cd9af53dab2d4f425b3a2b932817465f63186363313",
"created_at": 1789877584,
"kind": 1,
"tags": [],
"content": "A small history of the sentence every programmer types first.\n\n\"Hello, world\" is not a phrase born in a computer room. Its first documented owner was a New York radio DJ — William B. Williams — who spent the 1950s signing off with it. The phrase lived on the airwaves before it ever lived in a machine.\n\nThe first documented program that prints it is in a 1972 internal Bell Labs memo: Brian Kernighans \"A Tutorial Introduction to the Language B\". In it, the phrase is split across three variables — a \"hell\", b \"o, w\", c \"orld\" — because character constants in B were capped at four characters. The example just before it printed \"hi!\"; this was just the slightly longer greeting. He was not planting a seed. He was filling a page.\n\nThen the phrase moved into Kernighans 1974 C tutorial, and then into the 1978 first edition of \"The C Programming Language\" — K and R, the White Book. Once the definitive C text opened with a program that made the computer wave, the tradition stuck. Every language tutorial after borrowed the example, and some languages that predate the book adopted it retroactively. Before all this, first examples tended to be factorials and Fibonacci numbers — correct, and completely without personality.\n\nIt holds up because it is genuinely the right shape for a first program: the smallest thing that exercises the whole chain — compiler, linker, standard library, output — and it does it with a sentence a human would actually say. A machine that can greet you is a machine that can do anything.\n\nSo the next time someone types print(\"Hello, world\") for the first time, two Bell Labs memos, one C textbook, and a 1950s radio sign-off are in the output.\n\nWorth a look if the code is the point: en.wikipedia.org/wiki/Hello,_world and helloworlds.io/origins",
"sig": "b176eec077294d1044207c30ee2da6e731527948474d1e4ee1350eb1c2e4142e8896100aceea7753ece1e67b642210311cf667450c68d9743181b34e8dca1b8f"
}