Ruby 4.0.0 Released
66 points by havenwood
66 points by havenwood
The annotated, explained changelog from my Ruby Changes project.
As per the project goals statement:
NEWS file of the current Ruby version (with the accent on the language changes, not internal/implementation changes, of which this year were plenty);NEWS file itself (and most of blog-posts, too), the site provides full context for each change:
Love the simple, boring dev focused improvements: smarter backtraces, moving pathname and set into core, “ #instance_variables_to_inspect ”, ruby top level constant, and of course ZIT. it looks like ZIT will be the future of continual performance improvements we’ve seen with every major ruby version bump.
I still don’t really understand the concurrency story with ractors and fibers, I really wish there was something more first class like actors or goroutines/channels. But it’s fine, I use concurrent-ruby for complex things or parallel ruby for simple stuff.l
The biggest improvement I want is multi platform distribution via whatever means required, and faster bundler. Those are really hurting more as command line tools become even more important in this ai/agentic age.
I haven't written anything of substance in Ruby in 15 years; at the time I found some things about it irritating & never gave it a second chance. My taste has evolved & it'd be nice to give it another shot on a side project sometime. I'm curious if long-time Ruby users have an opinion about a nice framework/library to accompany a side project. Any CLI/TUI library, game/GUI library, or web framework that is nice to work with & feels very Ruby-as-it-is-written-in-2025? (Or is the best answer just Rails? I would ideally find something smaller?)
It really depends on what you're building. You can do a lot in vanilla Ruby, but depending on what you're building there are a wide variety of gems to support it. I'm a big fan (and I don't think this is a particularly unique take) of eschewing Rails wherever possible.
As far as Rails replacements go, many people these days use Roda, Bridgetown, or Hanami.
For CLI/TUI there's https://ttytoolkit.org/ but I didn't use it much, honestly.
These are some really lovely sounding improvements. I’ve not used Ruby in some time, but I still really enjoy reading about some old bugbears of mine being resolved.