Turbo Rails with Rust
summary
Rust native extensions replace hot Ruby paths with safe system code: a one‑liner Rust implementation of Fast Blank matches or beats C, Helix scaffolds the boilerplate as Helix, and a real workload (set‑containment for Zesty) rewrites from Ruby to Rust and benchmarks up to 173× faster, with the compilation safety and zero‑cost abstractions that avoid segfaults while keeping idiomatic iterator‑style code.
AI-written summary · about
chapters (17)
- 0:00Introduction
- 3:13New features
- 8:33String plank
- 14:46What is Rust
- 16:28Memory Safety
- 17:58Zero Cost Abstraction
- 20:41FastBlank
- 22:23FastBlank Implementation
- 28:02Helix
- 29:13My goal for Helix
- 31:03What about my app
- 31:38Meal matching algorithm
- 32:45Set containment trick
- 34:27Better set containment trick
- 37:05Benchmark
- 38:02Scripting languages
- 40:33Conclusion
related talks
40mTurbo Rails with Rust
40mIntroducing Helix: High-Performance Ruby Made Easy
43mBending The Curve: Putting Rust in Ruby with Helix
47mRewriting a Ruby C Extension in Rust
53mRust: Reach Further!
44mBending the Curve: How Rust Helped Us Write Better Ruby
46mRust for Rubyists
34mWhat Rust can teach us about Ruby
