首页›发现›编程›Steve Klabnik

Steve Klabnik

每周更新 · 约 0 篇0 人订阅en编程
steveklabnik.com

最近的文章

订阅后,这些文章和以后的新文章都会出现在你的阅读器里

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.

Agentic development basics

AI 摘要This article, part two of a series on agentic development, guides readers through starting to write code with Claude Code after initially using it read-only. The author recommends using version control, committing fully to not writing code manually on a new throwaway project, and reviewing Claude's suggested edits closely to build intuition about how the tool interprets requests. It also introduces plan mode, which lets developers collaborate with Claude on a plan before allowing it to modify files, as preparation for more advanced techniques covered later.

How to think about Gas Town

AI 摘要Steve Klabnik explains that Steve Yegge's Gas Town is essentially software for having AI agents autonomously work through a project's bug tracker, an idea he considers 'inevitable' as a logical extension of AI agents successfully completing programming tasks, built on proven Erlang concepts like supervisor trees and mailboxes. He argues the project's confusing, surreal terminology is a deliberate community-building strategy—like the Surrealist art movement—to attract like-minded experimenters while filtering out those who aren't interested. While Klabnik has concerns and hasn't tried Gas Town himself, he believes Yegge's experimentation is valuable and that 2026 is a year to challenge old assumptions about rigor and software development in the age of AI.

Getting started with Claude for software development

AI 摘要This post is a beginner's guide for software developers on using Claude as of early 2026, emphasizing that becoming productive with LLMs takes real effort—like learning vim—and that interacting with the model intentionally and respectfully, as you would a co-worker, yields better results. The author distinguishes between the free Claude web interface and the paid Claude Code tool (which is superior for real development thanks to its agentic loop) and advises choosing a flat-rate subscription plan over pay-per-API-call pricing to cap spending. As a first step, readers should start with read-only conversations about their existing code on claude.ai before graduating to code generation in Claude Code.

Thirteen years of Rust and the birth of Rue

AI 摘要On the thirteenth anniversary of his Rust journey, Steve Klabnik announces Rue, a new hobby programming language he started with the help of Claude after shifting from AI skeptic to using LLMs for most of his coding. He frames the project as an experiment to see whether a language can be built meaningfully without a large team or financial backing like Mozilla invested in Rust. He stresses that Rue is just a personal project for fun, still very janky and incomplete, with no explicit goal of building a community or growing beyond a hobby.

I see a future in jj

AI 摘要Steve Klabnik explains why he believes the jj version control system has a bright future, drawing parallels to his early 2012 decision to bet on Rust: jj has strong market fit through its Git compatibility enabling incremental adoption, a dedicated and experienced team, and a growing user base that includes Google and Oxide. He also announces that he is leaving Oxide to join a new company, ERSC, which will build a developer collaboration platform on top of jj.

A tale of two Claudes

AI 摘要The author describes two contrasting experiences with Claude Code: it repeatedly failed at the common task of setting up or upgrading Tailwind CSS 4, yet impressively built an x86_64 assembler that produces ELF executables and independently debugged a segfault caused by incorrect instruction sizes. Counterintuitively, the rarer, more obscure task went far better than the popular one. The author concludes that LLMs are neither magic nor perfect, and that sharing both successes and failures is valuable.

Is Rust faster than C?

AI 摘要Steve Klabnik explores whether Rust can be faster than C, arguing that the answer depends on what 'all things being the same' actually means. He examines factors like inline assembly, struct layout differences, social effects (such as Rust's safety checks enabling developers to attempt more ambitious parallelization, as in Mozilla's Stylo project), and compile-time versus runtime checks like bounds checking. He concludes that there's no inherent reason Rust couldn't match C's peak performance, but that in real-world engineering contexts, so many variables are involved that generalized conclusions are difficult to draw.

I am disappointed in the AI discourse

AI 摘要The author expresses frustration with the highly polarized AI discourse, prompted by seeing a post claim that ChatGPT cannot search the web at the very moment ChatGPT was successfully searching the web in his other tab. He argues that both pro-AI and anti-AI camps confidently assert easily disprovable claims—such as promises that no humans will be programming by 2026—and shares his own nuanced view that LLMs are helpful for software development but simultaneously oversold by those profiting from them and undersold by those who dislike the technology. He calls for more reasonable, fact-based discussions about both AI capabilities and ethics, and says he plans to write more about the topic in future posts.

Rust 1.0, ten years later

AI 摘要Former Rust contributor Steve Klabnik reflects on the tenth anniversary of Rust 1.0, recalling the deep anxiety the team felt before launch about whether anyone would actually use the language. He notes that those fears proved unfounded, as Rust has become a widely adopted professional language used for critical production work by major companies, with a stable release process and thriving community. Expressing gratitude for the rare privilege of spending ten years building a tool he uses daily, he acknowledges that Rust isn't perfect and more work remains.

Thoughts on Bluesky Verification

AI 摘要The article explains how Bluesky's new blue check verification works technically: a verifier writes an app.bsky.graph.verification record into a user's PDS, consistent with atproto's 'golden rule' that only you can write records to your own PDS. While anyone can technically verify anyone else, the main client only displays blue checks from 'trusted verifiers' like @bsky.app and @nytimes.com, making the feature somewhat centralized in practice, analogous to browsers shipping a bundled list of trusted root CAs. The author, who received a check himself, likens the blue check to a browser's green lock—it confirms identity rather than truthfulness—and appreciates that it's an in-protocol design whose trust model can evolve over time.

Thinking like a compiler: places and values in Rust

AI 摘要This article explains how the Rust compiler understands the statement `*pointer_of_some_kind = blah;` by walking through the classic stages of compilation: lexical analysis (tokenizing), syntactic analysis (parsing), and semantic analysis. It then covers Rust's distinction between statements and expressions, and introduces the language's 'place' and 'value' categories—Rust's analog to C's lvalues and rvalues—where the left side of an assignment is a place and the right side is a value stored into it. Finally, it touches on how the Deref trait allows smart pointers to customize the behavior of the dereference operator.

Does unsafe undermine Rust's guarantees?

AI 摘要The article argues that Rust's `unsafe` keyword does not undermine Rust's memory safety guarantees, because a language's semantics are distinct from the implementation code that carries them out, just as Ruby remains memory safe despite possible segfaults caused by interpreter bugs or C extensions. Every memory safe language necessarily relies on a small amount of trusted code—implementations interacting with hardware and foreign function interfaces—whose bugs fall outside the language's guarantees, whereas unsafe languages require trusting a large amount of code. Drawing on syllogisms, Hoare Logic, and Separation Logic, the author shows that assuming some code is safe is foundational to how we prove properties of programs, making Rust's small, explicit trusted code acceptable on a deep, not merely practical, level.

Choosing Languages

AI 摘要The author reflects on the backlash to Microsoft's decision to rewrite the TypeScript compiler in Go, arguing that language choices depend on contextual factors outsiders often don't know—such as Microsoft's choice being driven by how easily the existing codebase could be ported rather than rewritten. He criticizes the aggressive 'rewrite it in Rust' pressure surrounding the decision and recounts a formative 2013 incident in which he mocked someone for writing a grep tool in Node.js, an experience that made him recognize the toxicity of contempt culture in the Rails community and inspired him to help build a kinder Rust community. His conclusion is that people choose programming languages for valid, varied reasons, and disagreeing with someone's choice is no reason to be a jerk about it.

A Happy Day for Rust

AI 摘要The author contrasts a past Rust controversy, in which harsh criticism over Actix-web's unsafe code drove its maintainer to quit, with a recent Rustup breaking change that broke users' CI despite the team's communication efforts. This time, the community responded respectfully, and the Rustup team graciously released a new version restoring the previous behavior. The author celebrates this constructive resolution as evidence of a healthier Rust community.

When should I use String vs &str?

AI 摘要The article offers a progression of rules of thumb for choosing between Rust's two main string types, String and &str. Beginners can simply always use String and let the compiler guide them, then advance to using &str for function parameters, returning &str when the output is a substring of an argument, and only storing &str in structs when truly necessary. The author argues these levels handle virtually every real-world scenario, so developers rarely need to deliberate over the choice.