Ruby 4.0

Ruby 4.0 is a milestone release focusing on runtime evolution, isolation via Ruby::Box, and improved Ractor concurrency.

Programming Containers Kubernetes
License: GPL-2.0

Available Platforms

Docker Hub

View on platform

Kubernetes

View on platform

OpenShift

View on platform

Rancher

View on platform

Details

Ruby 4.0 is a milestone release marking the 30th anniversary of the language, focusing on runtime evolution and concurrency. A major highlight is the introduction of Ruby::Box, which provides isolated, container-like execution environments in a single process. This version also features the experimental method-based ZJIT compiler and an optimized, production-ready Ractor concurrency API. Additionally, the widely used Set and Pathname libraries are now promoted to core classes for enhanced, out-of-the-box performance.