~/talk

A gentle introduction to type level programming in Scala

Talkat Scala.IO 2016 · 2016-10-27..10-28· [typescript]
links:none on file
slides:none on file

Shows concrete, mechanical rules to turn value‑level Scala into type‑level code and demonstrates them by implementing boolean types, Peano numbers, and a sized IntList so that adding lists of different lengths fails at compile time instead of throwing exceptions. Uses plain Scala for translation, relies only on shapeless’s typecheck macro for negative tests, exercises implicitly‑based compile‑time assertions, and runs examples that compile successfully; notes readability pain and rising compile times (examples can push compilation to around fifteen seconds).

AI-written summary · about

  1. 0:00Start
  2. 28:24STARTING AT THE VALUE LEVEL
  3. 31:36THE TRANSLATION #1
  4. 34:52THE TRANSLATION #2
  5. 35:29THE TRANSLATION #3
  6. 38:12FINAL CODE
~/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.