Ruby Core Updates: ZJIT Optimization and WeakMap Bug Fix
Two pull requests were merged including ZJIT compiler improvements and a WeakMap assignment bug fix, along with updates to JSON generation, Prism parser fixes, and zlib security patches.
Duration: PT1M44S
Episode overview
This episode is a short developer briefing from Ruby Core Updates.
It explains recent repository work in plain language.
- Show: Ruby Core Updates
- Published: 2026-03-05T11:10:38Z
- Audio duration: PT1M44S
Transcript excerpt
This excerpt keeps the crawler page concise. Listen to the episode or use the RSS feed for the full update.
Good morning. This is Ruby Core Updates for March 5th, 2026.
Max Bernstein merged improvements to the ZJIT compiler, adding new operand iteration methods to the Instruction class. The changes include for_each_operand, for_each_operand_mut, and try_for_each_operand methods backed by a shared macro implementation. This refactoring replaces the old worklist_traverse_single_insn…
Andrii Furmanets merged a fix for ObjectSpace WeakMap's assignment operator. Previously, calling WeakMap's bracket-equals method directly returned nil instead of the assigned value, inconsistent with both its documentation and the WeakKeyMap implementation. The fix ensures WeakMap now properly returns the assigned…
Additional updates include Jean Boussier's reimplementation of JSON's to_json methods in Ruby rather than C, moving logic from the generator extension to the common library. The Prism parser saw a revert of infix operator restrictions on command calls, with Earlopain adding regression tests to ensure compatibility…
Security improvements came through Nobuyoshi Nakada's fix for a buffer overflow in zlib's ungetc function, accompanied by test coverage. The zlib gem was subsequently bumped to version 3.2.3.
Nearby episodes from Ruby Core Updates
- Weekly Recap - JIT Optimizations and Bug Fixes
- JSON Gem Security and Release Update
- ZJIT Performance Enhancements and Bug Fixes
- ZJIT Optimizations and Prism Parser Improvements
- JIT Improvements and New ENV Method
- ZJIT Performance Optimizations
- Parser Refactoring and Lrama 0.8.0
- GitHub Actions Security Hardening