HackerTube 中文?

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 cell
Conway's Game Of Life in APL · ▶ 2:04–2:24
you'll notice that it contains no explicit loops and no temporary variables
Conway's Game Of Life in APL · ▶ 3:11–3:29
the way we've coded it with rotations we've produced life on a Taurus
Conway's Game Of Life in APL · ▶ 6:53–7:07
no explicit loops and no temporary variables
Conway's Game Of Life in APL · ▶ 3:18–3:29
operators that take our life function as an operand
Conway's Game Of Life in APL · ▶ 7:04–7:13

Hacker News comments

View original on HN ↗