Learn · 36 ideas
Ideas
Ideas that turn up again and again across the languages. The colours under a card are the groups that show it.
easy
●○○
Camouflage
Programs that look like something else, such as a play, a recipe, a power ballad, a painting, a folder tree. The code hides in plain sight.
12 languagesCellular automata
A grid of cells, one tiny rule, applied everywhere at once. No program, and yet things move, copy themselves and compute.
2 languagesClearing a cell
Set a value back to 0. In brainfuck the idiom is [-], which takes one away until nothing is left.
Code golf
Solve the problem in as few bytes as possible. Like golf, the lowest score wins.
24 languagesConcatenative
Write two programs next to each other and you have composed them. No variables, no arguments, only a row of words.
1 languageDeadfish’s 256 reset
Deadfish sets its number to 0 at exactly 256 or −1. brainfuck wraps every value modulo 256. The two look alike and are not.
273 languagesEncoding tricks
The same program, written down a different way. Change the encoding and you change who can read it, how long it is, and what a typo does.
79 languagesEvery text runs
A language with no syntax errors. Whatever you type, or whatever a mutation produces, is a program that runs.
1 languageIf and else made from loops
brainfuck has no if. A loop that runs at most once is an if; a flag cell that the if clears gives an else.
Moving and copying a value
brainfuck can only move a value by counting it across, one unit at a time. Copying needs a third cell.
1 languageMultiplication loops
Make a big number from small ones. A loop that runs a times and adds b each time leaves a times b.
0 languagesPrinting a number in decimal
A machine holds 42 as one value, but the screen wants the two characters 4 and 2. Splitting a number into digits is a small loop of division and remainder.
0 languagesReading until the end of input
A loop that reads and prints until there is nothing left. Every language needs a way to notice the end, and they disagree on what it is.
392 languagesStack machines
One pile of numbers. Push on top, pop off the top. Half of all esolangs keep their memory this way.
67 languagesString rewriting
No variables, no loops. Only "find this, replace it with that", until nothing matches.
354 languagesTuring tarpit
A language that can compute anything, and makes everything painful. Universal, but stuck in the tar.
152 languagesTwo-dimensional control flow
The program is a picture, and the instruction pointer walks across it. Arrows are your goto.
moderate
●●○
Artificial life
Instead of simulating a living thing, build a world where things copy themselves, make mistakes and compete. Then watch.
114 languagesCode as data
When a program can pick up a piece of code, pass it around, glue it to another piece and only then run it.
136 languagesCounter machines
A few bags of pebbles. Add one, take one away, check if a bag is empty. That is enough to compute anything.
88 languagesHostile design
Languages built to be unpleasant on purpose. The joke is serious. They show which comforts programmers take for granted.
2 languagesModel collapse
Train a model on its own output, then train the next one on that, and so on. The rare things vanish first, then everything else.
52 languagesNondeterminism
When the program does not fully decide what happens next. Sometimes a coin decides, sometimes the interpreter, sometimes nobody knows.
29 languagesOne instruction
A computer with a single instruction. Since there is nothing to choose, the opcode disappears and a program is only numbers.
9 languagesPolyglot
One file, several languages. Each interpreter reads the same characters and sees a different program.
134 languagesQuine
A program whose only output is its own source code, written without peeking at the file.
6 languagesReversible computing
Every step can be run backwards. Nothing is ever forgotten, so nothing is ever lost.
150 languagesSelf-modifying code
A program that rewrites its own instructions while it runs. Forbidden in polite software, the whole point in many esolangs.
11 languagesSelf-replication
A machine that builds a working copy of itself, and the copy can do it again. Not the same as printing your own source.
32 languagesTag systems
Read a letter at the front, throw a few away, glue a word on the back. Repeat. That is a computer.
250 languagesTuring completeness
"It can compute anything", as long as you never run out of paper. What the claim means.
hard
●●●
Combinators
Functions with no variables, glued together by application. Two of them, S and K, can compute anything.
9 languagesFixed points
Something that a transformation leaves unchanged. Behind every quine, every recursive function without names, and every evolving program that stops changing.
29 languagesLambda encoding
When functions are the only thing you have, numbers, booleans and lists have to be functions too.
13 languagesMetacircular interpreter
An interpreter for a language, written in that same language. The snake that reads its own rulebook.
6 languagesOpen-ended evolution
Life on Earth has kept inventing for four billion years. Every artificial world so far runs out of ideas.