esolang

Qoibl

Eight instructions typed on the top row of the keyboard, seven of them two letters long.

Toxinite, 2021 · Turing complete: unknown · ●●○ moderate · esolangs.org

Tested with 6 known programs · Test method

Run it

Expected: HI!

The idea

Toxinite made Qoibl on 10 June 2021. The name stands for Qwerty oriented impractical bicharacter language. Every command is a pair of the letters q, w, e, r, t and y, and numbers are written in binary with e for 0 and y for 1, so 65 is yeeeeey. The memory is one list of 256 numbers, all 0 at the start.

The machine

CodeDoes
tt x ttPrint x as a character
we x we y weSet place x of the list to y
qe x qeThe number at place x
etRead one character of input as its code
x ry op ry yMath, with ee ey ye yy for + - * /
x yr op yr yCompare, with ee ey ye yy for = > < !=, giving 1 or 0
rr x rr ... rrRepeat the middle while x is not 0

Any other character only separates the pairs. The specification does not say what et does once the input runs out; the run ends, and that is how the cat stops.

Example

72, 73 and 33 in binary.

72, 73 and 33 in binary.

The one digit adder keeps 48, the code of 0, at place 0. It turns both digits into numbers, adds them and turns the sum back into a digit, so it works up to 4 and 5.

Expected: 9

The truth machine. On 1 it prints 1 for ever, as place 0 keeps the 49 it read.

Expected: 0

Patterns it teaches

Further

Also in Hostile

Write your own in Run Convert a program from Qoibl

Implementation

JavaScript interpreter, source and command line

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

Command line

shib run qoibl -e 'tt yeeeeey tt'
shib manual qoibl

Source

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

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

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