Ruby Core Updates: Boot Time and the Struct Layout Trade-off

Ruby's core team shipped a major startup performance win by lazy-loading error gems, while a cluster of changes reworked struct and range internals to lean on the new shape-based object layout. Several smaller fixes round out a day focused on correctness at the edges: parser buffers, socket internals, and rubygems file placement.

Duration: PT2M30S

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-07-21T13:10:02Z
  • Audio duration: PT2M30S

Transcript excerpt

This excerpt keeps the crawler page concise. Listen to the episode or use the RSS feed for the full update.

Good morning. It's July 21st, and today's Ruby core activity centers on two things: startup speed, and a quiet architectural shift in how objects are laid out in memory.

Start with performance. Hiroshi Shibata's PR 16371 defers loading error_highlight, did_you_mean, and syntax_suggest until an exception actually needs to display a detailed message. That takes Ruby's boot time from 114 milliseconds down to 30 on a typical Mac setup — matching what you'd get from manually disabling…

The second theme is object layout. Jean Boussier's PR 17942 changes RStruct to align with the extended shape ID layout, which means structs now always reserve space for instance variables, even if they're never used. It's a deliberate memory trade-off, justified by the fact that struct ivars aren't actually rare in…

Smaller but notable: Shugo Maeda's PR 17980 closes a token-buffer edge case in the parser where a terminator could write one byte past the buffer — not yet triggered by any caller, but the kind of latent bug worth fixing before it is. And Nobu's PR 17985 and 17987 clean up type safety in Ripper's DSL and socket…

On the tooling side, Sutou Kouhei fixed duplicate gdbinit loading for out-of-source…

W…

Nearby episodes from Ruby Core Updates

  1. JIT Correctness and a Same-Day Revert
  2. ZJIT's Speed Push and a Windows Cleanup Wave
  3. Memory Safety Sweep
  4. Paths, Quotes, and Longjmp Landmines
  5. Weekly Recap - JIT Maturity and Memory Safety
  6. Correctness Fixes Take Center Stage
  7. Edge Case Cleanup Across the Interpreter
  8. Fiber Safety and Runtime Introspection