~/talk

Shapeless? - Easy!

Talkat Scalar 2016 · on Saturday, 2016-04-16· [scala, functional-programming]
slides:none on file

Shapeless is a Scala generic programming library with about 70 contributors and ~40,000 lines that turns case classes into HList representations via Generic so you can write type-driven algorithms like a compile-time size counter. The demo builds a Delta diff algebra that compares nested fields (addresses inside person) with low-priority implicits to prefer structural generics over primitives, and a Patcher that applies a Delta to produce an updated instance — it compiles and runs.

AI-written summary · about

  1. 0:00Shapeless and generic programming
  2. 1:13Generic programming benefits
  3. 2:39HLists in Shapeless
  4. 4:27HList manipulation with type classes
  5. 6:38Live demo counting HList elements
  6. 9:16Case class ↔ HList conversion
  7. 10:44Generic programming use case
  8. 12:11Delta type for comparisons
  9. 16:30Delta type class implementation
  10. 17:12Live demo: comparing case classes
  11. 18:39Nested comparisons with Delta
  12. 23:35Other Shapeless features
  13. 25:00Applying Deltas to modify objects
  14. 27:37Q&A
~/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.