~/talk

Ruby Unblocked

Talkat RubyHACK 2018 · 2018-05-03..05-04· [ruby]
slides:none on file

Explains that blocks are Ruby's closure with an environment pointer ladder that enables dynamic variable access, and that RSpec failure comes from class_eval changing self so helper methods become unavailable (fix: stash the helper in a local variable). Shows lambdas allocate a copy of the stack frame on the heap, increasing memory, and uses binding/eval to inspect environments. Benchmarks show block/lambda paths are about twice as slow (10,000-iteration tests) and define_method creation/execution costs ~1.5–2× vs def.

AI-written summary · about

  1. 0:00Intro
  2. 0:22Cape Town
  3. 0:54Water Crisis
  4. 1:52Emma
  5. 2:45Example
  6. 3:32Solution
  7. 4:02First theory
  8. 5:25Fifth theory
  9. 6:07What is a block
  10. 6:46What is the block
  11. 8:18Display strings method
  12. 8:41Stack frame
  13. 9:48Environment pointer
  14. 10:10Normal method call
  15. 10:32Method with a block
  16. 14:30Why does this work
  17. 14:58Ruby Block Object
  18. 19:02Class Evil
  19. 21:06Find Method
  20. 22:40Block Method
  21. 24:01Benchmark
  22. 25:14Lambdas
  23. 28:13Lambda on heap
  24. 33:03Binding object
  25. 34:37Fan method
  26. 35:18Benchmarking
  27. 36:57Conclusion
~/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.