Wow, compiled code is really fast. This implementation of Life uses a HashSet for speedy checks over a sparse "array".
There are no dependencies beyond the standard library, a stable rust compiler, and cargo. Simply clone and compile!
git clone https://github.com/madelyneriksen/life-in-rust .
cargo build --releaseI originally talked about this in a blog post where I used a Python dictionary to create a very efficient version of Life. The same algorithm is used in the Python and Rust implementations, so if you're curious check it out!
Of course, Rust is way faster. ๐ฅ
- MIT