We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

Liquiplex

From Esolang
Jump to navigation Jump to search

Liquiplex is a turning tarpit designed by User:CodePentuplets48 which uses 3 wheels rather than just 1. Each wheel has 24 cells inside, and one is for data, the second is for control flow management, and the third stores extra code to be looped over (storage). The commands are:

Commands
Instruction Meaning
\ Switches the direction of the data wheel.
[ Decrement the current cell on the data wheel.
] Increment the current cell on the data wheel.
^ Turns the data wheel 1 space in the current direction.
( Increment the current cell on the control wheel.
) Decrement the current cell on the control wheel.
* Turns the control wheel 1 space in the current direction.
/ Switches the direction of the control wheel.
; Shift the command list over by 1 to the right with loop-over.
: Store the first command in the command list into the current cell on the storage wheel as an ASCII value.
i Ask for input.
o Output the current cell in the data wheel as ASCII.
$ Execute the code in the storage wheel, until a 0 is discovered.

The control wheel deals with loops.

Visualize it like a line, but with loop-over, as in:

0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0

Now, for instance, if the control wheel looks like this:

0, 0, 0, 5, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0

it will loop through the code on the storage wheel between the two 5's 5 times unless the current data wheel cell is 0 at the end of one of those loops, at which point it will ignore the loop-marking 5 there and continue on the third wheel.

The command list is as follows:

\[]^()*/;:io$

Also, to make an infinite loop, you use the number 37 as the loop marker, because it's 37.

Computational class

Well it isn't Turing complete, but it is definitely Plushie-complete and could be Crystal-complete, so that's cool.