Menu

1 / 5

What's New in Ruby 4.0: Features & Upgrade Guide

DEV Community: rails·Asistensia·9 days ago
#UhL6hcHb
#devtorails#devto#dev#join#value
Long article (1398 words) — no AI summary yet.
Reading 0:00
15s threshold

Introduction

Ruby turned 30 in December 2025, and the core team marked it with Ruby 4.0 , released on Christmas Day as usual. The big version number is partly a celebration—there is no wave of breaking syntax—but there is plenty under the hood: Ruby Box , a new JIT called ZJIT , a reworked Ractor API, and a long list of quality-of-life improvements. In this guide, the Asistensia team—Ruby on Rails consultants who upgrade production apps for a living—explains what is new in Ruby 4.0, what can break, and how to upgrade safely.

Ruby 4.0 at a Glance

Released: December 25, 2025 (Ruby's 30th anniversary)

Headline features: Ruby Box, ZJIT, Ractor::Port

Built into core: Set and Pathname

Bundled tooling: RubyGems and Bundler 4

Official notes: Ruby 4.0.0 release announcement

Why Ruby 4.0 Matters

Faster object creation and a leaner GC with no code changes

New building blocks for isolation and parallelism (Ruby Box, Ractor::Port)

Cleaner core APIs: Set and Pathname are now built in

A handful of removals you…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.