esolang

How "What is my esolang?" works

Given a few programs with their input and output, the detector names the known esolang behind them under its other spelling and recovers that spelling. Below are the method and its results on languages it never saw.

Try it in the Studio

Three questions, in order

  1. Is it a known interpreter? Each reference interpreter (Befunge, HQ9+, Bitwise Cyclic Tag and others) runs every example. If one prints exactly the given outputs, that is the answer.
  2. Is it brainfuck or Deadfish with other words? Most of the 118 test languages are. The detector cuts the programs into tokens and searches for a token for each command, so that running the programs as brainfuck (or Deadfish) prints the given outputs byte for byte. It first tries tokens of one character, then up to 3, then up to 12, each with a small search budget, and only then the full budget, so a wrong early guess cannot use up the whole search.
  3. Neither? Then it learns a small Shibboleth dictionary that explains as much of the output as it can, and says which tokens and examples it could not explain.

A found spelling is written as a Shibboleth language (a .shib dictionary) and run on the kernel, so the answer is checked, not guessed. The Studio opens it ready to run.

Some answers cannot be told apart from few examples. If no program moves left before it moves right, > and < can be swapped. The detector says so, and says when more than one mapping fits.

Languages it never saw

30 of the 118 test languages are held out and never used to build or tune anything. With 8 examples each, the detector names the right family for 0 of 0 and the exact spelling for 0 of 0.

No held-out results. Run node tools/detect/evaluate.js.

Made by node tools/detect/evaluate.js (results in tools/detect/runs/heldout.txt). The examples come from each language's own interpreter.