Ruby 4.0.0 Released with New Ruby Box and ZJIT Features
By
FBISurveillance
A five-star bake. Worth schmearing, sharing, saving.
Summary
Ruby 4.0.0 has been released, introducing two major new features: Ruby Box and ZJIT. Ruby Box is an experimental feature that provides isolation and separation of definitions, allowing code loaded in a box to be isolated from other boxes, including monkey patches, global/class variable changes, and library definitions. ZJIT is another new feature, though details are not provided in this excerpt. The release includes many improvements and is announced by the Ruby development team.
Key quotes
· 5 pulledWe are pleased to announce the release of Ruby 4.0.0.
Ruby 4.0 introduces 'Ruby Box' and 'ZJIT', and adds many improvements.
Ruby Box is a new (experimental) feature to provide separation about definitions.
Definitions loaded in a box are isolated in the box.
Ruby Box can isolate/separate monkey patches, changes of global/class variables, class/module definitions, and loaded native/ruby libraries from other boxes.
You might also wanna read
Dynamic Borrow-Checking in a Toy Programming Language: Implementing Rust-like Memory Safety Without Static Types
This article presents a demonstration of a toy programming language that implements borrow-checking without static type-checking. The langua
C++26 Standard Draft Finalized with Reflection, Memory Safety, Contracts, and New Concurrency Framework
The C++26 standard draft has been completed, introducing major new features including reflection capabilities that allow C++ to describe its
Understanding Fil-C: A Simplified Model of Memory-Safe C/C++ Implementation
The article presents a simplified model of Fil-C, a memory-safe implementation of C/C++. It explains that while the real Fil-C uses a compil
Sky: An Experimental Elm-Inspired Programming Language That Compiles to Go
Sky is an experimental programming language that combines Go's pragmatism with Elm's elegance to create a fullstack functional programming l
Analyzing Rust's Coherence and Orphan Rules: Ecosystem Development Challenges and Proposed Solutions
This article critiques Rust programming language's coherence rules and orphan rules, which prevent implementing traits for types defined in
SBCL Fibers: Implementation Design for Lightweight Cooperative Threads
This is a draft design document describing the implementation of lightweight userland cooperative threads (called 'fibers') for SBCL (Steel
