~/talk

Rewriting a Ruby C Extension in Rust

Talkat Full Stack Fest 2015 · 2015-09-01..09-05· [rust, ruby]
slides:none on file

Rewriting a Ruby C extension in Rust demonstrates that a straightforward Rust implementation of Sam Saffron’s fast_blank outperforms the hand‑written C extension and that a one‑liner style Rust port can be faster than the C gem. It shows the Skylight agent prototype moving heavy instrumentation into Rust, measures a surprising real‑world hotspot (~4% of request time) improved, and explains why no heap allocations, static dispatch and inlining, and zero‑cost abstractions produce C‑level assembly while keeping high‑level code.

AI-written summary · about

  1. 0:00Start
  2. 12:22Naive Rust Implementation
  3. 13:44Abstractions
  4. 16:31How Does a Method Work in Rust
  5. 21:36Allocation
  6. 23:47Heap Allocation
  7. 24:26Stack Allocation
  8. 38:52Zero Cost Abstractions
  9. 39:43The Closure Syntax in Rust
  10. 40:58Difference between Rust and Ruby
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.