On the Origin of “Hello, World!”

How one of programming’s oldest traditions began

What is Hello World?

History

Brian Kernighan at the Univ. of Maryland (1982)

1) A Tutorial Introduction to the Language B

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

2) Programming in C: A Tutorial

main( ) {
printf(“hello, world”);
}

3) The C Programming Language

#include <stdio.h>main()
{
printf(“hello, world\n”);
}
#include <stdio.h>main()
{
printf(“hello, “);
printf(“world”);
printf(“\n”);
}

Side note on BCPL

Examples

Java

public class HelloWorld {
public static void main(String[] args) {
System.out.println(“Hello, World!”)
}
}

Python

print(“Hello, World!”)

C++

#include <iostream>int main() {
std::cout << “Hello, World!”;
return 0;
}

Interested in Machine Learning, Math, Quantum Computing, Philosophy, etc. My projects/notes are on https://ozaner.github.io