Readit News logoReadit News
olooney · a year ago
That's interesting, I recently wrote a game of life that uses PyTorch to run on the GPU:

https://gist.github.com/olooney/d835353176bd9a679ad2f057cd58...

It benefits from using PyTorch's 2D convolution operation but sufferers it has to keep casting types to get it to work. Still, it's quite fast for very large grids!

jerpint · a year ago
I implemented a version of game of life using 2D convolutions from scipy, I’d be curious to see how it compares to GPU crunching
jerpint · a year ago
Nice! I did a game of life using stable diffusion recently, check it out :)

https://www.jerpint.io/blog/diffusion-gol/

ahuth · a year ago
That's pretty sweet. Nice job!
kvgr · a year ago
Can you make it bigger? it is too small for glider gun :)
ahuth · a year ago
Done. Now it's double the size (50 x 50).

100 x 100 works too, although was noticeably slower.

jerpint · a year ago
Still blazing fast on iPhone
mensetmanusman · a year ago
Runs ridiculously fast on my iPhone 14 Pro Max :)
iamgopal · a year ago
We programmers mostly living in abstraction on top of abstraction have actually no idea how fast our computer has become.
beardyw · a year ago
Yes, a slower speed option would be good.
0xdada · a year ago
Love the use of light blue color for the blinking cells! Surprisingly smooth UX considering we have checkboxes for cells.
jeroenheijmans · a year ago
That's cool but now do it with only html+css!

(jk this is already pretty cool! :D)

Deleted Comment

kachapopopow · a year ago
li { height: 20px; width: 20px; }

input[type="checkbox"] { width: 20px; height: 20px; }

Now you can't even tell the difference between the real thing!