~/talk

Type level Computations in Scala

Talkat Scala.IO 2014 · 2014-10-23..10-24· [typescript]
links:none on file
slides:none on file

Shows precise techniques: implements type-level booleans, natural numbers and HList style heterogeneous lists, defines +, × and exponentiation by structural recursion, and builds a hybrid value/type fold so runtime uses plain ints while the compiler checks sizes. Claims zero runtime overhead and says parts ship in Slick to represent tuples beyond 22 columns. Notes painful boilerplate for type lambdas, occasional unsafe casts, no recursive types or type unification, and slower compile time for heavy computations.

AI-written summary · about

  1. 0:00Type level computations in Scala
  2. 1:50Motivation for type level
  3. 4:37Term level booleans to types
  4. 11:47Natural numbers at type level
  5. 16:45Type level addition and recursion
  6. 20:21Folds and church numerals
  7. 26:42Challenges of type level
  8. 29:55Combining type and term level
  9. 33:06Heterogeneous lists and hybrids
  10. 37:45Limitations and trade-offs
  11. 40:59Shapeless and Q&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.