Giter Site home page Giter Site logo

conways-gol's Introduction

Conway's Game of Life on Python

Objectives & Approach

We need to implement Conway's GoL in 64-bit integer space!

  1. To create a program to play Conway's GoL, we can use Python3 as a testbed for exploring algorithmic solutions! Since Python can store arbitrarily large integers only bounded by system RAM it serves as an easy language for starters.

    We could use C/C++, though any board space larger that 64-bit space would not fit on modern CPU registry size (x64). We could use a library like GMP to accept arbitrary precision integers for future development.

A trivial solution following the execution of Conway's GoL can be found in the "1. Python/ConwaysGoL.ipynb" folder.

Interesting follow-ups to think about!

  1. What happens if the input file is 1TB? How can we import that into memory? Can we use generators to output graphics in realtime and throw-out old garbage values for that instant?
    • If we have an extremely sparse matrix, it would make much more sense to actually save the location of only the live cells and then apply the 4 rules accordingly using only these live cells!
  2. Say we use Conway's GoL similar to a weather-forecasting simulator where a small input needs to be ran to produce a coherent picture of what happens over 1-million years of compute time. In this case, what would happen if we need even MORE integer space? What would this look like in a multi-GPU/multi-CPU exascale environment?
    • Perhaps we could use an HPC MPI Job Schedulers (e.g., SLURM, MPICH, MVAPICH, OpenMPI), WareWulf (cluster manager) to manage the configuration an exascale-large board simulation! Perhaps we could use database sharding to store fragments of the board space (e.g., Percona XtraDB Cluster, MariaDB Galera Cluster, Vitess row caching)!
  3. Can we make this game into potentially a benchmarking tool :)?

conways-gol's People

Contributors

dannliuu 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.