esolang

TLIJMMWTRAMCBICHWTPITCSIBCTII

This Language Is Just Minsky Machine With Twenty Registers And More Commands, But I Choose Hard Way To Prove It Turing Complete So I Wrote Bitwise Cyclic Tag Interpreter In It.

ChuckEsoteric08, 2023 · Turing complete: yes · ●●○ moderate · esolangs.org

Tested with 3 known programs · Test method

Run it

Expected: 0

The idea

ChuckEsoteric08 made it in 2023, and the name says the rest. A Minsky machine with two counters is already Turing complete, so this one with twenty registers and a multiply needed no proof. The author wrote one anyway, a 63 line interpreter for bitwise cyclic tag that keeps its program and data as decimal numbers.

The machine

Twenty registers, numbered from 0, all starting at 0. One command per line, and the lines are numbered from 0 too.

CommandDoes
inc(x,y)Add y to register x
dec(x,y,z)If register x is bigger than y, take y from it, else jump to line z
mul(x,y)Multiply register x by y
div(x,y,z)If y divides register x, divide it, else jump to line z
inp(x)Read a whole number into register x
out(x)Print register x
copy(x,y)Copy register x into register y

The specification's own programs settle what it leaves unsaid. Its truth machine works only if dec tests strictly bigger and the lines count from 0, and its interpreter jumps to line 63 of 0 to 62 to stop. This implementation prints each number on its own line and ends the run when input runs out.

Example

The truth machine.

The truth machine. On 0, dec(0,0,4) cannot take 0 from 0, so it jumps to the last line, prints and ends. On 1 it prints 1 forever.

The cat jumps back with dec(1,0,0), since register 1 is never bigger than 0.

Expected: 3 14 159
Expected: 42

The bitwise cyclic tag interpreter takes the program and the data reversed, each with a 1 in front. On the program 1100 and the data 1 it prints the data as 11, 111, 11 and 1, which is 1, 11, 1 and empty, the same as cyclic tag itself. Run this way, it does not match cyclic tag on every program. On the program 100 and the data 1 it later turns the data 0 into 00, where cyclic tag leaves it alone because the first bit is 0.

Patterns it teaches

Further

Also in Turing tarpits

Write your own in Run Convert a program from TLIJMMWTRAMCBICHWTPITCSIBCTII

Implementation

JavaScript interpreter, source and command line

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

Command line

shib run tlijmmwtramcbichwtpitcsibctii -e 'inp(0)
out(0)
dec(1,0,0)' --input '3 14 159'
shib manual tlijmmwtramcbichwtpitcsibctii

Source

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

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

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