Conway's Game Of Life in APL
DyalogYouTube ↗
Further reading 1
Caption notes
Implement Life in APL by shifting arrays to count neighbors and applying Boolean rules. The formulation avoids explicit loops and works across board sizes.
Original passages · 5
if we sum the vector we see a neighbor count for each cellyou'll notice that it contains no explicit loops and no temporary variablesthe way we've coded it with rotations we've produced life on a Taurusno explicit loops and no temporary variablesoperators that take our life function as an operand