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
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
| Code | Does |
|---|---|
tt x tt | Print x as a character |
we x we y we | Set place x of the list to y |
qe x qe | The number at place x |
et | Read one character of input as its code |
x ry op ry y | Math, with ee ey ye yy for + - * / |
x yr op yr y | Compare, with ee ey ye yy for = > < !=, giving 1 or 0 |
rr x rr ... rr | Repeat 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.
The truth machine. On 1 it prints 1 for ever, as place 0 keeps the 49 it read.
Patterns it teaches
- Encoding tricks: numbers are binary, spelled with two letters.
Further
See also
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 qoiblSource
- 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