~/talk

Introduction to CRuby source code

Talkat MountainWest RubyConf 2014 · 2014-03-20..03-21· [ruby]
slides:none on file

Build CRuby from source: checkout a stable tag, install OpenSSL, run ./configure, then make, make check (≈14,000 tests) and make install; set PATH and GEM_HOME. Use lldb / gdb / Xcode debuggers to break into C functions called from Ruby. Edit C files to define classes/methods (data_Make_Struct, rb_define_method, NUM2LONG, LONG2NUM), or add extensions. Measured speedups: Fib in C ≈30× faster, prime ≈17×, some C routines and grid creation hit 19–50×.

AI-written summary · about

  1. 0:00Start
  2. 0:26Introduction to CRuby Source Code
  3. 2:20Build Ruby from Scratch
  4. 7:41Debugger
  5. 25:23Graphs
  6. 25:55Extract code into a gem
  7. 27:52Questions?
~/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.