~/talk

Ruby Internals

Talkat MountainWest RubyConf 2008 · 2008-03-28..03-29· [ruby]
links:none on file
slides:none on file

MRI keeps one rule: method dispatch always works the same way, so class pointers and method tables determine behavior. MRI implements instance-specific behavior by spinning up singleton classes on the fly with super pointers back to the original class. Modules insert include classes (thin wrappers whose method table points to the module) so multiple mixins don’t collide. Fixednums/symbols and true/false/nil use special value encodings (nil id 4, true id 2). JRuby and Rubinius implement these concepts differently for JVM and reimplemented engines.

AI-written summary · about

  1. 0:00Start
  2. 6:30Ruby Hacking Guide
  3. 7:13Method Dispatch
  4. 21:38Singleton Classes
  5. 32:41The Inheritance Hierarchy
  6. 36:38Class Methods on Modules
  7. 41:57Boba Fett
  8. 43:50Class Initialization
  9. 47:51Questions
~/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.