esolang

Trans-dimensional

You can make a dimension, but you can never destroy it.

Turing complete: no · ●○○ easy · esolangs.org

Tested with 2 known programs · Test method

Run it

Expected: Hello, World!

The idea

Trans-dimensional is a joke language about dimensions. A program makes dimensions, throws values into their cells and takes them out again. It has four commands, no input, no arithmetic and no jumps, so every program runs from top to bottom once.

The machine

CommandDoes
dimension X;Make the dimension X
put [X:1] -> v;Put the value v into cell 1 of X
get [X:1]The value in cell 1 of X
output v;Print the value v

A value is a string in double quotes, a number or a get. A put into a dimension that does not exist does nothing. A get of a cell that holds nothing makes the command around it do nothing as well.

Example

The second is a cell query.
Expected: -0.5

The second is a cell query. It copies -0.5 from cell 1 of X to cell 2 of Y. An empty cell prints nothing, so only the word after it shows.

Expected: done

Further

Also in Jokes

Write your own in Run Convert a program from Trans-dimensional

Implementation

JavaScript interpreter, source and command line

A JavaScript interpreter, used in the browser and on the command line. Id: trans-dimensional.

Command line

shib run trans-dimensional -e 'dimension X;
put [X:1] -> "Hello, World!";
output get [X:1];'
shib manual trans-dimensional

Source

Module
langs/wiki/ports.js
Interpreter
langs/wiki/trans-dimensional.js

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

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