Whirl

Whirl is an esoteric programming language invented by Sean Heber (2004), with only two instructions, 0 and 1. These instructions rotate the Operations Ring and the Maths Ring, each of which has 12 sectors. The language therefore has 24 actual commands. The task of remembering the current orientation of each ring is left to the programmer.

An example program that reads two integers from standard input, adds them together, and prints the result:

0110010000110001100010011001100011110000011100

Whirl is an example of a turning tarpit.

External resources

 * Blog post about a Whirl compiler written using LLVM
 * Blog post about a Whirl compiler written using LLVM