mastodon.me.uk is one of the many independent Mastodon servers you can use to participate in the fediverse.
Open, user-supported, corporation-free social media for the UK.

Administered by:

Server stats:

545
active users

Neil Vass

(yes, still): My latest solution was taking a long time to run... so I left it running while I walked the dog, and came back to find it'd got the right answer. Took 20 minutes. Should I...

👀

Chapter 17 is about optimizing Conway's game of life, sounds extremely relevant

"a simple, straightforward implementation just doesn’t cut it, even on a 33 MHz 486"

jagregory.com/abrash-black-boo

Very interested to know why the poll answers don't add up to 100%...

Anyway, thanks for the advice, I've sort of listened! Instead of a whole book, I've read just one chapter (recommended here stackoverflow.com/a/40529/6078), great advice on how to think about problems. It's given me ideas that I'll try at some point soon...

Stack OverflowOptimizing Conway's 'Game of Life'To experiment, I've (long ago) implemented Conway's Game of Life (and I'm aware of this related question!). My implementation worked by keeping 2 arrays of booleans, representing the 'last state',...

WOW with just a few good ideas, running time for this problem has gone from 19 minutes down to 12 seconds. I'm delighted :)

There's loads more I could try - but this is very much good enough for now! Off to the next puzzle...

@iainjmitchell resting is important for peak performance! Next you'll be telling me to take out the snack breaks too