A tale of two Claudes

2025年6月10日

AI 摘要 AI 生成,可能有误

作者描述了使用 Claude Code 的两次截然相反的经历:它在搭建或升级 Tailwind CSS 4 这一常见任务上屡屡失败,却令人惊叹地构建了一个能生成 ELF 可执行文件的 x86_64 汇编器,并独立调试出一个由指令大小不正确导致的段错误。出人意料的是,那个更罕见、更冷门的任务反而比大众化的任务完成得好得多。作者的结论是,大语言模型(LLM)既非魔法,也非完美无缺,分享成功与失败两方面的经验都很有价值。

It was the best of times, it was the worst of times, it was the age of wisdom, it was the age of foolishness, it was the epoch of belief, it was the epoch of incredulity, it was the season of Light, it was the season of Darkness, it was the spring of hope, it was the winter of despair, we had everything before us, we had nothing before us, we were all going direct to Heaven, we were all going direct the other way—in short, the period was so far like the present period, that some of its noisiest authorities insisted on its being received, for good or for evil, in the superlative degree of comparison only.

  • Charles Dickens, A Tale of Two Cities
  • I recently had two very different experiences with Claude Code. I wanted to share them both, because I find the contrast interesting.

    继续阅读全文

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

    更多来自 Steve Klabnik

    Arguing about arguments

    AI 摘要The article surveys argument-related language features—named parameters, optional/default arguments, and function overloading—and explains why the author, a former Ruby programmer turned Rust enthusiast, has long opposed adding them to Rust, citing the intertwined complexity and obscurity they introduce at call sites. However, the author now tentatively supports named parameters alone, arguing that AI coding agents shift the cost-benefit analysis: verbosity no longer matters much when agents write the code, while the inline clarity benefits both humans and agents. They still reject optional/default arguments because they hide what is actually being passed in, and note that many practical implementation concerns remain for adding named parameters to Rust.

    So, what happened to my Claude Code series?

    AI 摘要The author explains that his Claude Code series stalled because he has been extremely busy and the AI landscape has been changing so rapidly that keeping the documentation up to date became infeasible. With new releases like Claude Fable and OpenAI's upcoming Astra making the series feel increasingly outdated, he has decided to officially end it, though he still believes his earlier posts are valuable for getting started. He stresses that this decision doesn't reflect skepticism about AI—which he believes is here to stay and transforming how people work—but simply a lack of time for this specific project.

    Too many words about DIDs

    AI 摘要This article by Steve Klabnik explains how Decentralized Identifiers (DIDs) function in the atproto protocol that underlies Bluesky, describing how DIDs are resolved into DID Documents containing cryptographic keys and service endpoints. It compares the did:web method, which depends on DNS and self-hosted servers, with Bluesky's did:plc method, which uses the plc.directory service and remains stable even if domain names change, while discussing the trust trade-offs of each approach. The author concludes that while Bluesky initially generates and controls users' keys, did:plc's key rotation feature allows motivated users to run their own PDS and fully own their identity.

    Compilers and AI 'cyber' defense

    AI 摘要Steve Klabnik describes how new AI models (Sol and Fable) repeatedly refuse to help with his Rue compiler project because its safety layers flag the project's defensive testing practices—such as fuzzers, sanitizer hooks, and deliberate crash tests—as potential cybersecurity threats. While the AI itself confirms these are false positives stemming from the work's surface similarity to exploit development, Klabnik cannot bypass the guards. He expresses concern that such safety policies may leave individual developers unable to make their software as robust as that produced by large organizations.

    The most important thing when working with LLMs

    AI 摘要The article argues that the single most important practice when working with LLMs like Claude is giving them fast, objective ways to evaluate whether their work is correct, along with guidance pointing them in the right direction when it isn't. Drawing on lessons from teaching programming to children, the author notes that computers do what you say rather than what you mean, and applies Amdahl's law to show why optimizing the slow monitoring-and-approving step of the LLM development loop yields the biggest velocity gains. Practical techniques include letting Claude auto-run builds, tests, and commands, using informative compiler errors, and trimming verbose tool output so the model receives clear success signals and actionable failure feedback.