Opentopia Directory Encyclopedia Tools

Whirl

Encyclopedia : W : WH : WHI : Whirl


For the flywheel of a spindle, see whorl.
Virtual Whirl machine.
Enlarge
Virtual Whirl machine.

Whirl is an esoteric programming language created by Sean Heber (2004). Whirl has only two instructions: 0 and 1. These instructions rotate the Operations Ring and Maths Ring which both have 12 sectors. Thus the language actually has 24 commands. Remembering the current positions of the rings is left as an exercise for the programmer.

Sample code

As an example of Whirl's syntax, here is a small program which reads two integers from standard input, adds them together, and prints the result:

011000001111000011111000001111000011111000001111000
011111000001100100000110011111000111000111100011001
11000000000111110001000111110011001111100010001100

External links

 


From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.

Search Titles
0123456789
ABCDEFGHIJ
KLMNOPQRST
UVWXYZ?

E-mail this article to:

Personal Message: