Re:AMA: I'm Dave Greene, an Accidental Expert on Conway's Ga...
by JoeDaDude on Tuesday April 23, 2024 @11:43AM
(#40133236)
Decades ago, I read an article in Byte magazine discussing various implementations of GoL. The article ended with an implementation in one line of APL. What are the chances you (or anyone) still has that article, and that one line program?
[ Parent
| on HN ]
Re:AMA: I'm Dave Greene, an Accidental Expert on Conway's Ga...
by dvgrn on Tuesday April 23, 2024 @01:21PM
(#40134501)
Heh -- "if you need more than one line of APL you do not fully understand your problem".
https://news.ycombinator.com/item?id=1041500
People have done similar things in all kinds of languages by now: https://codegolf.stackexchange.com/questions/3434/shortest-game-of-life
Re:AMA: I'm Dave Greene, an Accidental Expert on Conway's Ga...
by kirubakaran on Tuesday April 23, 2024 @01:36PM
(#40134701)
life←{⊃1 ⍵ ∨ .∧ 3 4=+/,¯1 0 1∘.⊖¯1 0 1∘.⌽⊂⍵}
Re:AMA: I'm Dave Greene, an Accidental Expert on Conway's Ga...
by ptrott2017 on Tuesday April 23, 2024 @09:07PM
(#40139270)
and if you want some additional explanation:
Re:AMA: I'm Dave Greene, an Accidental Expert on Conway's Ga...
by RBerenguel on Tuesday April 23, 2024 @01:45PM
(#40134799)
This video constructs a GoL in APL (not one liner). It is quite understandable even if you don’t know APL (I had just started tinkering with APL when I first found it I think): https://m.youtube.com/watch?v=a9xAKttWgP4
In case somebody is curious to see how it might look like.