ඞlang without Quine
Write ඞ and it tells you about Sinhala. Write anything else and it answers ඞ.
PSTF, 2024 · Turing complete: no · ●○○ easy · esolangs.org
Tested with 3 known programs · Test method
Run it
The idea
PSTF designed ඞlang without Quine in 2024 as a quine-avoiding constant language. A quine prints its own source. In this language the one program that would do that prints something else. ඞ is the Sinhala letter Ng, and the program ඞ prints seven lines in Chinese about the Sinhala language. The last line says that some of its letters look like the characters of Among Us, D (ඩ) and Ng (ඞ).
The machine
There is none. The program ඞ prints the text, every other program prints ඞ, the empty one too. Each answer ends with a line feed. Input is never read.
Example
The second answer comes out as seven lines; the console shows it on one.
The second answer comes out as seven lines; the console shows it on one.
Patterns it teaches
- Quine: turned around, the one program that could print itself is kept from it.
- Every text runs: every text is a program, and all but one print
ඞ.
See also
No-code esolang
Zero-dimensional languages
Write your own in Run Convert a program from ඞlang without Quine
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: lang-without-quine.
Command line
shib run lang-without-quine -e 'ඞ'shib manual lang-without-quineSource
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/lang-without-quine.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org