~/talk

The Shape of Shapeless (Part 2)

Talkat LambdaConf 2018 · 2018-06-03..06-05· [typescript]
slides:none on file

Walks through concrete techniques to derive code with Shapeless: defines a lexicographic compareHList, exposes output types with the ox pattern (refinement aliases), uses Scala implicits and HLists to derive an Ordering for case classes (Point2D example) and for recursive binary trees, and shows when derivation diverges and how lazy boxes break recursive implicit loops. Demonstrates working derivation, lists where it fails, and the specific fixes and tradeoffs (macros for generic instances, runtime/compile fragility).

AI-written summary · about

  1. 0:00Start
  2. 3:49Implicit Resolution
  3. 8:07Refinement Types
  4. 8:46Refinement Test
  5. 11:02Ox Pattern
  6. 19:43Exercises
  7. 20:40Generic Programming
  8. 21:462d Binary Trees
  9. 26:54Co-Product
  10. 37:09Implicit Cases
  11. 51:46The Value of Shapeless
~/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.