Racket v9.2 现已发布
Racket v9.2 is now available

原始链接: https://blog.racket-lang.org/2026/05/racket-v9-2.html

Racket v9.2 现已开放下载。此版本包含几项显著更新,内容如下: * **模式匹配**:`match` 语法现对涉及 `...` 的非线性模式执行更严格的相等性检查,并会拒绝不一致的变量使用,这可能需要更新现有代码。 * **Typed Racket**:对 `asin` 和 `acos` 类型安全性的改进可能会导致旧代码出现编译时错误。多态结构体类型现在可以更清晰地显示类型参数。 * **核心与 FFI**:新增了 `#%foreign-inline` 核心语法,并包含对未来“ffi2”接口的内部支持。若干核心语法(如 `member`、`cond` 等)经过重构,以提高一致性。 * **特性与标准**:Racket 现已支持 Unicode 17.0。其他更新包括改进了 `terminal-file-position` 功能,增强了对跨阶段持久模块中引用数据的支持,并优化了 Scribble 文档和步进器的显示效果。 平台各处修复了多个错误,包括针对作为 `.dmg` 文件分发的 `big-bang` 程序的修复。建议用户查阅完整的发行说明:https://blog.racket-lang.org/2026/05/racket-v9-2.html 。开发团队感谢为此版本做出贡献的广大社区成员。

``` Hacker News 最新 | 过往 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 Racket v9.2 现已发布 (racket-lang.org) 20 分,由 spdegabrielle 发布于 1 小时前 | 隐藏 | 过往 | 收藏 | 1 条评论 帮助 spdegabrielle 1 小时前 [–] Racket——面向语言的编程语言——9.2 版本现可从 https://download.racket-lang.org 下载。 查看 https://blog.racket-lang.org/2026/05/racket-v9-2.html 获取发布公告和亮点。 如果您正在使用 rackup,可以通过 `rackup upgrade` 进行升级。 别忘了使用 raco pkg migrate 9.1 迁移您的软件包。 回复 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 加入 YC | 联系 搜索: ```
相关文章

原文

posted by Stephen De Gabrielle and John Clements


We are pleased to announce Racket v9.2 is now available from https://download.racket-lang.org/.

As of this release:

  • The match form checks that when non-linear patterns (patterns where the same variable is used multiple times) are used with ..., the two parts of the matched value actually are equal. Additionally, match rejects non-linear patterns where one use of the variable is used with ... and another is not. This repair could cause existing code to fail.
  • Typed Racket’s types for the asin and acos procedures correctly handle situations where the function produces a complex number, avoiding unsound results that were previously possible. This repair could cause existing code to fail at compile time.
  • The #%foreign-inline core syntactic form provides unsafe access to facilities provided at the linklet layer by a Racket implementation. This means that any code that handles all core forms by enumeration will need to be updated.
  • Unicode 17.0 is used for character and string operations.
  • This release includes internal support for a more static “ffi2” foreign interface (to be used in a future package).
  • The terminal-file-position function counts bytes written to ports connected to a terminal, such as stdin and stderr.
  • Cross-phase persistent modules allow more types of quoted data.
  • The implementations of member, memw, when, unless, let/ec, and cond are rewritten to use only racket/kernel syntax
  • The impersonator-property-predicate-procedure? function identifies procedures created by make-impersonator-property.
  • In Typed Racket, polymorphic struct types are printed using type arguments (e.g., (Array Byte)) rather than exposing an internal representation.
  • The stepper’s display of numbers better matches the language settings.
  • Scribble documents that do not use the Racket-manual style get an initial-scale of 1.0, instead of the manual style’s 0.8, but this can be configured using the initial-scale property.
  • By default, margin notes appear inline for narrow displays in all styles, not just in the Racket-manual style.
  • Big-bang programs distributed as .dmg files correctly handle the close-on-stop feature.
  • There are many other repairs and documentation improvements!

Thank you

The following people contributed to this release:

Alexander Shopov, Alexis King, Asilo, Bert De Ketelaere, Bob Burger, Bogdan Popa, Chung-chieh Shan, François-René Rideau, Gustavo Massaccesi, Ilya Klyuchnikov, Jade Sailor, Jamie Taylor, John Clements, Jonathan Simpson, LS_Hower, Matthew Flatt, Matthias Felleisen, Mike Sperber, Pavel Panchekha, Philippe Meunier, RMOlive, Robby Findler, Roman Klochkov, Sam Tobin-Hochstadt, Shu-Hung You, Stephen de Gabrielle, Tejas Sanap, Vincent Lee, and Wing Hei Chan.

Racket is a community developed open source project and we welcome new contributors. See racket/README.md to learn how you can be a part of this amazing project.

Feedback Welcome

Questions and discussion welcome at the Racket community on Discourse or Discord.

Please share

If you can - please help get the word out to users and platform specific repo packagers

Racket - the Language-Oriented Programming Language - version 9.2 is now available from https://download.racket-lang.org

See https://blog.racket-lang.org/2026/05/racket-v9-2.html for the release announcement and highlights.
联系我们 contact @ memedata.com