esolang

Countable

Numbers that can only go up, loops that can only count, and a jump to the next pass.

Aadenboy, 2026 · Turing complete: yes · ●●● hard · esolangs.org

Tested with 3 known programs · Test method

Run it

Expected: meow

The idea

Aadenboy made Countable in 2026 from the counting model of Iterate. There are endless accumulators, and the only thing you can do to one is add to it. Nothing is ever reset or decremented. Instead of lowering a number, programs move a pointer to fresh accumulators and treat an old one as the new zero. Comparisons are made with labelled loops. a1*1< a2& ... > runs its body only when accumulators 1 and 2 differ, because when they are equal a2& jumps straight to the next pass of the loop it is in.

The machine

CodeDoes
x+nAdd n to accumulator x
x*n< ... >Repeat n times, labelled x (the label is optional)
x&Jump to the next pass of the innermost loop labelled x
x@Add a byte of input to accumulator x
%nPrint n modulo 256

A value is a number or ∞, and each a in front reads through one accumulator. a5 is the value of accumulator 5, aa5 the value of the accumulator that one names. // and /* */ are comments.

Example

The first is the cat.
Expected: Hi

The first is the cat. Accumulator 1 points to where the next byte goes. Each byte is added to a fresh accumulator and printed, and 2& jumps over the 1& that would end the loop. When the input runs out, nothing is added, the inner loop runs 0 times and 1& ends the outer loop.

Further

Ideas it shows

Also in Turing tarpits

Write your own in Run Convert a program from Countable

Implementation

JavaScript interpreter, source and command line

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

Command line

shib run countable program.txt --input 'meow'

The program is long; save it as program.txt first.

shib manual countable

Source

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

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

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