PAPER
A piece of paper that says 4.
Fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff, 2024 · Turing complete: no · ●○○ easy · esolangs.org
Tested with 5 known programs · Test method
Run it
The idea
PAPER was written up on 2 December 2024 by a user whose name is F and 66 more f's. The whole language is a piece of paper with 4 on it. It has one state, called XKCD, and no syntax; the specification leaves that section empty.
Read the story
So every program prints 4. The specification lists six of them. Its XKCD random number is a paragraph of the FitnessGram Pacer test, its quine is the program 4, and its palindrome and self interpreter look like brainfuck. All six print the same thing.
The machine
| Program | Prints |
|---|---|
| anything at all | 4 |
There is no input and no line feed after the 4.
Example
The first is the quine.
The first is the quine. The second prints the tens digit of 42, the meaning of life. The third is what the specification calls an iterating self interpreter.
Patterns it teaches
- Quine: when every program prints 4, the program 4 is a quine.
Further
See also
Zero-dimensional languages
Write your own in Run Convert a program from PAPER
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: paper.
Command line
shib run paper -e '4'shib manual paperSource
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/paper.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org