Runtime Briefing — Ruby 3.2 Expands YJIT and WASM Support
Ruby 3.2.0 debuted on 25 December 2022 with a rewritten YJIT engine, initial WebAssembly support, and new safety controls such as Regexp timeouts that engineering teams should evaluate for production deployments.
Executive briefing: Ruby 3.2.0 was released on , advancing JIT performance, expanding deployment targets, and strengthening runtime guardrails.
Feature highlights
- YJIT rewrite. The JIT compiler now uses Rust, adds Arm64 support, and improves warm-up performance for Rails applications.
- WASI and WebAssembly. Experimental builds target WebAssembly System Interface, enabling sandboxed Ruby execution in browsers and serverless platforms.
- Regexp timeout. New timeout options mitigate Regular Expression DoS vectors in multi-tenant services.
- Data class. A new immutable
Dataclass simplifies value-object modelling.
Adoption steps
- Benchmark key services with YJIT enabled to capture CPU reductions and assess memory overhead.
- Review security baselines and enable Regexp timeouts for user-supplied patterns.
- Experiment with WASI builds for edge and offline scenarios while tracking upstream maturity.