UToober
Brainfuck said the way a video tutorial says it, one catchphrase per line.
CodyNinja1, 2021 · Turing complete: yes · ●○○ easy · esolangs.org
Tested with 3 known programs · Test method
Run it
The idea
CodyNinja1 made UToober in 2021 after the phrases of video tutorials. The specification calls the site UToob, so as not to use its real name. Moving the pointer is looking at the card in the upper corner, printing is going to the description, reading is a comment down below, and adding to a cell is adding this video to your playlist.
Read the story
Unlike brainfuck there are no loops. A jump goes to a line by its number, counted from 1. A program ends only when it says THX4WATCHING; past its last line it starts over, so the empty program loops for ever.
The machine
| Line | Does |
|---|---|
LOOKATTHECARDINTHEUPPERRIGHTCORNER | Move the pointer right |
LOOKATTHECARDINTHEUPPERLEFTCORNER | Move the pointer left |
GOTOTHEDESCRIPTION | Print the cell as a character |
GOTOTHEDESCRIPTIONN | Print the cell as a number |
COMMENTDOWNBELOW | Read a character |
COMMENTDOWNBELOWN | Read a whole number |
ADDTHISVIDEOTOYOURPLAYLIST n | Add n to the cell |
REMOVETHISVIDEOFROMYOURPLAYLIST n | Take n from the cell |
ADDLIKEALOT n | Multiply the cell by n |
SUBTRACTLIKEALOT n | Divide n by the cell, as thespecification words it |
JUMPTOIFYOUGOT>0 n | Jump to line n if the cell is above 0 |
JUMPTOIFYOUGOT<=0 n | Jump to line n if the cell is 0 or below |
JUMPTOIFYOUWANTTO n | Jump to line n |
EDITORNOTE ... | A comment |
THX4WATCHING | End the program |
Cells hold whole numbers of any size. A number prints with nothing after it, and the end of the input reads as 0.
Example
The shorter Hello, World! stays on one cell and adds or takes the gap to each next letter.
The shorter Hello, World! stays on one cell and adds or takes the gap to each next letter.
The truth machine. On 0 it prints 0 and ends at line 4. On 1 it jumps to line 6, which sends it back to line 5, and prints 1 for ever.
A cat reads a character, stops at the 0 that the end of the input gives, and otherwise prints it and jumps back to line 1.
Patterns it teaches
- Camouflage: every command is a phrase from a video.
- Turing tarpit: a tape, a few sums and a jump.
Further
- esolangs.org/wiki/UToober
- Brainfuck, the language it starts from
See also
UToober builds on Brainfuck.
Brainfuck derivatives
Write your own in Run Convert a program from UToober
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: utoober.
Command line
shib run utoober -e 'COMMENTDOWNBELOWN
JUMPTOIFYOUGOT>0 6
GOTOTHEDESCRIPTIONN
THX4WATCHING
GOTOTHEDESCRIPTIONN
JUMPTOIFYOUWANTTO 5
EDITORNOTE This is a truth-machine program created by CodyNinja1 in 17-06-2021' --input '0'shib manual utooberSource
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/utoober.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org