Fastruby iconFastrubySep 1, 2026 ~1 min source read

Ruby 4.0: ZJIT, Ruby Box, and Ractors

Ruby 4.0 was released on December 25, 2025, and three features get cited most often when people talk about it: ZJIT, Ruby Box, and a reworked Ractor API. Two of those three features are experiments you have to turn on deliberately.

Ruby 4.0: ZJIT, Ruby Box, and Ractors

Share this story

Send the public story page.

Useful takeaways from this story.

Ruby 4.0 was released on December 25, 2025, and three features get cited most often when people talk about it: ZJIT, Ruby Box, and a reworked Ractor API.

Two of those three features are experiments you have to turn on deliberately.

ZJIT ZJIT is a new just-in-time compiler, described in the Ruby 4.0.0 release announcement as the next generation of YJIT and built by the same team.

Building the complete brief

The page is ready to read now. The fuller skim-friendly version will appear here automatically.

The useful part

Ruby 4.0 was released on December 25, 2025, and three features get cited most often when people talk about it: ZJIT, Ruby Box, and a reworked Ractor API. Two of those three features are experiments you have to turn on deliberately. ZJIT ZJIT is a new just-in-time compiler, described in the Ruby 4.0.0 release announcement as the next generation of YJIT and built by the same team.

How it works

  • You enable it with the --zjit command line flag, at runtime with RubyVM::ZJIT.enable or even…

Details worth keeping

Originally appeared on The Rails Tech Debt Blog.

Keep reading in the app

Open the app view to save this story, compare related coverage, and continue from the same source.

Open in app