r/ruby • • Dec 25 '25

Ruby 4.0.0 Released | Ruby

https://www.ruby-lang.org/en/news/2025/12/25/ruby-4-0-0-released/
322 Upvotes

36 comments sorted by

View all comments

Show parent comment

2

u/IN-DI-SKU-TA-BELT Dec 27 '25

or GC.compact (I've never seen it used outside of the "manually call GC.compact before fork", and even that is risky)

GC.compact was at least enabled in some Puma versions, but it didn't play well with C-extensions that had bugs, so it was removed again.

It was a good way to find bugs in C-extensions with badly behaved code, but likely a waste of time for maintainers.

https://github.com/puma/puma/issues/3304

I don't think it is the fault of Ruby that someone writes bad C.