esolang

Stackowey

A wrapping grid, one stack, and mirrors that only reflect when a comparison says so.

Lampe2020, 2025 · Turing complete: unknown · ●●○ moderate · esolangs.org

Tested with 3 known programs · Test method

Run it

Expected: Hello world!

The idea

Lampe2020 made Stackowey in 2025 as the working successor of their language arrowey. Like Befunge it is a grid of one-character commands that wraps at every edge, walked by a pointer. Unlike Befunge there are no arrows. The pointer only turns at / and \, and those pop two numbers and reflect it only when the first is greater, or lower, than the second.

Read the story

The only arithmetic is +, xor and inverting all bits. Subtraction is _1++: invert b, add 1, add a, which works because every number is unsigned and wraps. The digits stop at 7. 8 pushes the pointer's own position and 9 halts, so jumping back to a known place is done by asking where you are.

The machine

The stack starts with one 34 on it.

CharDoes
0-7Push the digit
+ ^ _Add; xor; invert every bit
@ # =Copy the item n down to the top; swap it with the top; push the height
/ \Pop a and b; reflect as a mirror if a > b, or a < b
% 8Jump to a row and column; push the row and column
? !Read a line as code points and a 0; print a character
9Halt

Example

The Hello World builds each letter from the one before.

The Hello World builds each letter from the one before. It calls itself Hello World, but its own comments make a lowercase w, 7+1 more than o.

The truth machine compares the last character typed with 48. On a 0 it goes straight on and prints the 48 and a newline. On anything higher the mirror sends it down a column that prints 1 and uses 8 and % to jump back to its own start, forever.

Expected: 0

Further

Ideas it shows

Works-in-Progress

Two-dimensional languages

Write your own in Run Convert a program from Stackowey

Implementation

JavaScript interpreter, source and command line

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

Command line

shib run stackowey -e '77777777772++++++++++0@!77771+++++0@!7+0@0@!!3+0@!77774++++!0@71++!0@!3+0@!5_+0@!7_+!0_+!73+!9'
shib manual stackowey

Source

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

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

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