core.async 1.9.829-alpha2 现已支持 Java 虚拟线程(Java 21+),在虚拟线程上重新实现了 go 块,同时保留其现有的停放(parking)语义,从而无需再进行基于分析器的控制反转重写,使加载和编译更快,且无需更改任何代码。io 线程执行上下文现在也运行在虚拟线程上,并且新增的 clojure.core.async.vthreads 系统属性允许用户通过 unset、target 或 avoid 设置来控制虚拟线程的使用,而旧的 IOC 编译的 go 块仍保持兼容。维护者正在 Clojurians Slack 的 #core-async 频道征求关于性能、延迟、吞吐量和堆内存消耗的反馈。
core.async 1.9.829-alpha2 is now available, which adds support for Java virtual threads (ASYNC-262).
Threads must block while waiting on I/O operations to complete. "Parking" allows the platform to unmount and free the underlying thread resource while waiting. This allows users to write "normal" straight line code (without callbacks) while consuming fewer platform resources. Clojure core.async go blocks until now used an analyzer to rewrite code with inversion of control specifically for channel parking operations (the ! async ops like >!). Other blocking operations (!! channel ops or arbitrary I/O ops) are not allowed.
Since Java 21, virtual threads implement I/O parking in the Java platform itself - that capability is a superset of what go blocks provide by supporting all blocking I/O operations. Because virtual threads are a superset of go block capabilities, go blocks can now be reimplemented using virtual threads without changing their semantics.
继续阅读全文
为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。
AI 摘要Clojure 1.12.8 is now available, replacing the 1.12.7 change related to a serialization vulnerability (GHSA-x4c4-68gp-vrhc) where Clojure function classes could be exploited when reading serialized Java data from untrusted streams. Function serialization is now always allowed, while deserialization is controlled by the new system property clojure.deserialize.code and the dynamic var *deserialize-code*, which can allow it, block it with an IOException, or throw a RuntimeException when set to :unknown to alert developers of unprotected code paths.
AI 摘要Clojure 1.12.7 has been released, addressing a security vulnerability (GHSA-x4c4-68gp-vrhc) where Clojure function classes could be exploited alongside standard JDK classes to execute arbitrary code during deserialization of untrusted serialized Java data. As of this version, Clojure functions throw exceptions on serialization and deserialization by default, with the system property -Dclojure.serializable.fns=true available to explicitly allow these operations in known-safe contexts.
AI 摘要The annual State of Clojure 2026 Survey is now open, inviting users of Clojure, ClojureScript, or other Clojure dialects to participate. Running since 2010, the survey is the main barometer of the Clojure community's views and daily practices, takes only a few minutes, and closes on November 30, with results to be released toward the end of the year.
AI 摘要Clojure 1.13.0-alpha11 has been released, with download and usage information available on the Downloads page. This version fixes CLJ-2990, a bug where :req! on a nested map with :missing binds an internal Object. Users can try it by adding the version to their deps.edn or starting a REPL with the Clojure CLI.
AI 摘要Clojure 1.13.0-alpha10 has been released, featuring destructuring changes such as a new :req! directive to make top-level bindings required and :namespaced/keys directives that now qualify unqualified keywords (a potentially breaking change). The release also includes inliner updates enabling conditional inlining that can return nil, inlining of get-in with literal key vectors, and preservation of type hint metadata on macro invocations. Users can try it by updating their deps.edn dependencies or starting a REPL with the Clojure CLI.