Whirl
Jump to navigation
Jump to search
- This article is not detailed enough and needs to be expanded. Please help us by adding some more information.
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.
See also
External resources
- Whirl: Dizzy Programming (from the Wayback Machine; retrieved on 16 January 2013)
- Blog post about a Whirl compiler written using LLVM: Fun With LLVM & Whirl (from the Wayback Machine; retrieved on 4 December 2011)