~/talk

Keynote: Popping into Ruby

Talkat RubyConf TH 2023 · 2023-10-06..10-07· [ruby]
slides:none on file

Compiler inspection finds an int parameter called popped threaded through the big switch in ic_compile_each that decides whether to emit instructions like put_string or discard a literal. A trivial file with "Ruby comp" then 2023 shows the string’s put_string vanishing because the compiler popped that unused literal, while a standalone 2023 or an assignment must stay. Prism (released as a gem, planned as a Ruby 3.3 flag) improves diagnostics with error tolerance and requires updating the compiler to handle its slightly different AST.

AI-written summary · about

  1. 0:00Ruby internals intro
  2. 1:47About speaker & community
  3. 2:09Ruby under the hood
  4. 3:12Ruby code to parse trees
  5. 8:54Prism parser intro
  6. 11:21Prism vs Ruby error tolerance
  7. 16:58Parse trees to bytecode
  8. 18:41How compiler works
  9. 22:14Put string instruction
  10. 25:07Popped optimization intro
  11. 27:33When Ruby cannot pop values
  12. 31:46Popping optimizations impact
  13. 33:11Stop popping Ruby internals
  14. 35:18Ruby internals resources
  15. 36:42Contribute to Prism
~/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.