~/talk

Optimising your code with math

Talkat Lambda World Cádiz 2019 · 2019-10-17..10-18· [functional-programming]
slides:none on file

Shows how equational reasoning and category theory cut a naive O(n^3) max-subarray (all segments → sums → max) down to O(n) by recognizing a monoid homomorphism (Horner’s-rule–style) and replacing maps with a single scan/fold, uses monoids/free applicatives to analyze algebraic effects so some effects become statically parallelizable, builds a small generative‑art language whose canvas effect is a monoid so folds run in parallel and whose hylomorphism enables extra parallel folds.

AI-written summary · about

  1. 0:00Start
  2. 0:28optimising code with
  3. 3:41why does it not work in javascript ?
  4. 24:21What's parallelism?
  5. 26:36real world case PL for generative art
  6. 28:44Context and Random are boring, tho
  7. 30:56Takeaways
  8. 31:40Parallelism can come for free!
~/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.