~/talk

Cool, But... Why?

Talkat rubyday 2020 · on Wednesday, 2020-09-16· [ruby]
slides:none on file

Digging into Ruby internals, this shows measured surprises: Benchmark reveals for is slower than each despite its keyword form, and a block-based if is ~2x slower; method_missing adds an extra indirection, hides caller methods in traces, and Rails avoids that by defining methods on first use; define_method wraps a Proc so calls are slower and closures retain objects — experiments with object_space show ~10,081 bytes retained — and defining methods via class_eval creates real methods with no closure retention.

AI-written summary · about

  1. 0:00Intro
  2. 2:09Learning Ruby
  3. 4:27Dont be a parrot
  4. 4:47Introduction
  5. 5:46Who am I
  6. 6:57Disclaimer
  7. 7:37For loops
  8. 8:39Benchmark
  9. 11:20Open Source
  10. 12:48Method Missing
  11. 15:06Benchmarking
  12. 16:31Failures
  13. 17:18Dynamic Matcher
  14. 18:03Define Method
  15. 28:12Lightning Round
  16. 31:35Dont Write Comments
~/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.