esolang

Add a language

One file and one line, from an empty file to a language page and its checks.

Pick a group

Each group of interpreters is one row in langs/index.js. tools/convert/convert.js reads every group, so shib, the pages and the converter see a new interpreter at once.

groupfolderlanguagesuse it for
classiclangs/19the first classics; put a new language in another group
dialectslangs/dialects/22a close relative of a language that has an interpreter, written as its differences
gridlangs/grid/15a two-dimensional language whose pointer walks a grid
museumlangs/museum/26anything else, written from scratch; start here
stacklangs/stack/31a stack language in the Forth and Joy line
tiolangs/tio/265a language TIO runs, checked against TIO's own hello world
wikilangs/wiki/1231a language TIO does not run, built from its esolangs.org page and checked on the programs and outputs that page gives

A new spelling of brainfuck or Deadfish is a row in langs/data/languages.json, with no code. It joins Brainfuck in disguise or Deadfish in disguise.

Write it

langs/museum/_template.js is a complete working interpreter. Copy it, write run and fill in the other fields.

cp langs/museum/_template.js langs/museum/tally.js
// A new language in one file: copy this to langs/museum/<id>.js, write run(), fill in the port, and add `<id>: require('./<id>').port,`
// to PORTS in langs/museum/ports.js. This copy is Tally, made up for the docs: one counter, + adds one, - takes one, . prints, , reads.
const { Spent, word } = require('../common');

// source text, input bytes and a step budget in; output bytes out; out of steps, throw Spent
function run(source, input = [], maxSteps = 1e6) {
  const out = [];
  let counter = 0, next = 0, steps = 0;
  for (const c of source) {
    if (++steps > maxSteps) throw new Spent();
    if (c === '+') counter = (counter + 1) % 256;
    else if (c === '-') counter = (counter + 255) % 256;
    else if (c === '.') out.push(counter);
    else if (c === ',') counter = next < input.length ? input[next++] : 0;
  }
  return out;
}

const port = {
  name: 'Tally',
  page: 'Tally',
  bytes: 'bytes',
  takesInput: true,
  flags: ['counter'],
  manual: 'One counter from 0 to 255; + adds one, - takes one away, . prints it as a byte, , reads a byte into it (0 once the input is spent).',
  // a throw or a spent budget is null: the checks and the pages read that as "did not finish"
  run: (source, input, limit) => { try { return { out: run(source, input, limit), features: {} }; } catch { return null; } },
  random: rng => ({ source: word(rng, '+-.,', 1, 40), input: Array.from(Buffer.from(word(rng, 'ab', 0, 3))) }),
  // [program, input, what it must print]: every check runs each one
  classics: [['+'.repeat(65) + '.', '', 'A'], [',.,.', 'hi', 'hi']],
};

module.exports = { run, port };

Then add one line to PORTS in langs/museum/ports.js.

  tally: require('./tally').port,
Every field of port
fieldmeans
name, pageits name, and its page title on esolangs.org
byteshow output is read, as bytes, bits or decimal
takesInputwhether it reads input
manualwhat each symbol does, in one paragraph
run{ out, features }, or null when it did not finish
randoma random program and input, for the fuzz checks and the detector
classics[program, input, expected output], and the checks run every one
modesoptional { name: { what, run } }, chosen with --mode

Run it

node tools/cli/shib.js run tally -e ',.,.' --input hi      # hi
node tools/cli/shib.js manual tally

After the next build it is also in Run.

Its page

museum/langs/tally.md is its language page, like the one for Brainfuck. A shib run line in a bash block becomes a console that can be edited and run. Every field of a page below lists the front matter.

---
title: Tally
kind: lang
year: 2026
author: unknown
family: tarpit
level: 1
tc: no
patterns: [counter-machines]
example: verified
---

# Tally

> One counter and four symbols: count up, count down, print, read.

## Example

```bash
shib run tally -e ',.,.' --input hi   # hi
```
node museum/index.js && node museum/site.js       # museum/site/tally.html

Test it

node langs/museum/check.js        # the port contract, every classic, the page's consoles (slow: minutes)
node museum/ui/check.js
node tools/cli/shib.js check --only langs,museum

langs/museum/check.js ends with all passed: … museum ports, … commands mapped. A classic that prints something else fails by name.

Send it

  1. A branch with the interpreter, its entry and its page.
  2. shib check passes.
  3. A pull request that says where the language is from (its esolangs.org page) and how you checked it against the original.

Write the interpreter yourself or port one whose licence allows it, and say which in the file's first line. Checks then lists how it is tested, next to every other language.

Every field of a page

Every page is one Markdown file with a small frontmatter block. node index.js reads the frontmatter and writes INDEX.md (families, timeline, backlinks), so keep the fields exact.

Language pages in langs/<slug>.md

---
title: Brainfuck
kind: lang
year: 1993
author: Urban Müller
family: tarpit
level: 1
tc: yes
patterns: [turing-tarpit, turing-completeness, quine]
example: verified
---

# Brainfuck

> One-line hook, what makes it weird, in under 25 words.

## The idea
2–4 short paragraphs. Why it exists, what the trick is.

## The machine
What state there is and what each instruction does. A table when there are few instructions.

## Example
A small program and what it does. Walk through it if it is short enough.

## Patterns it teaches
Bullets linking to `../patterns/<slug>.md`, one line each on how this language shows the pattern.

## Try this
One or two small exercises, ordered easy → hard.

## Further
Links to the esolangs.org page, the original spec or paper, and a good implementation.

Fields

FieldValues
kindlang or pattern
yearFirst published, a number. Use ~1990 only when the exact year is unknown.
authorAs credited on esolangs.org. unknown is allowed.
familyOne primary family, from the list below
level1 gentle, 2 takes an afternoon, 3 very hard
tcTuring complete? yes, no, unknown, bounded (would be, with unbounded memory)
patternsSlugs from the pattern list below. Only ones the page discusses.
exampleverified (run through an interpreter), traced (checked by hand, step by step), illustrative (shows the flavour, not checked)

Families

familyMeaning
tarpitMinimal, as few instructions as possible and still universal
functionalCombinators, lambda calculus, stacks of functions, concatenative
rewritingThe program is rules that rewrite a string or number
spatialCode laid out in 2D (or more); the instruction pointer moves through space
hostileDesigned to be hard or unpleasant, like Malbolge and INTERCAL
camouflagePrograms disguised as plays, recipes, music or folders
strange-timeOdd notions of order, chance or decay, like Whenever and Entropy
golfBuilt to make programs short
reversibleEvery step can be undone
lifeSelf-replication, evolution, artificial life, cellular automata
jokeExists for the punchline
shibbolethShibboleth itself, the language that writes itself (its page has no "Why it matters" section)

Pattern pages in patterns/<slug>.md

---
title: Quine
kind: pattern
level: 2
langs: [underload, befunge, brainfuck]
---

# Quine
> One-line hook.

## The idea
## How it works        (the mechanism, with a tiny example)
## Seen in             (bullets linking to ../langs/<slug>.md)
## Try this
## Further

Rules for every page

  • Facts you are sure of. If unsure of a year or author, check esolangs.org; if still unsure, leave it out or say "reportedly".
  • Examples are checked. example: verified means the example was run. Write a runnable example as a shib run <lang> -e '...' line in a bash block; the page turns it into a console that runs it (node tools/cli/shib.js langs lists the languages; a new interpreter goes in langs/museum/).
  • No long quotes from esolangs.org or anywhere else. Write in your own words.
  • Short sentences, short paragraphs. A page is 60–150 lines.
  • Link related pages with relative links such as ../langs/befunge.md and ../patterns/quine.md. Only link slugs that are in the lists below.

Slugs

Languages

tarpit: brainfuck, p-prime-prime, smallfuck, boolfuck, ook, unary, lenguage, subleq, bitbitjump, fractran, bitwise-cyclic-tag, deadfish, hq9plus

functional: unlambda, iota, jot, lazy-k, binary-lambda-calculus, underload, joy, forth, false, brain-flak, emmental

rewriting: thue, slashes, retina, fractran (also tarpit; its page lives once, family rewriting)

spatial: befunge, fish, hexagony, labyrinth, piet, snusp, funciton, marbelous

reversible: janus, stack-cats

golf: golfscript, jelly

hostile / camouflage / strange-time / joke: intercal, malbolge, whitespace, shakespeare, chef, lolcode, rockstar, velato, folders, chicken, whenever, java2k, entropy, seed, mornington-crescent

life: redcode, tierra, avida, typogenetics, stringmol, nanopond, bff, game-of-life, rule-110, langtons-ant, langtons-loops, wireworld, push

shibboleth: shibboleth

Patterns

quine, turing-tarpit, turing-completeness, one-instruction, counter-machines, tag-systems, string-rewriting, combinators, lambda-encoding, fixed-points, concatenative, stack-machines, two-dimensional-control-flow, self-modifying-code, code-as-data, metacircular-interpreter, reversible-computing, cellular-automata, self-replication, artificial-life, open-ended-evolution, model-collapse, every-text-runs, encoding-tricks, hostile-design, camouflage, nondeterminism, code-golf, polyglot