~/talk

ADVENTURES IN META-PROGRAMMING

Talkat Scalar Conference 2017 · 2017-04-07..04-08· [scala]
slides:none on file

Compares three meta-programming options in Scala and demonstrates two concrete case studies: auto-constructing case-class instances and building field-aware validators. Implements a macro that inspects companion apply, initially hardcodes three types then extends via a Pure type-class with implicits to support arbitrary types; builds a shapeless version using Generic/HList and LabelledGeneric to derive constructors and field names, which is more robust but heavier and slower to compile. Ships a working checklist validation library; macros win for concise syntactic tasks, shapeless for type-level derivation.

AI-written summary · about

  1. 0:00Start
  2. 0:06Adventures in Meta-Programming Macros vs Shapeless
  3. 3:16constructing values
  4. 9:05macros v2
  5. 16:29data validation
  6. 25:26summary
  7. 26:12meta-programming is a convenience
  8. 28:20bonus macro unindent
~/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.