4 ms·
Has to be the APL implementation [0] purely due to how small and arcane it is: life ← {⊃1 ⍵ ∨.∧ 3 4 = +/ +⌿ ¯1 0 1 ∘.⊖ ¯1 0 1 ⌽¨ ⊂⍵} The video runs you th
by account-5 2y ago
Has to be the APL implementation [0] purely due to how small and arcane it is:
life ← {⊃1 ⍵ ∨.∧ 3 4 = +/ +⌿ ¯1 0 1 ∘.⊖ ¯1 0 1 ⌽¨ ⊂⍵}
The video runs you through it, even if it doesn't make it any clearer for non-apl'ers.
[0] https://aplwiki.com/wiki/Conway%27s_Game_of_Life https://aplwiki.com/wiki/Conway%27s_Game_of_Life
- zeroq 2y agoEven thought I know it has been developed in 1960 I always felt like it was specifically designed for making "twitter implementations" of things. ;)
- DuncanCoffee 2y agoYou may like https://www.dwitter.net/ https://www.dwitter.net/
- dang 2y agoAn HN classic! Conway's Game Of Life in APL (2009) [video] - https://news.ycombinator.com/item?id=22845249 https://news.ycombinator.com/item?id=22845249 - April 2020 (13 comments) Conway's Game of Life in One Line of APL (2007) - https://news.ycombinator.com/item?id=10366441 https://news.ycombinator.com/item?id=10366441 - Oct 2015 (12 comments) Conway's Game Of Life in APL - https://news.ycombinator.com/item?id=7492585 https://news.ycombinator.com/item?id=7492585 - March 2014 (2 comments) Conway's Game Of Life written in one line of APL - https://news.ycombinator.com/item?id=4642628 https://news.ycombinator.com/item?id=4642628 - Oct 2012 (2 comments) Conway's Game of Life in APL - https://news.ycombinator.com/item?id=4611015 https://news.ycombinator.com/item?id=4611015 - Oct 2012 (1 comment) Conway's Game Of Life in one line of APL - https://news.ycombinator.com/item?id=3840273 https://news.ycombinator.com/item?id=3840273 - April 2012 (2 comments) Conway's Game of Life in one line of APL - https://news.ycombinator.com/item?id=2547655 https://news.ycombinator.com/item?id=2547655 - May 2011 (22 comments) Conway's Game of Life in one line of APL - https://news.ycombinator.com/item?id=1499630 https://news.ycombinator.com/item?id=1499630 - July 2010 (1 comment) Conway's Game Of Life in one line of APL - https://news.ycombinator.com/item?id=1041500 https://news.ycombinator.com/item?id=1041500 - Jan 2010 (31 comments) Game of Life implemented in 5 minutes using APL (amazing video) - https://news.ycombinator.com/item?id=451951 https://news.ycombinator.com/item?id=451951 - Jan 2009 (1 comment) Conway's Game of Life in one line of APL - https://news.ycombinator.com/item?id=451923 https://news.ycombinator.com/item?id=451923 - Jan 2009 (1 comment) Conway's Game of Life in one line of APL - https://news.ycombinator.com/item?id=204042 https://news.ycombinator.com/item?id=204042 - May 2008 (4 comments) --- Honorable mention: Conway's Game of Life in APL in Forth - https://news.ycombinator.com/item?id=31537648 https://news.ycombinator.com/item?id=31537648 - May 2022 (25 comments)
- yiyus 2y agoAlternatively, life←{≢⍸⍵}⌺3 3∊¨3+0,¨⊢