Sorted!
This page describes Sorted!, the winner of the esoteric language contest for the year 2000 !
Design Criteria
I keep hearing these voices telling me that my cd tray wants to marry me, and this was part of my incentive for designing this language. Other than that, I firmly believe in the following design criteria:
- You should be able to sing a good programming language. Try singing PHP, and you'll know what I mean. Sorted! in stark contrast lends itself ideally to singing. You are encouraged to do your own recordings of Sorted! programs and post them at MP3.COM.
- The excessive use of cardinals is sinfull. Thou shalt not have the same cardinal more than once, because cardinals are roman-catholic ministers and, as such, holy. (I leave it to the reader to determine the meaning of "to have a cardinal"). For the more mathematically inclined, here is a list of the living cardinals arranged by date of birth. You won't find this kind of information at the Math Forum Internet Mathematics Library.
- Each program should contain exactly fourteen statements.
Since I found that most modern programming languages (Java, C# and the VAX assembler (which is here mainly because it can be sung)) do not fullfill all of these to equal extent, I decided that it was time to write a programming language from scratch. Here are its main
Features
- Each Sorted! program contains exactly the same number of statements, namely fourteen(14). No more, no less. At one point in the development cycle I thought about using sixteen statements instead, but I remembered my design criteria and did not bloat the language unnecessarily.
- Because of this, error checking in Sorted! is very simple: just count the number of statements; if there are more or less than 14 statements, the program definitely won't work; if it has 14 statements, it will have a very high chance of working (compared to non-14-liners).
- Sorted! is bilingual. It can understand both english and german code. To my knowledge, Sorted! is the only programming language that can do this, in the world.
- Each Sorted! program is, in fact, sorted, albeit randomly. Hence the name!
- Each Sorted! program can be sung.
- Sorted! now uses OPP for enhanced programming power.
- Each Sorted! is faithful to the roman catholic church, by using cardinals only once, and by not including any satanistic references like Java does.
Examples
Currently, the following sample programs are available for your entertainment:
- HELLO.S is an english-language version of Hello, World.
- HALLO.S is a german-language version of Hallo, Welt.
- ITOA.S converts an integer to a string and prints it.
- FIBO.S calculates a fibonacci number and prints it.
Download
You can download the distribution for Win32 here. You can download the distribution for Linux here.
NEW: You can download the distribution for the AMIGA here. (Tested with WinUAE only, comments welcome).
When you do so, you get a program that can interpret Sorted! code and optionally create a C-Source from it. You may send the generated C-Source output to your printer and pin it (the output) on the wall; free of charge, too. (GPL doesn't cover this bit).