Run, observe and analyze digital evolution

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.


Evochora Visualizer showing organism grid, registers, and assembly debugger
Visualizer
Inspect the environment and all its organisms at any recorded tick, down to the registers, the thermodynamic state and the code of a single organism.
Open Visualizer
Evochora Analyzer showing population dynamics, birth rates, and generation depth charts
Analyzer
Follow a whole run in charts on its population, its evolution and its ecology.
Open Analyzer
Muller Plot showing lineage clade dynamics over evolutionary time
Jupyter Notebook
Write analyses of a run's data in Python. The notebook shows by example how, from phylogenetic trees to Muller plots.

Live Demo

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.


Why Evochora?

For an in-depth description of the physics, the first results, the research directions and the limitations, read the Scientific Overview.

Spatial organisms with programmable behaviorThe AncestorBehavior LibraryAssembly Specification

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.

Thermodynamic constraints and extensible physicsOwnership and ThermodynamicsPlugin InterfacesDynamic Environments

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.

Deterministic and reproducibleReproducibilityReproduce a RunRecord a Stretch in Full

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.

Traceable from the population to a single instructionWhat a Run RecordsObserve a RunAnalyze the Data

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.

Long runs and large populations on a workstationResourcesPublished ExperimentsThe Ancestor

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.

Open source and ready to runReleasesQuick StartMIT License

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

Download Evochora and run your own experiments.
Unpack the archive. A single command starts a simulation.

Need help getting started?
We are glad to help.

Published Experiments

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.


Research Directions

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.

  1. Replicator Ecology
  2. Predators and Prey
  3. Host–Parasite Coevolution
  4. Heterogeneous and Dynamic Environments
  5. The Structure of Variation
  6. Genotype and Phenotype
  7. A Digital Eukaryogenesis
  8. Toward Multicellularity
  9. Metabolism and Food Webs

Documentation

Run experiments

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.

Write organisms

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.

Analyze the data

Analysis NotebookHow to build an analysis of a run, shown by example.

HTTP API ReferenceEvery endpoint of a node with its parameters and responses.

Understand the project

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.

Work on the code

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.


Community

Get help and get involved

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.

Cite Evochora

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.