esolang

Suscript

A tape of bits, run by phrases from Among Us.

2021 · Turing complete: yes · ●○○ easy · esolangs.org

Tested with 2 known programs · Test method

Run it

Expected: Hello, world!

The idea

Suscript was made in 2021 by people in the amogus esolang crew. Underneath it is a tape of bits with a pointer, a goto and one kind of if. On top every instruction is a whole phrase. Setting a bit is imposter sus, moving right is amogus goes to the next sus town, and printing is eject. The specification says it is Turing complete, as any program converts to brainfuck on bits.

The machine

LineDoes
eject "text"Print the text
imposter sus imposter safeSet the cell to 1 or 0
amogus goes to the next sus townMove right
amogus goes to the previous sus townMove left
when the impostor is sus 😳Run the lines up to among drip only if the cell is 1
become the nameMark this line
say nameJump to the mark
is impostor sus?Read a line; sus sets the cell to 1, not sus to 0

The specification spells impostor both ways, and its examples end the when line with a colon, so both are allowed. The specification does not say whether eject ends its line. This implementation ends it too, as a plain PRINT does in QB64, the language of its compiler.

Example

The second is a truth machine.
Expected: 0

The second is a truth machine. Told sus, it enters the when and jumps back to loopus forever, printing 1 each time. Told not sus, it skips to among drip and prints 0.

Patterns it teaches

Further

Cell-based

Write your own in Run Convert a program from Suscript

Implementation

JavaScript interpreter, source and command line

A JavaScript interpreter, used in the browser and on the command line. Id: suscript.

Command line

shib run suscript -e 'eject "Hello, world!"'
shib manual suscript

Source

Module
langs/wiki/ports.js
Interpreter
langs/wiki/suscript.js

Docs: Kernel instructions · The .shib format · Command line · Adding a language

Source esolangs.org (CC0) · Edit on esolangs.org