Here is something that was a very pleasant surprise when I saw it. There actually exists a programming language, the Shakespeare Programming Language, written by Karl Hasselström and Jon Åslund, which is unlike anything I have seen before.

Instead of conventional programming logic, the source code for the Shakespeare Programming Language looks more like a Shakespearean play than any code you have seen before.

Firstly, “actors” in the play take the role of conventional variables, and must be listed at the beginning.

The program is split up into acts and scenes, and these “actors” can then enter and exit the scene, much as they would in a play.

The dialog spoken by each character in the scene determines the actual programming logic.

To fully give you an understanding of how this all works, here is the source code from the the Shakespeare Programming Language site for their Hello World program.
continue reading…