Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

Fast Life

Build Status codecov Documentation Status

Fast Life is an experiment in Python simulation performance. Python has many excellent simulation frameworks including SimPy and MESA, which make it easy to conduct simulations for research and experimental purposes. Fast Life is not intended to be a simulation framework in the same way, instead Fast Life is designed to answer the question: "Can Python be used to create extremely large scale simulations"? To this end, Fast Life implements a seemingly simple simulation: Conway's Game of Life -- but scales it up to massive proportions. We then explore several different implementations including:

  1. Pure Python Sequential
  2. Pure Python Multiprocessing
  3. C-bindings Sequential
  4. C-bindings Parallel

Each of these implementations will be benchmarked with significantly sized worlds and the same random seeds to determine how their performance scales. Please see fastlife.readthedocs.io for more details and the complete write up on the documentation.

Quick Start

Install the package and the command line tool using the Python package manager as follows:

$ pip install fastlife

Alternatively, if you're interested in development, you can download the repository, cd into it and install locally with:

$ git clone https://github.com/bbengfort/fastlife.git
$ cd fastlife
$ pip install -e .

Note that if you're developing, you should probably set up a virtualenv and all of that good stuff before doing this step. Once done, you should have a CLI script fastlife installed on your path, check it out as follows:

$ fastlife --help

To run a simulation and see the animated action, you would use fastlife run -a - you can play with the various settings and commands to see different implementations of the simulation.

Release files for fastlife 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fastlife 0.2
File Size Uploaded
fastlife-0.2.tar.gz 35.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fastlife 0.2
File Interpreter ABI Platform
fastlife-0.2-py3-none-any.whl Python 3 none any Details

Total release size: 46.4 kB

Release files / fastlife-0.2.tar.gz

Download URL fastlife-0.2.tar.gz
Size 35.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0187768a3b6eb756a2c288050c0001cb13eddde260799e88de3f43c9e017c13c
BLAKE2b-256 checksum
How to use checksums
bfb492d673cbf6e8da485ff457249f4836fcc0d07e9b62b1d59221145287dd34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.3

Release files / fastlife-0.2-py3-none-any.whl

Download URL fastlife-0.2-py3-none-any.whl
Size 11.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0d8255354233ef58520f87324fdf2312b79e45843300ef073a0569db4254f81f
BLAKE2b-256 checksum
How to use checksums
a19c48cc7ce4e81524e45469350b754a138c462cbf24bd6a073f238a67116599
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page