Arts >> Theater >> Monologues

"Hello, World!": The Universal First Program Across 8 Languages

Every programmer's rite of passage: the minimal program that proves your environment works. The tradition began with Brian Kernighan's 1972 B tutorial. Here's how eight languages say hello.

The Code

Python:       print("Hello, world!")
JavaScript:   console.log("Hello, world!")
C:            printf("Hello, world!\n");
Java:         System.out.println("Hello, world!");
C++:          std::cout << "Hello, world!";
Go:           fmt.Println("Hello, world!")
Rust:         println!("Hello, world!");
HTML:         <h1>Hello, world!</h1>

Why This Matters

Beyond Text

Modern variants: Hello, GPU! (CUDA), Hello, Quantum! (Q#), Hello, Browser! (WASM). The message changes; the ritual stays.

Monologues

Related Categories