~/talk

Namespace, What and Why

Talkat RubyKaigi 2024 · 2024-05-15..05-17· [ruby]
slides:none on file

Proposal implements Namespace on Read for Ruby so you can load gems into isolated module-based spaces and run conflicting versions side-by-side. It modifies C internals (class_alloc) and uses a copy-on-write classext_t to give builtins per-namespace method tables, constants, and supers. Native extensions are loaded by copying files to bypass dlopen and use RTLD_LOCAL. Live demo loads App A with oj 3.15/msgpack 1.6/activesupport 6.1 while root app uses newer gems; intermittent SEGV appears about one run in ten.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 3:37What is namespace on read
  3. 7:41Demo of namespace isolation
  4. 10:27Why namespaces solve conflicts
  5. 14:03Namespace on read vs on write
  6. 16:04Implementation overview
  7. 25:24How namespaces work technically
  8. 25:47Future use cases and ideas
  9. 30:14Current status and next steps
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.