~/talk

What lies beneath the beautiful code?

Talkat RubyConf India 2012 · 2012-05-14..05-20· [ruby, compilers-and-language-design]
links:none on file
slides:none on file

Examples use Ruby 1.9 tooling (Ripper, RubyVM::InstructionSequence) and C source files (array.c, string.c, class.c) to show exact mappings: Ruby objects become C structs, Value is typedef'd as unsigned long, immediates are Fixnum/Symbol/true/false/nil, and small strings under ~23 bytes are stored inline. Demonstrations show RString struct layout, copy-on-write and embedded strings optimizations, hash internals via StTable, and a C extension that prints hex addresses to confirm shared versus copied storage.

AI-written summary · about

  1. 0:00Introduction
  2. 0:33About Niranjan
  3. 1:14What lies beneath
  4. 1:30What is Ruby
  5. 1:44Ruby Interpreter
  6. 2:40Why should we know
  7. 3:16Lets dive in
  8. 4:57compiler
  9. 8:10seasource
  10. 8:41Ruby evaluator
  11. 9:34Ruby header
  12. 9:58Object and class
  13. 12:08Instance specific behavior
  14. 12:48Singleton class
  15. 14:33What is a value
  16. 14:50Typedef
  17. 17:15String
  18. 20:04Heap Allocation
  19. 20:59See Extension
  20. 21:23Output
  21. 21:46Shared Strings
  22. 23:24CopyOnWrite
  23. 24:18Verify
  24. 24:33Embedded Strings
  25. 27:12Debug Class
  26. 28:02Slice
  27. 30:19Hash Mapping
  28. 32:14Summary
  29. 32:35C Extensions
  30. 33:31Thanks
  31. 33:45Questions
~/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.