~/talk

All I'd Wanted To Know About Ruby's Object Model Starting Out...And Mooar!!!

Talkat RubyConf MY 2017 · 2017-10-12..10-13· [ruby]
links:none on file
slides:none on file

Step-by-step reverse engineering of CRuby shows that all Ruby values are pointers to three C structs—RBasic RObject RClass—with a flags field, a class pointer, a superclass pointer and a method table pointer; bootstrapping runs init_vm_object then init_class_hierarchy; defining a class calls rb_define_class_id which sets super, initializes the RClass and calls make_metaclass to create singleton/metaclasses; modules become inserted as include classes that share the module’s method table; comparison to Python highlights a single metaclass type and the descriptor protocol.

AI-written summary · about

  1. 0:00Start
  2. 1:56What Does It Like To Be a Beginner Learning Ruby
  3. 14:06Singleton Class
  4. 14:44Meta Class Creation
  5. 18:01Set the Superclass of the Metaclass
  6. 18:43Make a Singleton Class
  7. 19:37Modules
  8. 21:15Including Multiple Modules
  9. 23:34Differences between the C Class and Super Pointers and the Ruby Class and Super Class Methods
  10. 31:10Questions
  11. 31:51The Ruby Hacking Guide
~/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.