Search found 2 matches

by johnhw
March 10th, 2020, 4:30 pm
Forum: Scripts
Topic: Simple Python Hashlife implementation
Replies: 0
Views: 4171

Simple Python Hashlife implementation

I've posted a short blog walking through the implementation of Hashlife in Python. I found it more challenging to implement than it first appeared (even with the help of Tomas Rokicki's article!) so someone might find this helpful.
by johnhw
September 24th, 2012, 6:30 pm
Forum: Scripts
Topic: Optimising a Small Life Program?
Replies: 3
Views: 6766

Re: Optimising a Small Life Program?

This is an old topic, but here's some simple Python code which implements Paul Callahan's neat idea. This code prints generation 30 of the Gosper glider gun to the console.

It's not very fast (~100 gens/second on breeder.lif on my laptop), and it uses dictionaries (hash tables) rather than walking ...