input hello world or else:
Type Hello world, or else.
Ractangle, 2024 · Turing complete: no · ●○○ easy · esolangs.org
Tested with 3 known programs · Test method
Run it
The idea
Ractangle made this joke language in 2024 from a Python file on the desktop of his IT computer. That file printed Hello world, asked for hello world, and printed enter for ever if it did not get it. The language keeps the threat and drops the loop.
Read the story
There is one program. Hello world prints Hello world. Every other program prints grrrrrrrrr.
The machine
The specification gives interpreters of one line each in Python, Lua and ZecZec. The Python and Lua ones read a single line and compare it exactly, so only the first line of a program counts, and hello world in lower case is already a different program. Both print with a line feed at the end. The ZecZec one is looser and only asks that the line contains Hello world; this implementation follows the other two. There is no input.
Example
The Python interpreter is a program too.
The Python interpreter is a program too. It is not Hello world, so it growls.
See also
Also in Jokes
Write your own in Run Convert a program from input hello world or else:
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: input-hello-world-or-else.
Command line
shib run input-hello-world-or-else -e 'Hello world'shib manual input-hello-world-or-elseSource
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/input-hello-world-or-else.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org