SusLang
Eighteen crewmates, one byte of suspicion each. Call an emergency meeting to print it.
Zenonet, 2022 · Turing complete: no · ●○○ easy · esolangs.org
Tested with 3 known programs · Test method
Run it
The idea
Zenonet, a German hobby programmer, made SusLang in 2022, after the game Among Us, and wrote its interpreter in C#. The variables are the 18 player colours of the game. Each one holds a byte, its SusMeter, which says how suspicious that colour is. Accusing a colour raises it and an alibi lowers it.
Read the story
There are no loops, no jumps and no input, so every program stops. The specification says it is not Turing complete, because 18 bytes is all the memory there is.
The machine
| Statement | Does |
|---|---|
sus cyan | Select cyan |
cyan killed | Add 10 |
cyan vented | Add 1 |
cyan didVisual | Take 10 |
cyan wasWithMe | Take 1 |
emergencyMeeting | Print the selected colour's byte as a character |
he stands for the selected colour, and // starts a comment. Every colour starts at 0.
The specification's list says wasWithMe takes 10 and didVisual takes 1. Its own Hello World says the opposite. Its e comes from 72 plus three kills and one wasWithMe, which is 101 only if wasWithMe takes 1. This implementation follows the Hello World.
Example
Seven kills and two vents make 72, an H.
Seven kills and two vents make 72, an H. Three more kills and three vents make 105, an i.
Statements may share a line. An exclamation mark is three kills and three vents on a fresh colour.
The whole Hello World prints Hello World!. It moves cyan from letter to letter and uses red for the space and the !.
Further
See also
Pseudonatural
Write your own in Run Convert a program from SusLang
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: suslang.
Command line
shib run suslang -e '// Writing a space
sus red
red killed
red killed
red killed
red vented
red vented
emergencyMeeting'shib manual suslangSource
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/suslang.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org