~/talk

Why are Python and Ruby slow?

Talkat DevWorld 2024 · 2024-02-29..03-01· [python, ruby]
slides:none on file

Explains why JIT and VM architecture matter with concrete numbers: the nbody benchmark shows C++ ~21 ms versus Python/Ruby >3 s (~100×), PyPy gives ~10× speedup, and a Rails monolith gains at most ~3×; demonstrates use of PyPy, Numba, CPython, V8 and native C++ extensions and why those keep hot paths fast; diagnoses the bottleneck as memory/cache behavior and the Global interpreter lock and outlines ongoing fixes like subinterpreters and GIL removal efforts plus practical tradeoffs for real systems.

AI-written summary · about

  1. 0:00Slow language myths
  2. 1:45CPU execution and caching
  3. 5:00VMs and language semantics
  4. 7:50JavaScript vs VM speed
  5. 9:40Nbody benchmark comparison
  6. 11:53Rich semantics slow projects
  7. 13:22Python/Ruby as glue code
  8. 16:17Industry targets for Python/Ruby
  9. 18:36Future performance improvements
  10. 20:02Python GIL and sub-interpreters
  11. 22:17Developer time vs speed
  12. 23:43Learning curve and maintainability of rich languages
~/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.