~/talk

Type Checking Ruby

Talkat Strange Loop 2017 · 2017-09-28..09-30· [ruby]
links:none on file
slides:none on file

A library called rdl adds types to Ruby by treating type annotations as runtime method calls and doing static type checking at runtime, so checks run after metaprogramming executes. It implements unions, intersections/overloads, generics, tuples, singleton/self types and runtime contracts (wrap) and exposes a CLI and gem on GitHub. It even handles Rails metaprogramming like belongs_to by emitting types when methods are generated. Implementation works for real code but Rails support is still sketchy and runtime wrapping costs remain a tradeoff.

AI-written summary · about

  1. 0:00Introduction to RDL
  2. 1:24RDL demonstration
  3. 5:58Benefits of typing
  4. 9:18Ruby-specific typing
  5. 12:32Advanced typing features
  6. 15:39Generics and containers
  7. 20:40Metaprogramming challenge
  8. 24:54The RDL solution
  9. 30:05Design trade-offs
  10. 36:57Q&A and closing
~/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.