~/talk

Subtyping is Overrated

Talkat ReactEurope 2018 · on Thursday, 2018-05-17· [typescript]
slides:none on file

Claim is that subtyping is overrated: implicit runtime subtyping (JavaScript, Java, C#) forces dynamic dispatch and small but real overheads, while ML/Haskell/Rust style approaches avoid them. Demonstrations compare prototype lookup cost versus a compiler match on algebraic data types, show Flow/TypeScript examples of subtype relations, and describe alternatives: Haskell type classes and Rust box traits (explicit vtable boxing) to regain dynamism. Result: same abstractions with less default runtime cost.

AI-written summary · about

  1. 0:00Introduction
  2. 1:00Caleb Meredith
  3. 2:40Plants vs Animals
  4. 3:55Dynamic vs Static
  5. 8:34What is Subtyping
  6. 11:49Why is Subtyping Popular
  7. 13:07Subtyping Adds Overhead
  8. 13:47How Subtyping Works
  9. 14:45JavaScript
  10. 15:17Overhead
  11. 16:51Supertype
  12. 18:08Type classes
  13. 20:55Outro
~/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.