~/talk

Staged Sums of Products

links:none on file
slides:none on file

Generics-sop programs are often ~6x slower than handwritten code because of runtime conversions; this work builds staged-sop using Typed Template Haskell to generate specialized code at compile time. Conversion functions become continuation-style that produce code-wrapped components (C), combinators like czipWith and mapC build quoted applications, and top-level splices cancel to yield code equivalent to the handwritten version, matching its performance. A quoted-constraint form (e.g. quoted Semigroup a) is added and implemented in a GHC branch to handle overloading across stages.

AI-written summary · about

  1. 0:00Intro
  2. 0:16Example: semigroup append
  3. 2:02generics-sop
  4. 2:43Generic semigroup append
  5. 6:45What about efficiency?
  6. 7:59Typed Template Haskell
  7. 9:06Staging constructs
  8. 10:56Staged serigroup append
  9. 16:19staged-sop
  10. 17:15Quotes and constraints
  11. 19:33In the paper
  12. 20:35Conclusions
~/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.