~/talk

Why Ruby Isn't Slow

Talkat Strange Loop 2013 · 2013-09-18..09-20· [ruby, ruby-on-rails]
slides:none on file

Claim: Ruby can be fast when its VM eliminates hash lookups and boxing rather than changing the language. Implementation: a VM called Topaz built on RPython/PyPy technology uses a tracing JIT with guards, promotion and quasi-immutability to make method dispatch, constant lookup and primitive allocation cheap. Results: microbenchmarks show ~2x–500x speedups, thousands of Ruby specs pass, but Rails/Chef compatibility and full stdlib/encoding support remain incomplete.

AI-written summary · about

  1. 0:00Introduction
  2. 0:33Ruby is slow
  3. 1:16CPU bound tasks
  4. 2:11Common answers
  5. 3:16Ruby can be fast
  6. 3:26Why is Ruby slow
  7. 3:53Indirect function calls
  8. 5:30Fast Ruby
  9. 5:48Our Python
  10. 8:17Our Function
  11. 9:43Dynamic Languages
  12. 10:32Ruby Object Model
  13. 11:50Python Primitives
  14. 12:04Lightability
  15. 13:07Promotion
  16. 14:13Quasiimmutability
  17. 15:29Building a system
  18. 15:41Optimized version
  19. 16:21Sending methods
  20. 17:45Fine method
  21. 19:08Three instructions
  22. 19:41Topaz
  23. 20:21Constants
  24. 21:45Links
  25. 22:15Benchmark Results
  26. 24:45Complexity
  27. 25:35C Extensions
  28. 27:31Hints
  29. 31:54Cutting Corners
  30. 33:46Missing Parts
~/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.