esolang

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

Expected: Hello, World!

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

LineDoes
LOOKATTHECARDINTHEUPPERRIGHTCORNERMove the pointer right
LOOKATTHECARDINTHEUPPERLEFTCORNERMove the pointer left
GOTOTHEDESCRIPTIONPrint the cell as a character
GOTOTHEDESCRIPTIONNPrint the cell as a number
COMMENTDOWNBELOWRead a character
COMMENTDOWNBELOWNRead a whole number
ADDTHISVIDEOTOYOURPLAYLIST nAdd n to the cell
REMOVETHISVIDEOFROMYOURPLAYLIST nTake n from the cell
ADDLIKEALOT nMultiply the cell by n
SUBTRACTLIKEALOT nDivide n by the cell, as thespecification words it
JUMPTOIFYOUGOT>0 nJump to line n if the cell is above 0
JUMPTOIFYOUGOT<=0 nJump to line n if the cell is 0 or below
JUMPTOIFYOUWANTTO nJump to line n
EDITORNOTE ...A comment
THX4WATCHINGEnd 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.

Expected: 0

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.

Expected: video

Patterns it teaches

Further

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 utoober

Source

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