Ruby 4.0.0 Preview2 Released
4 days ago
- #JIT
- #Ruby
- #Programming
- Ruby 4.0.0-preview2 released with Unicode 17.0.0 and Emoji 17.0 updates.
- Language changes include `nil` no longer calling `nil.to_a`.
- Core class updates: `Binding` no longer includes numbered parameters in `local_variables`.
- `IO.select` now accepts `Float::INFINITY` as a timeout argument.
- Standard library updates include new versions of ostruct, pstore, benchmark, logger, rdoc, win32ole, irb, reline, readline, and fiddle.
- JIT updates: YJIT adds `invalidate_everything` to stats and new options for `RubyVM::YJIT.enable`.
- ZJIT introduced as an experimental method-based JIT compiler (not yet optimized for benchmarks).
- RJIT removed; implementation moved to ruby/rjit repository.
- Significant changes: 3607 files changed, 197451 insertions, 285607 deletions since Ruby 3.4.0.
- Download links provided for Ruby 4.0.0-preview2 in tar.gz, tar.xz, and zip formats.