首页›Ruby News›文章

Ruby 4.1.0-preview1 Released

2026年10月12日

AI 摘要 AI 生成,可能有误

Ruby 4.1.0-preview1 已经发布,引入了 Ractor 本地垃圾回收功能,让每个 Ractor 可以在不停止其他 Ractor 的情况下回收自己的堆内存,使 Ractor 更接近脱离实验状态,同时还带来了对 YJIT 的 Windows 支持以及新的 autoload_relative 方法。此次发布包含众多语言和核心类的变更,例如 Integer#bit_count、Module#descendants、Range#clamp、冻结的 Regexp 实例、新的 String 位运算和打包格式,以及对标准库的更新。若干捆绑 gem 被提升(prism、tsort、win32-registry)或被移除(net-ftp、net-pop),并且许多默认 gem 得到了更新。

We are pleased to announce the release of Ruby 4.1.0-preview1. Ruby 4.1 introduces Ractor local GC, Windows support of YJIT, autoload_relative, and adds many improvements.

Ractor improvements

A lot of work has gone into making Ractors more stable, performant, and usable. These improvements bring Ractor implementation closer to leaving experimental status.

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 Ruby News

Security advisories: multiple vulnerabilities in Regexp and String case conversion

AI 摘要Seven vulnerabilities have been discovered in Ruby's regular expression engine and string case conversion, some of which have proof-of-concept exploits that can trigger remote code execution. The flaws affect Ruby 3.3.13 and earlier, 3.4.0 through 3.4.12, and 4.0.0 through 4.0.9, and have been fixed in Ruby 4.0.10, 3.4.13, and 3.3.14. Users are strongly recommended to upgrade, though CVE identifiers have not yet been assigned, so the advisories use GitHub Security Advisory (GHSA) identifiers.

Ruby 3.3.14 Released

AI 摘要Ruby 3.3.14 has been released, including security fixes for multiple vulnerabilities in Regexp and String case conversion. Starting with this release, Ruby 3.3 will also receive backported bug fixes rather than security fixes only, so the phase has been renamed from the security maintenance phase to the legacy maintenance phase, with official support still scheduled to end at the end of March 2027. The release includes download links and checksums for the tar.gz, tar.xz, and zip packages, with further details available on GitHub releases.

Ruby 3.4.13 Released

AI 摘要Ruby 3.4.13 has been released, including security fixes for multiple vulnerabilities in Regexp and String case conversion, along with other bug fixes. Download links and checksums for the tar.gz, tar.xz, and zip packages are provided. The release thanks the many committers, developers, and users who contributed bug reports.

Ruby 4.0.10 Released

AI 摘要Ruby 4.0.10 has been released, featuring security fixes for multiple vulnerabilities in Regexp and String case conversion, along with additional bug fixes. Download links for the tar.gz, tar.xz, and zip packages are provided with checksum details. The release credits many committers, developers, and users who contributed bug reports.

Ruby 3.3.13 Released

AI 摘要Ruby 3.3.13 has been released with security fixes, including an update to the default resolv gem (version 0.3.2) that addresses CVE-2026-80212 and CVE-2026-80213. As an exception during Ruby 3.3's security maintenance phase, this release also includes Regexp compilation bug fixes related to several GitLab CVEs (CVE-2026-89078, CVE-2026-93577, CVE-2026-97229, and CVE-2026-110264). Further details are available on the GitHub releases page.