~/talk

Deriving pleasure

Talkat Scala.IO 2017 · 2017-11-02..11-03· [scala, compilers-and-language-design]
slides:none on file

Generates a claim: Magnolia is a compact macro (~300 lines) that produces generic type-class derivations without shapeless, with concrete mechanics — it detects recursion cycles, aborts nested invocations, inserts placeholders and post-processes the generated AST to resolve indirect implicit cycles. It handles recursive and even generic ADTs, emits debuggable derivation traces pointing to the first missing implicit, and currently matches shapeless on speed while promising smaller generated trees after planned deduplication. Useful when automatic, type-safe derivation and clearer error locations matter.

AI-written summary · about

  1. 0:00Start
  2. 9:04Coproduct types (scaled traits)
  3. 47:18Breaking recursion
  4. 57:57An interesting side-effect
~/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.