esolang

Do nothing

Every text is a program, and every program does nothing.

EvyLah, 2024 · Turing complete: no · ●○○ easy · esolangs.org

Tested with 3 known programs · Test method

Run it

The idea

EvyLah made Do nothing in 2024. Its interpreter takes in the code and does absolutely nothing with it. It prints nothing, writes no file and cannot take input. The specification says this solves the halting problem, since every program halts at once, and that is why the language is not Turing complete.

Read the story

The empty program is both the Do nothing and its quine. It is 0 bytes long and prints 0 bytes.

The machine

There are no commands and no state. The specification gives interpreters in Python, Simpl, ><>, brainfuck, -Output, 14, 41 and 2-SSI. The brainfuck one is ,[,], which reads the code up to a 0 byte and stops. A self-interpreter cannot exist, the specification notes, since Do nothing cannot read the code it would interpret.

Example

The empty program, and the brainfuck interpreter given to Do nothing as code.

The empty program, and the brainfuck interpreter given to Do nothing as code. Both print nothing.

Patterns it teaches

Further

No-code esolang

Write your own in Run Convert a program from Do nothing

Implementation

JavaScript interpreter, source and command line

A JavaScript interpreter, used in the browser and on the command line. Id: do-nothing.

Command line

shib run do-nothing -e ',[,]'
shib manual do-nothing

Source

Module
langs/wiki/ports.js
Interpreter
langs/wiki/do-nothing.js

Docs: Kernel instructions · The .shib format · Command line · Adding a language

Source esolangs.org (CC0) · Edit on esolangs.org