~/talk

Ruby has literally always had types

Talkat wroc_love.rb 2025 · 2025-04-11..04-13· [ruby]
links:none on file
slides:none on file

Claims that Ruby always has types and shows a concrete runtime type system: the literal gem provides composable types (union, intersection, deferred recursive JSON), literal.struct/data props, enums, value/decorator wrappers, and plans for typed collection objects and cross‑property validation. Example: a nil email bug at Shopify causes a ZenDesk deletion of ~4–10k tickets, motivating runtime checks that raise (production checks stay enabled and cut errors at ClearScope). Types use the triple equals interface, generate initializer code to avoid runtime allocation, and interoperate with metaprogramming.

AI-written summary · about

  1. 0:00Introduction
  2. 1:35Ruby's relationship with types
  3. 3:22Real-world bug from missing types
  4. 4:27Static typing attempts in Ruby
  5. 8:00What is a type?
  6. 9:23Ruby's triple equals as types
  7. 12:57Creating custom types
  8. 14:42Introducing Literal library
  9. 17:58Why types are useful
  10. 19:01Literal Data and Struct
  11. 23:14Literal Properties
  12. 25:00Literal Enums
  13. 27:47Literal Values and Decorators
  14. 29:12Performance considerations
  15. 32:02Collection objects
  16. 34:07Accordion of complexity
  17. 35:31Type variance in collections
  18. 37:20Cross-property validation
  19. 38:24Result objects and future plans
  20. 39:28Summary and benefits
  21. 44:50Q&A begins
~/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.