esolang

Smolder

Cells catch fire from their neighbours once, and keep whatever the fire left them.

Aadenboy, 2025 · Turing complete: yes · ●●○ moderate · esolangs.org

Tested with 15 known programs · Test method

Run it

Expected: 103 012 101 010 11

The idea

Aadenboy made Smolder in 2025, from a failed attempt to rebuild the automaton Burn. Each cell has a blue and a green channel, and some also have a red one, each from 0 to 3. A cell with red above 0 is burning. A cell next to a burning one takes new colours from the sums of its burning neighbours, and with them a red channel of its own. After that it never changes again.

Read the story

So a signal runs down a wire of cells once, and what arrives depends on what it met on the way. The specification builds an adder, a comparator and AND and XOR gates like this. Since every cell burns at most once, a finite board always settles, and the specification calls finite Smolder total. On an infinite tiled board it runs Rule 110, in a construction by PkmnQ.

The machine

The program is the board, row by row. . is an empty cell, two digits give blue and green, three digits give blue, green and red.

Each tick, every cell that has no red channel, whose blue and green are not both 0 and which has a burning neighbour up, right, down or left, works out its new colours.

ValueIs
tb tg trThe burning neighbours' blue, green and red, each summed mod 4
db dgb - tb and g - tg
New bluetb + db - dg, mod 4
New greentg - db + dg, mod 4
New redtr - db - dg, mod 4

All cells change at once. The run ends when no cell ticks, or after as many ticks as the input says. The output is the board in the same notation.

Example

The decaying wire.

The decaying wire. Each 11 takes one off the red it passes on, until a red of 0 lights nothing.

From 202 the two differences cancel, so the red stays 2 and the wire alternates between 022 and 202.

Expected: 202 022 202 022 202

The AND gate with both inputs on. Each 002 burns down its wire. The 11 in the middle turns into 002 when both wires reach it at once, and into 000, which lights nothing, when only one does.

Expected: 002 . . . 002 002 002 002 002 002 . . 002 . .

The example of one cell with three burning neighbours shows a single tick. The input sets the number of ticks.

Expected: . 112 . 112 203 112 . 01 .

The adder and comparator also work. Its figure of the adder on 1 + 0 shows 313 in two cells where its own rule gives 311.

Patterns it teaches

Further

Cellular automata

Two-dimensional languages

Write your own in Run Convert a program from Smolder

Implementation

JavaScript interpreter, source and command line

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

Command line

shib run smolder -e '.   .   .
.   101 10
.   .   .'
shib manual smolder

Source

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

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

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