~/talk

Roll Your Own Shapeless

Talkat Scala Days Berlin 2016 · 2016-06-15..06-17· [typescript, developer-experience]
slides:none on file

Recreates core Shapeless pieces in plain Scala: builds an HList with append, implements remove, map and nth as type-level proofs resolved by implicits, uses dependent output types to carry computed types out of implicit search, and encodes polymorphic functions with an inner-case poly trait. nth needs a whitebox macro for int→Nat plus an implicit conversion workaround; implicit prioritization and companion-scope tricks resolve ambiguities. All features compile and work, but rely on compiler quirks (SI-2712, implicit search behavior) and accept practical limitations.

AI-written summary · about

  1. 0:00Intro
  2. 0:32Shapeless
  3. 9:42Context-Dependence
  4. 10:45Roadmap
  5. 11:06HList#remove
  6. 12:05Implementation
  7. 17:28Remover
  8. 23:42Implicits!
  9. 29:43Downsides
  10. 30:56Exercise 3.1
  11. 36:20Peano Arithmetic
  12. 36:52Macros
  13. 45:02Conclusion
~/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.