The History of ‘Hello, World’

It’s the most famous program. Known as the first example in nearly every programming language for every programmer, where did this message come from?

As a function, the computer program simply tells the computer to display the words “Hello, World!” Traditionally, it’s the first program developers use to test systems. For programmers, seeing the two words on the screen means their code can compile, load, run and they can see the output.

It’s a test, signifying a start to a program. Over the past several decades, it’s grown to become a time-honored tradition.  All programmers that have come before you have, at some point, felt the same rush of adrenaline after realizing they successfully communicated through the computer. Here’s how the two most famous words in the history of programming first began:

Where does ‘Hello World’ come from?

“Hello, World” was created by Brian Kernighan (pictured above), author of one of the most widely read programming books: C Programming Language, in 1978. He first referenced ‘Hello World’ in the C Programming Language book’s predecessor: A Tutorial Introduction to the Programming Language B published in 1973.

main( ) {
extrn a, b, c;
putchar(a); putchar(b); putchar(c); putchar(’!*n’);
} 1 ’hell’;
b ’o, w’;
c ’orld’;

Unfortunately, the legend himself can’t definitely pinpoint when or why he chose the words “Hello, World.” When asked what sparked the idea for the name “Hello, World” in interview with Forbes India, he said his memory’s dim. “What I do remember is that I had seen a cartoon that showed an egg and a chick and the chick was saying, “Hello, World.”

It’s pretty fitting, considering “Hello, World” represents the birth of computer programming as a widespread phenomenon for the masses.

At the time, neither Kernighan nor his colleague Dennis Ritchie, the late author of the C language, could imagine just how monumental the language and the tutorial book would have on the field of programming today. These ideas were nothing but a research project inside Bell Labs, the research and development branch of AT&T.

Although no one can scientifically explain why “Hello, World,” grew to become wildly popular, “Hello, World” program marks a major change in the historical rhetoric of programming. Let’s look at its historical context.

Still in its Shell

It’s hard to imagine today, but before “Hello World” was published in Kernighan’s book, computers carried a negative connotation among the public before the 1970s. They were massive mainframes, incredibly slow, filled an entire room and needed a full staff of scientists or researchers for maintenance. In fact, before the late 70s, computer scientists programmed using stacks of punch cards!

Untitled Infographic (6)
People generally saw computers as untouchable, complex and ridiculously expensive devices reserved only for the elite in academia, defense or the government.  In fact, the industry titans who devoted their lives to the world of computing worked hard to overcome this stigma. It’s amazing to think how we’ve come so far as to some actually feel anxiety in being without our personal devices.

One of the first famous uses of computers in the US was back in 1890 when the Automatic Electrical Tabulating Machine calculated data for over 60 million Americans. In the 1940s, the Bombes and Colossus computers decrypted German codes during World War II.

The 1950s welcomed the first commercial computers, like the Zuse 3 and UNIVAC, for arithmetic operations, but you would need millions of dollars to actually buy one.

From an educational standpoint, most all of the programming language books about the earlier programming languages, like FORTRAN or BASIC, started off by proving a point: Computers are, in fact, useful. This is according to  Algorithmist and Researcher John Mount. Mount says the explosive popularity of “Hello, World” signifies an era when computer scientists no longer felt they needed to convince society that the utility of computers is tangible.

For instance, in the 1964 book My Computer Likes Me When I Speak Basic, the introduction talks about the purpose of programming languages in general. Plus, the first example outputs: “MY HUMAN UNDERSTANDS ME.” Using this example aims to reinforce the unpopular idea that humans can, in fact, talk to computers. The 1956 Dynamic Programming kicks off with examples that can be applied to ordinary calculus.

It wasn’t until The C Programming Language when “Hello World” really took off.

‘Hello World:’ Programming Has Arrived

One major catalyst that sparked the spread of ‘Hello World’ was the parallel introduction of the PDP-11, one of the first commercial success of microcomputers. Digital Equipment Corporation (DEC) sold over 600,000 units of the PDP-11 total at about $10,000 each, which was drastically lower than the millions of dollars computers typically cost. Plus, the PDP-11 16-bit series didn’t require punch cards. It was the first time you could use a programming language to directly talk to a computer.

But in order to boost public acceptance, DEC didn’t refer to it as a computer. It marketed it as “Programmed Data Processor” to disassociate the product from the mainframe computers of the past. As more people were purchasing a programmable computer, the demand for his book C Programming Language rose skyrocketed.

C and the operating system Unix first became popular on the PDP-11. So, it would follow then that the boom in commercial computers that supports the new C programming language, propelled thousands of people to read 200-page The C Programming Language. This re-introduced ‘Hello World.’

Almost every programmer who worked on desktop software in the 80s and 90s thereafter owned a copy or referenced the book. Million of copies have sold to date.

There were probably many different basic programs to start with, but ‘Hello World’ is, by far, the most famous today. Every programmer remembers their first ‘Hello World’ as a rite of passage. Many might not realize it, but each time a programmer feels the sweet feeling of triumph in clearing the first hurdle of programming with the words ‘Hello World,’ is experiencing a moment that transcends history.

22 Replies to “The History of ‘Hello, World’”

  1. Re: “As a function, the computer program simply tells the computer to display the words “Hello, World!” Traditionally, it’s the first programming language developers use to test systems.”
    What programming language Hello World is?

  2. Pingback: Hello world! –

Leave a Reply

Your email address will not be published. Required fields are marked *