The Journey of Box Building
summary
Ruby 4.0 ships an experimental isolation mechanism accessible with RUBY_BOX=1 and the Ruby::Box class that loads files and extensions into per-box spaces so monkey patches and constants don’t leak across loaded app versions. It exposes box IDs in control-frame dumps (e.g. B:0003) and uses a BOX_REQUIRE flag plus an injected BoxLoader require to ensure the right box is the LoadingBox, enabling same-process blue/green tests and simpler scoped mocking.
AI-written summary · about
chapters (8)
- 0:00Introduction and speaker
- 1:54Ruby 4.0 and Ruby Box
- 7:13What is Ruby Box?
- 17:41CurrentBox management
- 27:32Frame flags and LoadingBox
- 36:27Box finding mechanism
- 37:20Personal journey to Ruby Box
- 45:09Call to explore and discuss








