Alivehyperfish

From Esolang
Jump to navigation Jump to search

This is a deadfish extension by User:ZCX islptng.


Commands

This esolang has an infinite dimension memory array (size 631^infinity), and a cell stores 0~630 (mod 631 arithmetic).

Command in Deadfish Description
i Increment current cell by 7 (Not 1).
d Decrement current cell by 3 (Not 1).
s Square current cell.
o Output current cell.
Command added Description
r Cubic root current cell. If it has no cubic root, remain.
q Input current cell in ASCII.
f Move 1 cell forward on the current 1D line.
b Move 1 cell back on the current 1D line.
e Enter a new dimension (i.e. Turn to Z axis if current 1D line is Y axis, Turn to Y axis if current 1D line is X axis, etc)
x Turn 1 dimension back (i.e. Turn to Y axis if current 1D line is Z axis, Turn to X axis if current 1D line is Y axis, etc)
z If current cell is not zero, skip the next command.
l If current cell is not greater than 315, skip the next command.
: Jump destination.
Jump back to the (<|:1st <=|:2nd <==|:3rd <===|:4th etc) nearest destination.
Jump forward to the (|>:1st |=>:2nd |==>:3rd |===>:4th etc) nearest destination.

Every other characters are ignored. You can use unconditional jump to write commands: |> comment here :

Only LF(10) is allowed. CR(13) are ignored.

Programs

Truth machine

qddddddddddddddddz|=>iiiiiiiiiddddd:o<|:iiiiiiiiidddddo

Hello World

dssdddodisdioioodissiiosirdosrsoirsioiiriiiiosirdrssoddoiirrisosdirioddrio

Quine

Alivehyperfish/quine

More examples

The shortest way to generate constants from 0 is at Alivehyperfish/Constants.

Turing completeness

This can be converted to brainfuck, so this esolang is Turing Complete.

Brainfuck This esolang
+ idd
- iiddddd
> f
< b
, q
. o
[ :z|a>
] <a|:

If a pair of [] has another pairs in it, make a in the table 2*(count of [] pair in it)*"="

Interpreter

Try it online!

Assembly-like compiler

Try it online!