~/talk

The Twin Algorithms

Talkat CppNorth 2022 · 2022-07-18..07-20· [c-and-cpp, computing-history]
slides:none on file

Argues that several STL numerics (iota, accumulate, partial_sum, inner_product) descend from APL and that twin algorithms — scans and reductions — are visually and semantically paired, a fact revealed quickly on tryapl.org. Demonstrates an APL not-equal scan to strip HTML tags, then translates it into C++20/23 ranges (views, zip_transform, partial_sum later in C++26), showing the C++ version works but needs temporaries and verbose plumbing. Shows outer product to count LRUD moves, cites kx sale (~$100M for a 50KB k binary) and the three-reverse rotate implementation (Doug McIlroy).

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 16:51Connections between C++ and APL
  3. 43:37Reduce and scan algorithms
  4. 54:26Filtering HTML tags with scan
  5. 1:09:53Outer product in C++ and APL
  6. 1:23:29Rotate and reverse symmetry
  7. 1:31:48Summary and call to learn languages
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.