~/talk

Elements of Programming, In Ruby

Talkat RubyConf 2026 · 2026-07-14..07-16· [ruby]
slides:none on file

A Ruby reimplementation of Elements of Programming claims that many algorithms become generic and provably efficient when expressed by small, precise components. It implements fast exponentiation for any associative operation (works for addition, multiplication, matrix multiplication and yields Fibonacci via matrix powers) and constructs a stable in-place sort built from swap reverse rotate leading to a stable partition and O(n log n) behavior, all written as Ruby lambdas and array mutations.

AI-written summary · about

  1. 0:00Introduction
  2. 3:53Stepanov's math approach
  3. 8:52Associative ops and exponentiation
  4. 14:30Stable in-place sorting
  5. 21:39Practical takeaways
  6. 26:18Math in programming
~/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.