DEV Community

Germán Alberto Gimenez Silva
Germán Alberto Gimenez Silva

Posted on • Originally published at rubystacknews.com on

🚀 Ruby 4.0.0 Preview2 is Here!

November 24, 2025

Ruby keeps evolving, and the 4.0.0-preview2 release is packed with exciting changes. If you love clean code, emojis, and a little bit of magic in your programming, this one’s for you.

Article content

What’s New?

💎 Nil Gets Smarter

  • nil.to_a no longer surprises you, just like nil.to_hash. Less magic, more clarity.

🔗 Bindings Refined

  • Numbered parameters are gone from Binding#local_variables. Stricter, clearer, easier to maintain.

📜 Unicode & Emoji Upgrade

  • Unicode 17.0.0 & Emoji 17.0! Regex loves it too. More characters, more fun for global apps.

💡 Thinking about upgrading your Ruby project?

If your project is still on an older Ruby version, now is the perfect time to modernize and take advantage of all the improvements in Ruby 4.0!🚀

Send me a message and we can plan the procedure to safely upgrade your project to the latest, most modern version: Get in touch

Ruby #Upgrade #Ruby4 #SoftwareDevelopment #Modernization #DevCommunity

⏱ IO & Core Improvements

  • IO.select now accepts Float::INFINITY for infinite patience in your code.
  • Standard libraries updated: ostruct, pstore, benchmark, logger, irb, and more.

⚡ JIT & Performance Tweaks

  • YJIT : new memory and call threshold options.
  • ZJIT : experimental, method-based JIT.
  • RJIT : removed from core, moved to its own repo.

💡 Thinking about upgrading your Ruby project?

If your project is still on an older Ruby version, now is the perfect time to modernize and take advantage of all the improvements in Ruby 4.0! 🚀

Send me a message and we can plan the procedure to safely upgrade your project to the latest, most modern version: Get in touch

Ruby #Upgrade #Ruby4 #SoftwareDevelopment #Modernization #DevCommunity


📊 Fun Fact

  • Since Ruby 3.4.0, 3607 files changed , 197k insertions, 285k deletions. A massive under-the-hood makeover!

Ruby 4 is cleaner, faster, more expressive, and emoji-friendly. Ready to try it? Download here and experiment with the future of Ruby!

💬 Are you excited about Ruby 4? Which new feature will you try first?

Article content

Ruby #Programming #DevCommunity #SoftwareDevelopment #Ruby4 #CodingFun

Top comments (0)