logoalt Hacker News

Simulating Infinity in Conway's Game of Life with Modern C++

58 pointsby HeliumHydridelast Monday at 6:29 PM13 commentsview on HN

Comments

ofrzetatoday at 9:42 AM

"I had heard the rumors that C++ was a scary language filled with footguns and segmentation faults, but I had never given it a fair chance myself" - props for this. There's too much hearsay in software engineering.

show 1 reply
epstoday at 9:04 AM

Small nit, this - https://ryanjk5.github.io/assets/2026-05-14-GOLDE/torus.gif - is not what's conventionally referred to as a torus in CGoL. In torus left and right edges are also connected.

show 1 reply
jdw64today at 6:41 AM

It seems like the thread_local CacheIndex only determines which cache to use, but it doesn't actually guarantee thread safety for concurrent access to the HashLifeCache itself. What would be a good solution for this?

Should I use a mutex for each cache instance? As a beginner developer, my guess is that the original author assumes data races won't occur based on the execution timing. However, I'm really not sure if that assumption is actually correct/safe.

hiroakiaizawatoday at 9:02 AM

Interesting approach. I like that the implementation focuses on scalability rather than only visualization.

show 1 reply
ontouchstarttoday at 11:33 AM

This would be a cool template project to learn C++ without the pollution of LLM slop.

classifiedtoday at 7:45 AM

Fricking cool, I love it.