Turbo Rails with Rust
summary
Shows building a native Rails extension in Rust using a small runtime library and a file format that generates glue; Rust replaces C glue with libcruby plus TRB files and encodes Ruby types safely. Benchmarks show the Rust blank implementation at about 11M iters/s versus C ~10M and Ruby ~1M, and earlier C work gave up to 20× speedups over Ruby. Focuses on static dispatch, stack allocation and ownership to get C-like speed without unsafe crashes.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 3:29Performance challenges in Ruby
- 6:18Optimizing with native extensions
- 10:07Introduction to Rust
- 12:25Rust memory and performance
- 17:26The importance of stack allocation
- 20:10Ownership and polymorphism
- 25:59Benchmarking and library tools
- 31:43The Turbo Ruby project
- 36:07Future of Ruby and ownership








