~/talk

Composable Sequence Macros for Fast Iteration

Talkat GPCE 2022 · 2022-12-06..12-07· [compilers-and-language-design]
links:none on file
links:none on file
slides:none on file

Racket gets a library of fast-sequence map/fast-sequence filter and a generalized do-sequence comprehension that builds by manipulating compile-time expanded clause records (ECRs) containing binders and expressions, with careful scoping rules and diagnostics. Implementation composes sequence macros to avoid intermediate allocation, targets mapping/filtering/nesting, and benchmarks show about 18× speedup over dynamic sequences and performance close to hand-optimized loops, with minor slowdowns due to ECR representation limits.

AI-written summary · about

  1. 0:00Introduction
  2. 1:05Dynamic sequence problems
  3. 2:28Fast sequence combinators
  4. 3:34For loops in Racket macros
  5. 5:43Loop scoping challenges
  6. 7:32Nested iteration with custom types
  7. 8:37Results and benchmarks
  8. 9:45Q&A
~/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.