~/talk

Rails 4 and the Future of Web

Talkat Aloha RubyConf 2012 · 2012-10-08..10-09· [ruby-on-rails, web-platform]
slides:none on file

MRI still has a global VM lock so CPU-bound Fibonacci threads show no speedup (about 5.7s on the demo machine) while IO-bound threads halve latency by releasing the lock; Rails 4 removes config.threadsafe by preloading and caching classes, disables dependency loading and strips the rack lock so threaded servers (Puma or multiprocess setups) actually run concurrently; action_controller_live exposes a streaming IO, demonstrated by a live-reload using server-sent events, fs_events and a DRb hook inside the same process.

AI-written summary · about

  1. 0:00Start
  2. 10:32Recursive Fib()
  3. 12:16What do we do?
  4. 12:48Slow Server
  5. 15:06GVL Magic
  6. 19:59threadsafe!
  7. 22:59Rack::Lock
  8. 28:36check then act
  9. 29:20Fix #1 (eager init)
  10. 29:47Fix #2 (locking)
  11. 30:24Lazy Object
  12. 30:35Maintain API
  13. 31:38Fix #1 (lock)
  14. 33:30Global Variables
  15. 34:01Class methods
  16. 36:03Rack Encourages Buffering
  17. 37:26Example
  18. 38:20Rack API
  19. 39:08Threaded action
  20. 39:54Blocking Buffer
  21. 40:41View Source
  22. 40:58Control Output
  23. 41:54SSE Response
  24. 42:18Client Side
  25. 44:04FS Events
~/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.