clara.vrx.palo-alto.ca.us
ARTICLES | bespoke web | design | editor | works
readings | SNIPPETS | technology | toronto
biochem | cancer | canna | n n | net | other | plants | politics | social medicine | TECH | truths | pollution | biology
01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24
apl

Richard Sexton
30 June 2017 ·
"The following function "life", written in Dyalog APL, takes a boolean matrix and calculates the new generation according to Conway's Game of Life. It demonstrates the power of APL to implement a complex algorithm in very little code, but it is also very hard to follow unless one has advanced knowledge of APL.
life←{↑1 ⍵∨.∧3 4=+/,¯1 0 1∘.⊖¯1 0 1∘.⌽⊂⍵}"
Greek letters work now. Finally.

22
1 comment 1 share
John Whitlock Damn - haven't looked at "life" or APL for YEARS!
https://www.facebook.com/rs79.vrx.net/posts/10156359306644148
Remember me, buy my shirts!
pop art MBZ