GithubHelp home page GithubHelp logo

bbengfort / fastlife Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 51 KB

Experimenting with C code and Python bindings

Home Page: https://fastlife.readthedocs.io/

License: BSD 3-Clause "New" or "Revised" License

Makefile 3.37% Python 96.63%
cellular-automata game-of-life parallel-computing cython

fastlife's Introduction

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.

fastlife's People

Contributors

bbengfort avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.