首页›Baby Steps›文章

What agents mean for Rust (and vice versa)

2026年10月14日

AI 摘要 AI 生成,可能有误

作者作为一名编程语言设计师,反思了大语言模型(LLM)的兴起如何颠覆了历来稳定的编程活动,并坦言这既带来了令人兴奋之处,也引发了关乎生存的忧虑。他的结论是,人类在编程中仍将扮演重要角色,语言设计依然具有重要意义;他认为 Rust 已经非常适合智能体式(agentic)开发,尽管还有进一步改进的空间。这篇文章与他在 REASE/SPLASH 上所做的一场演讲相配套,并提到了相关的演讲,包括关于 Rust 愿景文档(Rust Vision Doc)的工作以及在 IWACO 上展示的研究。

Me, calmly assessing the implications of LLMs for programming language design(ers).

As someone who has made a career of programming language design, I definitely have moments of existential dread about the rise of LLMs. I started coding in 5th grade on an x861 that ran at 5MHz, had something like a 5MB hard-disk and 512K of RAM2. Computers were really, really different back then. But honestly, programming wasn’t. For all the advances in IDEs and programming languages and so forth, the basic act of entering code into a file has remained surprisingly constant3 – right up until a few years ago, when everything kinda turned on its head. That’s been exciting and empowering at times4 but also scary and disorienting. Will my skills in programming matter? What about my skills in programming language design (such as they are)? This blog post is my attempt to answer those questions.

So as not to keep you in suspense, let me just give you the conclusion. In short, yes, I believe there will still be a role for humans in programming. And yes, I think that programming language design is still relevant. And, naturally, I also happen to think Rust is a really good fit for agentic development – but that’s not to say we can’t make it a better fit. And that’s what this post is ultimately about: what makes Rust and agentic development work well, and where we could double down on those strengths.

继续阅读全文

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

更多来自 Baby Steps

'Trust but verify'; or, 'the correctness ratchet'

AI 摘要The article describes a 'trust but verify' technique for agentic development, where an agent making a decision that can't be mechanically checked must produce an evidence file documenting its inputs and rationale. CI gates then cheaply and deterministically verify that these evidence files exist and that the inputs are accurate, so any input change forces the agent to revalidate its reasoning. Over time, other agents can re-examine the documented rationale and catch overlooked issues, creating a 'correctness ratchet' that strengthens as agents improve.

Why 'externalized' proofs of cyclic trait impls does not work

AI 摘要This post compares two approaches to handling supertraits: modular proofs, where the trait impl itself establishes that all supertraits hold, versus external proofs, where the code using the impl is responsible for proving the supertraits. The author explains that although modular proofs previously seemed unworkable, external proofs are incompatible with Rust as designed, making modular proofs the only viable option for supporting cyclic trait impls. The post also provides background on what proofs mean in this context.

Cylic trait implementations: motivation

AI 摘要The author announces a blog post series exploring cyclic trait implementations, a problem they have studied for years, with the hope of eventually producing a design suitable for an RFC. This introductory post focuses on the distinction between "internal" and "external" proofs and aims to motivate why the problem matters, connecting abstract ideas to concrete Rust examples.

Battery packs: Let's talk about crates, baby

AI 摘要The blog post introduces 'battery packs,' a concept of curated sets of Rust crates organized around common themes, such as building CLIs, backend web services, embedded development, and error handling. The author notes this is just the beginning, and a key part of the design is that anyone can create their own battery pack.

Only Bounds

AI 摘要The article introduces 'only bounds,' a feature currently being designed and developed by the Arm team as part of the Sized Hierarchy and Scalable Vector Extension project for Rust. The author describes it as potentially one of the most impactful yet little-known changes to the language. The post aims to explore the feature and address a specific design question about the scope of bounds, after first providing some background context.