A program can be a painting, a stage play, or a file that appears completely blank. These experimental languages turn familiar rules around so you can see what the rules usually do. Start with Piet to follow a program…

Items8The creator’s order
  1. 1PietPietdangermouse.netDavid Morgan-Mar made the picture the program. The interpreter walks through blocks of color, and the change in hue and lightness from one block to the next determines an instruction. The pictured sample prints a familiar greeting. Follow one edge to see why a painting can double as a program.0
  2. 2Befunge-93Befunge-93GitHubChris Pressey put instructions on a grid. Arrows send the instruction pointer right, left, up, or down, so a loop can literally go around a corner. Trace the arrows in a small program to see how a change of direction can do the work usually handled by an explicit jump.0
  3. 3WhitespaceWhitespacecolumbia.eduEdwin Brady and Chris Morris made spaces, tabs, and newlines carry the instructions. The interpreter ignores the visible characters. Turn on whitespace markers in an editor and the apparently blank file reveals its structure. It’s a neat reminder that what an editor displays and what an interpreter…0
  4. 4The Shakespeare Programming LanguageThe Shakespeare Programming Languagekrayon.github.ioKarl Hasselström and Jon Åslund gave variables names like Romeo and Juliet. The lines spoken onstage can set a character’s value, and each adjective before a noun doubles its value. Read a short scene twice, first as dialogue and then as arithmetic.0
  5. 5INTERCALINTERCAL3e8.orgDon Woods and James Lyon set out to make a language unlike the major languages of their day. The original manual includes statements that begin with PLEASE DO. The politeness is part of the syntax, which is a funny way to ask what a language’s keywords owe to the job they actually do.0
  6. 6Brainf*ckBrainf*ckGistUrban Müller’s Amiga distribution included a 240-byte compiler. Its eight commands move a pointer, change the current value, loop, or handle input and output. A row of plus signs can be simple for the interpreter and exhausting for a reader. The language makes that trade-off hard to miss.0
  7. 7MalbolgeMalbolgeesolangs.orgBen Olmstead designed this one to make programming difficult. A character’s meaning depends on where it sits, and execution changes instructions in memory. Pick out a repeated symbol in a sample and try to guess what it does. The same visible character need not mean the same operation twice.0
  8. 8LOLCODELOLCODElolcode.orgAdam Lindsay borrowed the voice of internet cat memes for a language that opens with HAI and closes with KTHXBYE. The sample on the language site prints a greeting with VISIBLE in between. The piece that looks like a joke is the vocabulary. Underneath it sits the familiar job of telling a program…0