News for hackers. Stuff that matters.
Re:Ask HN: What's your best implementation of Conway's Game ... by selcuka on Wednesday February 12, 2025 @06:18PM (#43030838)
This one is quite interesting:

https://oimo.io/works/life/

It was also featured on HN:

https://news.ycombinator.com/item?id=39799755

Re:Ask HN: What's your best implementation of Conway's Game ... by tombh on Wednesday February 12, 2025 @07:28PM (#43031399)
I think "quite interesting" is an understatement. This is the Game Of Life simulating the Game Of Life. I personally consider it to be one of the Great Wonders of software.
Re:Ask HN: What's your best implementation of Conway's Game ... by orblivion on Wednesday February 12, 2025 @08:23PM (#43031731)
You know one of the hard questions here must be, what configuration exactly is it simulating? It has to be a configuration that simulates the same Game of Life at a higher scale. Any change you make to the configuration must also change the higher level configuration that it simulates.

And it occurs to me, a blank sheet of paper qualifies as the Game Of Life simulating the Game Of Life.

Re:Ask HN: What's your best implementation of Conway's Game ... by zamadatix on Wednesday February 12, 2025 @10:18PM (#43032322)
What makes GoL in GoL somewhat magical feeling is less "there are layers of logic being executed" and more "GoL rules and conditions are extremely restrictive yet still just complex enough to simulate nested execution of the ruleset itself". When you move up the complexity chain to "person with a sheet of paper" you lose some of that wonder to just end up with "extremely complex system can throw away most of the complexity to also simulate execution of a simple system" which feels a lot less surprising.
Re:Ask HN: What's your best implementation of Conway's Game ... by Pyrodogg on Thursday February 13, 2025 @02:33AM (#43033566)
You might like this puzzle.

https://adventofcode.com/2024/day/21

It really makes you think about this; interaction between levels in a simulation.

Re:Ask HN: What's your best implementation of Conway's Game ... by thatguysaguy on Wednesday February 12, 2025 @08:39PM (#43031833)
If you think about it, that's basically what's going on if someone does a quantum mechanics simulation.
Re:Ask HN: What's your best implementation of Conway's Game ... by randomcatuser on Thursday February 13, 2025 @01:06PM (#43039146)
Now that you say it like that...

What are other Great Wonders of software?

Re:Ask HN: What's your best implementation of Conway's Game ... by randomcatuser on Thursday February 13, 2025 @01:13PM (#43039236)
1. Game of life simulating itself 2. Lisp interpreter (in C? or in Lisp) 3. a game engine?? 4. Bitcoin 5. Other distributed systems?? (Spanner?) 6. AI/deep learning representative. GPT4? AlphaGo? Pikadditions? 7. ?
Re:Ask HN: What's your best implementation of Conway's Game ... by FLT8 on Friday February 14, 2025 @07:09AM (#43047561)
- Error correcting codes (viterbi, reed/Solomon, ...)

- cryptography in general

- data compression

- a lot of DSP stuff is pretty magical in it's various applications - digital filtering, modulation/demodulation, recovery of weak signals in noisy environments, beam-forming etc

There's a lot of really amazing, largely mathematical, foundation work that we now tend to take for granted and without which we'd be back in the relative dark ages.

Re:Ask HN: What's your best implementation of Conway's Game ... by jakemanger on Wednesday February 12, 2025 @07:22PM (#43031358)
Zooming out on that one is an absolutely amazing experience
Re:Ask HN: What's your best implementation of Conway's Game ... by cancerhacker on Wednesday February 12, 2025 @07:54PM (#43031538)
I made that a slowly panning and enlarging Mac OS screensaver from that site - 10 lines of source I’ve long since lost to load a web view. [edit to make sense]
Re:Ask HN: What's your best implementation of Conway's Game ... by planckscnst on Thursday February 13, 2025 @12:42AM (#43033018)
You can also zoom in
Re:Ask HN: What's your best implementation of Conway's Game ... by ethanjstark on Wednesday February 12, 2025 @10:33PM (#43032408)
Beautiful. Looks like what I'd see when I would press on my closed eyeballs.

Within 30 seconds, it crashed my 2016 MacBook Pro (maybe overloaded the CPU + the failing battery? It's a feeble machine).

After the Mac's version of the BSD, Mac helpfully restored all of my windows (I have that setting turned off), and there it was again, happily Game Of Lifing in the background. Shut it down just as the fans were spinning up again.

Re:Ask HN: What's your best implementation of Conway's Game ... by thymine_dimer on Wednesday February 12, 2025 @11:55PM (#43032790)
Next time I'm discussing the ol' "are we part of a simulation?" dilemma, I'll pull this up
Re:Ask HN: What's your best implementation of Conway's Game ... by disillusioned on Thursday February 13, 2025 @12:39AM (#43033001)
Also the obligatory link to "I Don't Know, Timmy, Being God is a Big Responsibility" by qntm:

https://qntm.org/responsibilit

Re:Ask HN: What's your best implementation of Conway's Game ... by s-lambert on Thursday February 13, 2025 @06:49AM (#43034978)
The Futurama episode "All the Way Down" and the visual novel Anonymous;Code have the same premise, it's a fun one.
Re:Ask HN: What's your best implementation of Conway's Game ... by teekert on Thursday February 13, 2025 @03:59AM (#43034102)
This one is like looking the universe into its soul.

Btw, can the game of life (at least in theory) simulate chaotic systems like a double pendulum?

Re:Ask HN: What's your best implementation of Conway's Game ... by AndrewOMartin on Thursday February 13, 2025 @04:52AM (#43034383)
It's Turing complete, it can simulate anything any other Turing equivalent machine (e.g. a PC) can.
Re:Ask HN: What's your best implementation of Conway's Game ... by occamschainsaw on Thursday February 13, 2025 @04:55AM (#43034400)
Cellular automata in general can exhibit chaos

https://en.wikipedia.org/wiki/Rule_30

Re:Ask HN: What's your best implementation of Conway's Game ... by kinderjaje on Saturday February 15, 2025 @05:22PM (#43062984)
This is one of the best demos of Game of Life. I guess its just looping, and not all the movements are calculated, since you can zoom out till infinity?

Correct me if I am wrong.

Re:Ask HN: What's your best implementation of Conway's Game ... by berikv on Saturday February 15, 2025 @08:22PM (#43064373)
This should be my new screensaver