~/talk

Parallel and Thread-Safe Ruby at High-Speed with TruffleRuby

Talkat RubyKaigi 2018 · 2018-05-31..06-02· [ruby, concurrency]
slides:none on file

Claim: TruffleRuby + Graal JIT compiles Ruby down via partial evaluation and inlining to remove allocations and hot paths, producing native code that hits ~170–300 FPS on optcarrot (demo: 28 FPS → ~200 FPS, ~7×), and microbenchmarks 10–30× over CRuby. Engine builds shared fixed storage and shared dynamic storage for arrays/hashes so index reads scale to ~44 cores (near 44×) and reach ~30 billion element reads/sec; dynamic operations use fine-grained locks so single-threaded cost is negligible and parallel safety holds.

AI-written summary · about

  1. 0:00Introduction and speaker
  2. 1:02What is TruffleRuby
  3. 2:28Ruby 3x3 performance goals
  4. 3:09OptCarrot benchmark demo
  5. 7:57TruffleRuby performance results
  6. 10:49How TruffleRuby achieves speed
  7. 23:55Parallel and thread-safe Ruby
  8. 24:16Challenges with Ruby threads
  9. 33:08Thread-safe collections in Ruby
  10. 36:00Sharing-based synchronization
  11. 41:08Concurrent array strategies
  12. 44:42TruffleRuby conclusions
  13. 46:07General conclusions
  14. 47:11Future of TruffleRuby
  15. 49:01Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.