The State of C Extensions: Alive and Well, so Learn to Deal
summary
C extensions remain common and practical: only about 45 of 21,000 gems are native but 18 of the top 100 downloads are C extensions, and real-world libraries like zlib and JSON mix C for speed and compatibility. Examples show big wins — replacing Ruby PNG decoding with a C patch yields 80× faster decoding — and tooling makes builds workable: RubyInstaller + DevKit on Windows, trivial gcc builds on Linux/OSX, and recent work in Rubinius/JRuby/MacRuby improves interpreter portability so C extensions compile and run across major Ruby VMs.
AI-written summary · about
chapters (7)
related talks
35mRuby’s C Extension Problem and How We're Solving It
15m"Ruby native extensions and what's wrong with them"
40mImprove extension API: C++ as better language for extension
30mBuilding Native Extensions. This Could Take A While...
45mFuture of RubyVM
50mUsing C to Tune Your Ruby (or Rails) Application
47mRewriting a Ruby C Extension in Rust
46mAvoiding Pitfalls in C Extensions
