Loss, v. 1.11.11.1_
Three marks and three kinds of blank, and each one prints itself.
2023 · Turing complete: no · ●○○ easy · esolangs.org
Tested with 3 known programs · Test method
Run it
The idea
Loss is a joke language from 2023. Its specification says it is in its most stable version, 1.11.11.1_, and that it is no longer updated. It lists four commands, I, II, II again and I_, and each one prints itself. The example program puts those four in two rows, six spaces between I and II and five between II and I_, and its output is the same two rows, spaces included.
The machine
The specification gives an interpreter in Common Lisp, and this implementation follows it.
| Text | Prints |
|---|---|
I | I |
II | II |
I_ | I_ |
| space, tab, line feed | itself |
Any other character, a _ on its own included, stops the run with an error. So every program that runs to its end prints its own text. The Lisp looks at the character after every I, also after the last one, so a program that ends in a lone I prints it and then fails.
Example
Patterns it teaches
- Quine, since every program that runs prints its own text.
See also
Also in Jokes
Write your own in Run Convert a program from Loss, v. 1.11.11.1_
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: loss-v-1-11-11-1.
Command line
shib run loss-v-1-11-11-1 -e 'II'shib manual loss-v-1-11-11-1Source
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/loss-v-1-11-11-1.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org