~/talk

What Rust can teach us about Ruby

Talkat RubyConf Colombia 2015 · 2015-10-15..10-16· [ruby, rust]
slides:none on file

Compares MRI Ruby’s runtime costs — per-object method tables and a recursive method-lookup that forces allocations — to Rust’s ahead-of-time compilation and optimizations: example Rust function compiles to ~82 lines of assembly then shrinks to ~30 after optimizations, and unused code can be eliminated entirely. Explains monomorphization as zero-cost generics, notes Ruby 1.9’s VM compile step and JRuby’s faster implementation, and cites Yehuda Katz rewriting a ~100-line C string-blank routine as a one-liner Rust gem replacement that runs faster. Uses cargo for Rust packaging.

AI-written summary · about

  1. 0:00Introduction
  2. 2:07Levels of abstraction
  3. 2:45Tension in programming
  4. 4:14Operating Systems
  5. 7:09Intuitions
  6. 8:17Japanese slide
  7. 8:51Ruby Under Microscope
  8. 9:36Ruby is Slow
  9. 10:21How Programs Get Executed
  10. 11:12Transpiling
  11. 12:58Tree structure
  12. 13:19Tokenized parsing
  13. 15:09Rust
  14. 16:46Ruby
  15. 17:12Calling methods in Ruby
  16. 19:00Demo program
  17. 20:18Assembly
  18. 21:59Complexity
  19. 22:20Data and behavior
  20. 23:11Optimizations
  21. 23:46Empty code
  22. 24:16Empty program
  23. 24:56Optimization
  24. 25:41Traits
  25. 26:54tbar
  26. 27:34monomorphization
  27. 29:09Rust with Ruby
  28. 30:50Programming languages are cool
  29. 31:04Turtles
~/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.