Evochora is an open-source platform for digital evolution research. Its organisms are self-replicating programs laid out in a shared spatial environment, where they live under thermodynamic constraints.
Everything they do is written in their code and therefore exposed to selection. In the published runs, evolution changed where offspring are built, what they are made of and when a parent reproduces.
For an experiment, the ancestors, their behaviors and the physics of the environment can be configured and extended. Its runs can be followed in a web-based visualizer and analyzer and analyzed further in Python or R. They are deterministic, so a change that spread can be traced back to the mutation behind it.
Explore recorded simulation runs right here. Everything runs in your browser.
Open a run in the visualizer to look at the environment and its organisms, or in the analyzer to follow the population over time.
For an in-depth description of the physics, the first results, the research directions and the limitations, read the Scientific Overview.
In Evochora, an organism is a program laid out in an n-dimensional grid. It can interact with its environment and other organisms. It searches its surroundings for energy, builds its offspring, decides where to place it and can take or execute cells of its neighbors. The system makes none of these decisions for it. They are behavior in its code and therefore exposed to selection.
The ancestors that come with Evochora harvest energy, hoard it and reproduce. Further behaviors can be written in EvoASM, Evochora's assembly language. Its compiler and modules let a behavior be written once and reused in different ancestors. A run can start from several ancestors, so that different strategies meet in one world.
In Evochora, survival is thermodynamic, and organisms compete for energy and for space. Every instruction costs energy and produces entropy. Energy has to be harvested from the environment, and entropy can only be shed by writing into it. An organism dies when its energy runs out or its entropy exceeds a limit.
What an action costs, where energy enters the world, how offspring mutate and what becomes of the dead are plugins. Each can be configured or replaced. Barriers, gradients, seasons and catastrophes can be written as plugins too. The world itself becomes part of the experiment.
A run in Evochora is deterministic. The same version and the same configuration with its seed always give the same course, tick for tick, on Linux, macOS and Windows, with any number of processor cores, and regardless of whether the run was stopped and resumed.
Anyone can therefore produce the same data and check a result independently. The data match bit for bit, apart from the time of recording. This holds at any recording density. A run recorded at intervals, or any stretch of it, can be computed again and recorded at every tick. It then shows the same course in more detail.
At each recorded tick, Evochora stores the environment and every organism with its internal state. It also stores every death and every birth with its parent and its mutations. The analyzer turns these data into charts, and plugins can add further metrics. All metrics are provided as Parquet files, an open format, for analysis in Python or R.
So when a lineage takes over a population, it can be followed back to the organism in which the change began. The stretch around that moment can then be recorded again at every tick. The visualizer shows the organism there instruction by instruction: its internal state, the machine code it executes and the surroundings it actually had.
On a workstation, Evochora executes several million instructions per second. Every organism executes one instruction per tick, so a population of a thousand organisms reaches several hundred million ticks a day. Published runs have reached billions of ticks.
How many generations that makes depends on the organisms. The default ancestor is deliberately large, a program of a few thousand cells with behavior routines for harvesting, hoarding and reproducing. With it, such a population completes on the order of a thousand generations a day. Simpler organisms can be expected to reach many times that.
Evochora runs on Linux, macOS and Windows, on ordinary hardware. Unpack and start with one command. Watch the simulation in your browser while it runs.
The code is open source under the MIT license. Use it, change it, build on it. How the simulation works can be read in the source.
Download Evochora and run your own experiments.
Unpack the archive. A single command starts a simulation.
See what has evolved in Evochora so far. Each of these runs produced a finding and is published on Zenodo as a citable record.
A record holds the data of the run, its analysis and the version of Evochora that recorded it.
Questions that can be asked with Evochora. Some can be set up as experiments today, from a configuration and ancestors.
Others first need a change to the physics. The Scientific Overview describes each of them.
User GuideHow to run an experiment, from the first start to analyzing and sharing its results.
CLI Usage GuideEvery command of bin/evochora with its options.
evochora.confThe configuration template with the settings changed most often.
reference.confEvery setting there is, each with its explanation.
Assembly SpecificationThe EvoASM language, the virtual machine and every instruction.
EvoASM GuidelinesPractices for writing programs that leave room for evolution and act reliably among other organisms.
AncestorsThe ancestors that come with Evochora and how to start them.
Behavior LibraryThe behaviors an ancestor can be assembled from.
Syntax HighlightingThe VS Code extension for EvoASM.
Analysis NotebookHow to build an analysis of a run, shown by example.
HTTP API ReferenceEvery endpoint of a node with its parameters and responses.
Scientific OverviewThe physics of the environment, the first results, the research directions and the limitations.
Published ExperimentsThe experiment records on Zenodo, each with its finding.
Origin StoryHow the project came about.
Development GuideHow to build, run and test Evochora from its sources.
ArchitectureHow Evochora is built, its packages and how they depend on each other.
Architecture & Design DecisionsWhy the main parts were built the way they are.
We help everyone who wants to try Evochora. We are curious what you would like to study with it, and glad to help you design an experiment. Contributions of any kind are welcome.
DiscordChat with us.
DiscussionsAsk a question, share an idea or show what you are working on.
IssuesReport a problem or request a feature.
Contributing GuideHow to contribute, whether you do research with Evochora or work on its code.
AI PolicyThe rules for using AI assistants in the project.
Code of ConductWhat everyone in the project follows.
If you use Evochora in your research, please cite the version that produced your runs.
CITATION.cffThe reference. GitHub offers it under “Cite this repository”.
Cite and ShareHow to find the version of a run and its DOI.