How Does Original Hello World in "B" Programming Language - Computerphile Work?

The "Hello World" program in the B programming language is like a simple instruction to say "Hi!" using a special kind of message board.

Imagine you're writing on a chalkboard with just two types of letters, maybe only A and B. You can’t use many words, but you can still make your point. That's what the B language feels like, simple but powerful.

How It Works

In the B programming language, everything is made up of small pieces called variables, which are like containers for numbers or messages. The "Hello World" program uses these variables to tell the computer to print out the words "Hello, World!" on the screen.

It's a bit like telling your friend: "Write this message on a note and pass it around." The computer follows those instructions step by step.

Why It Matters

Even though B is old and simple, it helped start a whole new way of talking to computers, like how we speak now. It was the first "Hello World" program that showed people how easy it could be to get a computer to say something back.

Take the quiz →

Examples

  1. A child learns to print 'Hello, World!' using the B programming language on a simple computer.
  2. A teacher shows students how to say 'Hello, World!' in the oldest version of a programming language.
  3. A beginner types the first line of code ever used for 'Hello, World!'.

Ask a question

See also

Discussion

Recent activity