~/talk

Roll Your Own Shapeless

slides:none on file

Recreates core Shapeless primitives from scratch using Scala implicits and a handful of macros, showing concrete implementations of HList append, type-indexed remove, map via polymorphic functions in implicit scope, and an implicit macro that lifts integer literals to Peano naturals so nth indexing compiles to precise types. Demonstrates the surprising constraints and workarounds—dependent output types, aux pattern, low‑priority implicits—and shows the resulting machinery composes and works within Scala 2’s compiler quirks.

AI-written summary · about

  1. 0:00Intro
  2. 0:19Miles Sabin
  3. 1:54Previously on Daniel...
  4. 4:48Context-Independence
  5. 8:37Type Level Functions
  6. 9:57Context-Dependence
  7. 11:32Roadmap
  8. 11:55HList#remove
  9. 12:59Implementation
  10. 16:04"Out" Types
  11. 17:59WARNING
  12. 19:35Remover
  13. 23:24HList#map
  14. 25:16Implicits!
  15. 30:45Downsides
  16. 31:52Exercise 3.1
  17. 36:55Peano Arithmetic
  18. 38:17Macros
  19. 45:45Conclusion
~/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.