r/alife • u/emmerse_ • Mar 07 '26
I built a thermodynamically honest ALife simulation - mass and energy are strictly conserved, everything else emerges
I've been working on Persistence, an artificial life simulation where agents are modelled as dissipative structures - they must constantly harvest energy and export entropy just to stay alive.
What makes it different from most ALife sims:
Strict mass and energy conservation enforced at every step. A physics auditor runs periodically and flags any violation.
No designed behaviors. Agents interact with chemical fields through their genome - intakes, excretions, toxin sensitivities. Everything you observe emerges from that.
Metabolic activity generates waste heat that diffuses through the environment. Dense clusters cook themselves.
When agents die, their biomass disperses as necromass into surrounding cells. Nothing is lost.
The result is that dynamics like boom-bust cycles, self-inhibiting populations, and emergent mutualism arise purely from the physics.
It's open source, comes with pre-configured scenarios to explore, and a full physics test suite to validate conservation laws.
GitHub | Happy to discuss the thermodynamic implementation in the comments.
Philosophy: Entropy always wins, but life still tries. That's worth celebrating.
