~/talk

Understanding 'Hello World'

Talkat Kiwi Ruby 2017 · on Monday, 2017-10-09· [ruby, compilers-and-language-design]
links:none on file
slides:none on file

Starts from the Ruby one-liner "puts 'Hello, World!'" and traces exact behavior down to bytes and CPU: explains Unicode code points, UTF-8 byte encoding, and composite emoji, shows UTF-8 encoding steps; compiles Ruby to YARV bytecode and shows the four instructions sent to the VM; runs strace and compares ~1,200 syscalls from MRI startup to the 2 syscalls (write=1 and exit=60) made by a 64-bit Linux x86 assembly version; the assembly writes the string and exits successfully.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 1:02What is Hello World
  3. 2:28Unicode and characters
  4. 8:10UTF-8 encoding explained
  5. 13:11Hello World in assembly
  6. 17:46How computers run processes
  7. 20:37System calls in Hello World
  8. 22:21Tracing system calls
  9. 24:06How MRI Ruby works
  10. 28:25Summary and conclusion
~/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.