Interpreters and Boolean generators for 83 esoteric languages: 80 text and 3 raster.
generate builds a truth-table program; run executes it on one input row.
The task is uniform across languages: compute a Boolean function from its
truth table, then verify the answer by running the generated program.
generate turns a table into a program; encode_inputs builds the stdin one
input row needs; run executes it; read_answer returns the 0/1 bit.
describe reports how a language takes its input and where its answer lands.
Languages that embed their inputs in the source return a template to fill with
instantiate instead.
A table lists outputs for inputs 00, 01, 10, 11 in order, so 0110 is XOR:
pip install esolangs
esolangs generate brainfuck 0110 > xor.bf
for i in 00 01 10 11; do printf $i | esolangs run brainfuck xor.bf; echo " <- $i"; done
# 0 <- 00
# 1 <- 01
# 1 <- 10
# 0 <- 11Start with the CLI or Python API. The usage guide covers inputs, templates, answers, and debugging. Limitations records contracts; the roadmap tracks open work.
python -m pip install esolangs
esolangs --help
esolangs list
esolangs generate Suffolk 0110 > program.txt
printf '01' | esolangs run Suffolk program.txt
esolangs generate brainfuck 0110 > bf.txt
printf '01' | esolangs debug --steps 20 --watch-cell 0 brainfuck bf.txtThe Polynomial interpreter needs the optional mathematics extra:
pip install 'esolangs[math]'. PNG loading and saving need
pip install 'esolangs[image]'; in-memory raster programs need neither extra.
import esolangs
program = esolangs.generate("brainfuck", "0110")
stdin = esolangs.encode_inputs("brainfuck", [0, 1])
output = esolangs.run("brainfuck", program, stdin=stdin)
assert esolangs.read_answer("brainfuck", output) == "1"Use isolated=True for a bounded run on Windows or worker threads.
Use the intended language: Suffolk source may run as brainfuck with a wrong
answer. Use
encode_inputs
to build stdin.
esolangs generate Sophie 0110 emits 20 characters computing XOR:
;@0{;}{;@0{#1}{#0}},
Feeding it the two adjacent input characters prints their XOR.
Ready-to-run programs for each of the 79
languages with a boolean generator live in
examples/.
Familiar languages include brainfuck, Befunge, Piet, INTERCAL, and Malbolge.
Show all 83 languages
Languages that move a pointer or beam across a 2D grid.
- A Painter Ant (code)
- Alight (code)
- ArrowQueue (code)
- B-tapemark (code)
- Befunge (code)
- Circuit Diagram (code)
- Clockwise (code)
- Dig (code)
- EGL (code)
- Fish (code)
- Flowchart (code)
- LaserFuck (code)
- Streetcode (code)
- Super SNUSP (code)
- thisthat (code)
Languages that use a stack for data manipulation.
- 3x (code)
- BF-PDA (code)
- BFStack (code)
- Eval (code)
- FALSE (code)
- Forþ (code)
- Grapheme (code)
- Modulous (code)
- Piet (code)
- Piet++ (code)
- SStack (code)
- Smu (code)
- Underload (code)
- Unsquare (code)
Languages whose primary data structure is a queue or deque.
- Bitdeque (code)
- Bitwise Cyclic Tag (code)
- Cyclic tag (code)
- Taglate (code)
Languages that operate on a tape (similar to Turing machines).
- 123 (code)
- 6-5 (code)
- Back (code)
- Boolfuck (code)
- BrainIf (code)
- Circlefuck (code)
- Dimensional (code)
- Factor (code)
- Home Row (code)
- Jaune (code)
- Line (code)
- Minifuck (code)
- NoComment (code)
- Painfuck (code)
- ROTfuck (code)
- S*bleq (code)
- SLOW ACV MAMMALIAN (code)
- Smallfuck (code)
- Subleq (code)
- Suffolk (code)
- Unary (code) (interpreter-only)
- bit~ (code)
- brainfuck (code)
Languages that use registers to store and manipulate data.
- AddSubJump (code)
- BIO (code)
- Collatz Multiverse (code)
- Deadfish (code) (interpreter-only)
- Decleq (code)
- HQ9+ (code) (interpreter-only)
- Minsky Swap (code)
- Polynomial (code)
- Qoibl (code)
- RAM0 (code)
- Sophie (code)
Languages that don't fit into the above categories.
The truth table is a binary string of length 2**n, most-significant input
first; its length implies n, so it isn't passed separately. 79 of the
languages have such a generator, some covering only a documented subset of
tables.
esolangs list --details marks generators (gen), templates (tmpl),
and committed examples (ex). See the
usage guide
for input conventions and benchmarking.
See contributing for setup, verification and the execution path. The project is GPL v3; see LICENSE.