esolang

ඞ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

Expected: ඞ

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.
Expected: 僧伽罗语(සිංහල),是斯里兰卡的官方语言之一。 是占斯里兰卡大多数人口的僧伽罗人的语言;使用人口大约一千九百万。 从1956年开始,僧伽罗语及泰米尔语同时都是《斯里兰卡宪法》上承认的官方语言。 僧伽罗语是属于印欧语系的印度-伊朗语族的印度-雅利安语支的一种语言。 马尔代夫官方语言之一的迪维希语是与之相近的语言。 僧伽罗语书写采用源自古印度北部婆罗米文而形成的僧伽罗文。 在僧伽罗语中,有一些字母很像《在我们之间》里面的角色,比如说 D(ඩ) 或者是 Ng(ඞ) 。

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 ඞ.

Further

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-quine

Source

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