~/talk

Ruby Systems Programming

Talkat Cascadia Ruby 2013 · 2013-10-14..10-15· [ruby, web-performance]
slides:none on file

Explains kernel vs user mode, shows how Linux syscalls are made, and demonstrates that a single web request can trigger 120,000 syscalls. Uses strace, the procfs, and BSD sockets via the Ruby stdlib socket API, inspects file descriptors and io.select, and compares unix syscall tables. Builds a 23-line Ruby HTTP server that serves files (it generally works in demo but has obvious security holes and is not production-ready).

AI-written summary · about

  1. 0:00Introduction
  2. 1:27Defining system software
  3. 3:08Kernel versus user mode
  4. 4:22Capabilities in user mode
  5. 5:53Understanding system calls
  6. 7:17The syscall table
  7. 8:22How syscalls are made
  8. 10:32File descriptors
  9. 12:28System file descriptors
  10. 14:13History of sockets
  11. 17:01The socket API
  12. 18:51HTTP protocol overview
  13. 20:46Building a Ruby web server
  14. 24:15Demo and real-world usage
  15. 26:41Conclusion and resources
~/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.