~/talk

Herding types with Scala macros

Talkat Scala Days Copenhagen 2017 · 2017-05-30..06-02· [typescript]
links:none on file
slides:none on file

Macros generate compile‑time materialized wrappers that map Scala types to Aerospike's limited runtime types, replacing the Java client churn (about 7 key and 12 bin variants and ~30 get methods) with concise put/get APIs. The implementation uses Scala macros and quasiquotes to inspect types, emit key and bin converters for strings, case classes and HLists (stored as HList as native map), and catch many mismatches at compile time; a tradeoff is extra classes per materialization that can affect class loading.

AI-written summary · about

  1. 0:00Introduction
  2. 2:00Roadmap
  3. 5:53Storage
  4. 8:08Get function
  5. 10:51Implementation
  6. 12:09Key
  7. 15:19Wrapper
  8. 16:53Bin Browser
  9. 19:30Choice
  10. 21:41Cleanup
  11. 22:49Questions
  12. 24:00Why use macros
~/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.