~/talk

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

Talkat Ruby on Ice 2019 · 2019-02-22..02-24· [ruby, concurrency]
slides:none on file

TruffleRuby running on Graal/SubstrateVM uses partial evaluation and inlining to compile Ruby core and JIT across language boundaries, producing native code that hits up to ~8× Optcarrot vs Ruby 2.0, ~10× ERB, and 20–30× on some microbenchmarks. Arrays and Hashes gain thread-safe semantics by tracking when objects migrate from thread-local to shared and applying concurrent strategies (fixed vs dynamic storage) so single-thread speed stays native while scaling to tens of cores with comparable throughput to Java on NAS parallel benchmarks.

AI-written summary · about

  1. 0:00Start
  2. 9:21Cpu Benchmarks
  3. 10:05Template Rendering
  4. 12:56Ruby Virtual Machine
  5. 14:22Partial Evaluation
  6. 17:31Inlining
  7. 23:09Summary
  8. 25:06Global Lock
  9. 38:06Share Dynamic Storage
  10. 39:07Layout Lock
  11. 39:26The Nasa Nasa Parallel Benchmark
  12. 40:13Conclusion
~/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.