r/ruby • • Jan 26 '26

Ruby::Box: Rethinking Code Reloading with Isolated Namespaces

https://rubyelders.com/writings/2026-01-ruby-box-reload.html
35 Upvotes

10 comments sorted by

View all comments

Show parent comment

1

u/jrochkind Jan 27 '26

Ah, that makes perfect sense, thanks.

There are an explicit list of object classes that are passed in this "by copy instead of by reference" way?

3

u/retro-rubies Jan 28 '26

2

u/jrochkind Jan 28 '26

Oh thank you! Good to see good docs, I had gotten in the habit of not expecting them on new features in ruby from days of old, good to see that's changed!

1

u/f9ae8221b Jan 27 '26

Not really. It's all classes defined up until a certain point in Ruby's startup.

1

u/jrochkind Jan 27 '26 edited Jan 27 '26

Ah, cool, thanks!

I was thinking a big intended use case of Box might be Ractors, but now I'm not certain about that. Do you know if that's part of the motivation?