Ferrari Driven Development: superfast Ruby with Rubex
summary
Rubex compiles a Ruby-like language into C extensions (compiler written in Ruby) and produces working shared objects that plug into CRuby; example: an array-to-hash routine runs about 1.6× faster than pure Ruby. Struct wrappers use an attach keyword so Ruby objects map directly to C structs with about 3× fewer lines of code. A no-GIL block lets worker threads hit near 100% CPU so threaded numeric tasks show order-of-magnitude speedups.
AI-written summary · about
chapters (12)
- 0:00Introduction and background
- 3:54Problem with C extensions
- 5:18Introducing Rubex
- 8:10Rubex performance benefits
- 11:20C data type interfacing
- 14:09Managing C code in Rubex
- 16:47Releasing GIL for threading
- 20:46Exception handling in Rubex
- 22:12Rubex vs Ruby vs C
- 23:16Future of Rubex and Ruby
- 26:29Ruby plot and other projects
- 27:56Q&A session
related talks
39mC how to supercharge Ruby with Rubex
44mRubinius in One Act OR Rubinius: A War on Two Fronts
52mRubinius
40mTurbo Rails with Rust
35mRuby’s C Extension Problem and How We're Solving It
28mRuby Racing: Challenging Ruby Methods
42mRuby 124c41+
43mParallel and Thread-Safe Ruby at High-Speed with TruffleRuby
