~/talk

Multi-stage Programming in the Large with Staged Classes

Talkat GPCE 2020 · 2020-11-16..11-17· [compilers-and-language-design]
links:none on file
slides:none on file

Introduces staged classes implemented in the Squid Scala framework to generate class and module definitions with static typing and scope guarantees, producing concrete classes via runtime-compile so abstractions like a generic fold are zero-cost abstractions in the generated code. Shows parameterized staged classes (arity and element type via reified implicits), caching of specializations with @cached to avoid duplication and cycles, and two apps: a type-safe csvProvider that guarantees well-typed generated types and a staged DB compiler that generates specialized container and query-executor classes.

AI-written summary · about

  1. 0:00Intro
  2. 0:13Two approaches to high-perf. programming
  3. 1:19Limitations of Multi-Stage Programming
  4. 2:30C++ template metaprogramming
  5. 2:49Staged classes for MSP in the large
  6. 3:39Uses of Staged Classes
  7. 4:05Outline of the presentation
  8. 4:22The Squid framework
  9. 4:50Quasiquotation in Squid
  10. 5:57Classes in Scala: Vector Example
  11. 8:24Staged Vector: Generalizing the Arity
  12. 9:15Staged Vector: Generalizing the Element Type
  13. 10:06Staged Classes: Specialization and Sharing
  14. 10:56Type-Safe Implementations of Type Providers
  15. 12:01Use Case: A Staged Database System
  16. 13:30Conclusions on Staged Classes
~/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.