~/talk

Everything You Know About the GIL is Wrong

Talkat RubyConf 2015 · 2015-11-15..11-17· [ruby]
slides:none on file

Claim: the GIL doesn't stop Ruby from doing useful concurrency; benchmarks show a 10x speedup on I/O-bound tasks by firing 20 Concurrent Ruby futures into a thread pool, with MRI beating JRuby and Rubinius on that case. Demos include serial vs concurrent benchmarks and a contrived read‑update race that exposes that the GIL protects the interpreter not user code. Conclusion: Ruby handles concurrent I/O well but MRI's GIL prevents CPU-bound parallelism.

AI-written summary · about

  1. 0:00Intro
  2. 1:40Creator - Concurrent Ruby
  3. 3:26According to the Internet
  4. 9:38THE INTERNET JUST LIED TO ME
  5. 11:13Channeling my inner Rob Pike
  6. 12:05Concurrency vs. Parallelism
  7. 14:11What is a thread?
  8. 16:19Multithreading in the OS
  9. 17:20Getting back to the GIL
  10. 19:48Implications of the GIL Only one unit of Ruby code can execute at any
  11. 20:56The obligatory word definition
  12. 23:17Correct vs. safe
  13. 25:12Ruby is selfish
  14. 27:11Ruby is thread safe, your code isn't
  15. 27:47Memory model
  16. 36:28Lack of knowledge
  17. 37:51Concurrency in Ruby isn't perfect
  18. 40:28Tools of the trade
  19. 44:07Summary
~/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.