HKD: stem cells for data
summary
Concrete recipe for turning case classes into interchangeable data shapes using HKD: wrap fields in Option or effect types, derive applicative and traversal instances, and run polymorphic transformations across every field. The talk shows a Scala 3 implementation that auto-derives typeclass instances (Magnolia-like) via the tofu module, handles indexed collections and default values, and demonstrates console examples that actually compile and run. Code and examples are published so the library can be dropped into a codebase to replace handwritten boilerplate.
AI-written summary · about
chapters (8)
- 0:00Introduction to HKD
- 3:00Basic HKD concepts
- 10:00Polymorphic HKD in Scala
- 17:00HKD for domain modeling
- 24:00HKD with type classes
- 31:00Practical HKD examples
- 38:00Advanced HKD techniques
- 45:00Q&A and conclusion
related talks
24mLet the Scala compiler work for you
01h 02mPrinciples and tools to cleverly model your data in Scala
58mSeparating Behavior and Data with Type Classes in Scala
29mADVENTURES IN META-PROGRAMMING
34mMaterialize Typeclasses with Magnolia
01h 21mDescribing Data...with free applicative functors (and more)
22mScale By The Bay 2018 Unconference: Gabriel Claramunt
36mKittens - datatype-generic functional programming with Scala
