A 300-line Python implementation reproducing the 'Computational Life' paper, which demonstrates how self-replicating programs spontaneously emerge from simple interactions. A 240x135 grid of Brainfuck-like programs is randomly initialized; each iteration, neighboring programs are paired, their instruction tapes concatenated, and executed for up to 2^13 steps. Programs can loop and mutate each other's tapes, and self-replicating programs naturally emerge and spread across the grid — with more efficient replicators eventually outcompeting earlier ones.
Sort: