~/talk

To type or not to type: a matter of logic

Talkat Scala Love 2022 · on Friday, 2022-02-18· [scala]
links:none on file
slides:none on file

Argues that function types correspond to logical implications and that writing implementations follows natural-deduction proofs: the compose signature (A->B, B->C) yields A->C by typing alone, Either.map follows a constructive dilemma pattern, and Semigroup[Function] matches conjunction/conditional product. Uses Scala, Cats-style algebraic types and a Sergey Benitsky Scala plugin for automated theorem-derived implementations. Claims the compiler proves many properties so unit tests are unnecessary for these cases and that type-driven development produces implementations by construction.

AI-written summary · about

  1. 0:00Introduction to logic and types
  2. 3:17Function composition example
  3. 13:22Type-driven development explained
  4. 19:01Curry-Howard correspondence
  5. 25:06Logic in Scala libraries
  6. 28:00Strong typing vs dynamic languages
  7. 30:50Conclusion and references
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.