esolang

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

●○○

149 languages

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 languages

Cellular automata

A grid of cells, one tiny rule, applied everywhere at once. No program, and yet things move, copy themselves and compute.

2 languages

Clearing a cell

Set a value back to 0. In brainfuck the idiom is [-], which takes one away until nothing is left.

75 languages

Code golf

Solve the problem in as few bytes as possible. Like golf, the lowest score wins.

24 languages

Concatenative

Write two programs next to each other and you have composed them. No variables, no arguments, only a row of words.

1 language

Deadfish’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 languages

Encoding 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 languages

Every text runs

A language with no syntax errors. Whatever you type, or whatever a mutation produces, is a program that runs.

1 language

If 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.

0 languages

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 language

Multiplication loops

Make a big number from small ones. A loop that runs a times and adds b each time leaves a times b.

0 languages

Printing 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 languages

Reading 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 languages

Stack machines

One pile of numbers. Push on top, pop off the top. Half of all esolangs keep their memory this way.

67 languages

String rewriting

No variables, no loops. Only "find this, replace it with that", until nothing matches.

354 languages

Turing tarpit

A language that can compute anything, and makes everything painful. Universal, but stuck in the tar.

152 languages

Two-dimensional control flow

The program is a picture, and the instruction pointer walks across it. Arrows are your goto.

moderate

●●○

14 languages

Artificial life

Instead of simulating a living thing, build a world where things copy themselves, make mistakes and compete. Then watch.

114 languages

Code 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 languages

Counter machines

A few bags of pebbles. Add one, take one away, check if a bag is empty. That is enough to compute anything.

88 languages

Hostile design

Languages built to be unpleasant on purpose. The joke is serious. They show which comforts programmers take for granted.

2 languages

Model 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 languages

Nondeterminism

When the program does not fully decide what happens next. Sometimes a coin decides, sometimes the interpreter, sometimes nobody knows.

29 languages

One instruction

A computer with a single instruction. Since there is nothing to choose, the opcode disappears and a program is only numbers.

9 languages

Polyglot

One file, several languages. Each interpreter reads the same characters and sees a different program.

134 languages

Quine

A program whose only output is its own source code, written without peeking at the file.

6 languages

Reversible computing

Every step can be run backwards. Nothing is ever forgotten, so nothing is ever lost.

150 languages

Self-modifying code

A program that rewrites its own instructions while it runs. Forbidden in polite software, the whole point in many esolangs.

11 languages

Self-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 languages

Tag systems

Read a letter at the front, throw a few away, glue a word on the back. Repeat. That is a computer.

250 languages

Turing completeness

"It can compute anything", as long as you never run out of paper. What the claim means.

hard

●●●