Introduction to CRuby source code
summary
Shows how to build CRuby from source (git checkout, ./configure, -O0 -g then make && make check with ~13,000 tests), how to point PATH/GEM_HOME, and how to attach lldb/GDB/Xcode for C‑level debugging. Points to concrete files like array.c and numeric implementations, demonstrates adding C methods to Fixnum and creating a C long array with malloc, and gives measured speedups (examples: 10–50×, up to 30× for fib, uploader claims CRuby can be 100 times faster for hot code).
AI-written summary · about
chapters (9)
- 0:00CRuby source code
- 3:16Building Ruby from source
- 8:27Debugger setup for CRuby
- 10:13CRuby folder structure
- 16:26Adding methods to classes
- 19:14C extensions for performance
- 23:25Optimized C arrays
- 26:59Performance with C extensions
- 27:20Key takeaways
related talks
29mIntroduction to CRuby source code
26mReading Ruby - A Visual Walkthrough of the Source Code
08mHow to Begin Developing Ruby Core
35mPragmatic Testing of Ruby Core
30mGuide to getting started walking source codes of CRuby
39mC how to supercharge Ruby with Rubex
32mExperiments in sharing Java VM technology with CRuby
38mPractical Debugging
