首页›发现›编程›Marc Brooker

Marc Brooker

RSS运行正常
访问网站
文章数101
更新频率每月约 2.2 篇
最近抓取24分钟前
订阅方式RSS
订阅地址https://brooker.co.za/blog/rss.xml

最近的文章

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

A Correctness Approach for Modern Systems Software

AI 摘要The author presents a rigorous correctness methodology for systems software, demonstrated through a Rust distributed lock (lease) client backed by Aurora DSQL or DynamoDB, claiming it has the lowest bug density of any code written in their 30-year career despite never reading the implementation. The approach combines misuse-resistant API design, a formal spec, safe Rust, machine-checked proofs via Aeneas/Lean, model checking with Veil, refinement proofs, deterministic simulation with runtime monitoring, mutation testing, and conventional unit and integration testing. The author argues this level of rigor is justified for foundational, high-leverage components and that agentic coding tools have made advanced formal verification techniques accessible to non-experts at relatively low cost.

Traffic mix matters

AI 摘要Reacting to Microsoft's preliminary report on a recent M365 outage, which noted that lab load testing missed a latent issue because of differences in traffic mix, the author explains why workload composition is critical to performance testing. Using simple simulators of lock-based systems and cache-backed databases, they show that skewed key distributions (Zipf) can shift throughput by orders of magnitude in either direction—hurting it under lock contention while helping it through cache hits. The takeaway is that load tests and benchmarks are only meaningful when their traffic mix closely matches real production traffic.

What does it mean to understand what we built?

AI 摘要The author reflects on the 'No AI Slop Manifesto' and its value of 'understanding over speed,' arguing that its definition of understanding is too focused on code. They contend that truly important properties of software—such as correctness guarantees, user benefits, and emergent behaviors like metastable failures—cannot be grasped by reading code alone, and software engineering still lacks system-level analysis tools comparable to Bode plots or Nyquist criteria in other fields. The author sees AI as a powerful tool for shifting focus from code-level scrutiny to understanding systems as built, though they wish the manifesto had thought more deeply about what being 'for understanding' really means.

Animations for System Builders: Metastability and Lost Writes

AI 摘要The article advocates building animations as a technique for system builders to develop intuition about how systems work and fail, focusing on metastability and lost writes. Using traces captured from real test environments, the author presents concrete examples—including a Raft cluster losing writes when a member's storage lies about fsync(), Postgres and etcd entering metastable states after load spikes, and garbage collection in etcd creating a self-reinforcing degradation loop—to show these failures occur even in widely-used, production-proven software. The animations were generated with Kiro and KiroCrew, mostly with Opus 5.5.

Strands Decider: Why Not an Encoder?

AI 摘要The author explains why the strands-decider-2B model is a modified decoder LLM rather than an encoder like BERT, by benchmarking five designs including T5Gemma-based encoder-only and encoder-decoder variants against their decoder-based v19. Encoder-only models matched or slightly beat the decoder on accuracy with roughly half the latency (~35ms vs 65ms), but scaled worse with longer prompts due to quadratic attention costs, and the unmasked encoder variant showed weaker generalization on the main eval benchmarks. The author concludes that neither architecture is a clear winner at this scale and that the experiment is too confounded to definitively settle the decoder-versus-encoder question.

Small Decisions: Engineering a Leading Model

AI 摘要The author, primarily an AI infrastructure and safety engineer, set out to learn model building by creating Hobson, a roughly 2-billion-parameter calibrated decision model that replaces the LM head of a pre-trained Qwen3.5-2B torso with a small pointer head, fine-tuned via LoRA and self-distillation on ~115k examples. The model achieved top-tier accuracy and calibration on JevBench in its size class, with low latency (~100ms p50 on a 3090), though generalization to unseen tasks remains a challenge and future work includes harder synthetic data and reinforcement learning. Key lessons were that head rearchitecture, a modern torso, and teacher-verified data drove the biggest gains, and that AI assistants made learning this domain far easier than it would have been a year or two ago.

Lorenz and Little: How Much Does Your Tail Cost?

AI 摘要The article explains how to use the empirical Lorenz curve to quantify how much each latency percentile (e.g., p99) contributes to a service's mean latency, arguing that the tail often accounts for a disproportionately large share. Via Little's law, this same share also applies to system concurrency, meaning tail requests typically drive much of the thread usage, capacity demand, lock contention, and cost. The author concludes that optimizing tail latency—not trimming it—can yield outsized reductions in cost and improvements in customer experience.

Aurora DSQL: Scalable, Multi-Region OLTP

AI 摘要The article announces a new paper, 'Aurora DSQL: Scalable, Multi-Region OLTP,' now available on Arxiv, which provides a comprehensive end-to-end look at how Aurora DSQL works, covering query processing, transactions, replication, and the control plane. It highlights the database's fully disaggregated architecture designed to simplify building and operating resilient, highly available applications, using techniques like optimistic concurrency control to prevent clients from blocking each other and avoiding metastable failures. The author argues that advances in hardware, networking, and datacenter design have shifted the trade-offs, making strong consistency the right default for nearly all applications rather than the eventual consistency embraced in the Dynamo era.

Meet Alice. Alice is impatient.

AI 摘要The article explains that service operators and their users measure latency and recovery time differently: users experience a time-weighted version of the distribution (a consequence of the inspection paradox), because long outages or requests get sampled multiple times in proportion to their duration. As a result, while a service may report a mean request time or MTTR like 100ms or one minute, customers actually experience far longer averages, with the gap proportional to Var(X)/E[X]. The author argues this is why heavy tails matter greatly, and why trimmed means are a poor way to measure latency or recovery time since they discard exactly the tail information that dominates customer experience.

Is this blog written by AI?

AI 摘要The author affirms that no human-readable text on their blog is AI-written, arguing that publishing prose under their name creates a social contract in which they deeply understand and own what they wrote, while using LLMs only for research, brainstorming, editing, and similar support tasks. They contrast this with their fully comfortable use of AI-generated code—which they no longer see as a medium for sharing ideas between people—and note that as a leader they value concise human thoughts over AI-padded documents. An October 2026 update adds transparency that some AI-generated text does appear in side projects, diagrams, and animations, while the bar for blog posts remains unchanged.

Agentic software development hypothesis

AI 摘要The article proposes an agentic software development hypothesis stating that coding tasks become trivial when a complete specification is available (weak form), a deterministic oracle exists (strong form), or a non-adversarial oracle exists (strongest form). It acknowledges objections that few meaningful tasks have complete specifications and that most oracles are not deterministic.

What's Easy Now? What's Hard Now?

AI 摘要The author argues that coding agents are essentially feedback loops built around flawed-but-useful LLMs, and proposes the 'feedback loop hypothesis': in the long term, agents will find tasks with effective, automated feedback 'easy' and tasks requiring slow, inconsistent human feedback 'hard'. This inverts the common intuition that SaaS/UI development is easy and system software is hard, since a database engine with precise specifications can be verified without humans, whereas building a delightful user experience requires human judgment. Consequently, specification-writing and feedback tools (type systems, formal methods, testing infrastructure) will become central to the future of software development.

It's time to be right.

AI 摘要Drawing on nearly 30 years of software experience, the author argues that the future opportunity for agentic AI in development and knowledge work will be constrained more by defect rate than by raw capabilities, using a framework of defect frequency versus defect severity to show who can benefit from agents in each scenario. They highlight AWS's work on agent correctness—including tools like Hydro, Cedar, Kiro, Strata, and AgentCore Policy—that prevent or eliminate whole classes of high-consequence defects. The author calls for industry-wide changes such as benchmarks that capture failure severity, end-to-end views of agent success beyond code patching, and a serious research program into agentic AI failure modes.

Spec Driven Development isn't Waterfall

AI 摘要The author argues that spec-driven development is not a return to waterfall, since software requirements are rarely known up-front and specifications should instead be living, versioned artifacts iterated alongside implementation. In this model, specs capture requirements and key design choices at a higher level of abstraction, with humans handling trade-offs and conflicts while AI-derived implementations flow from the specification. The biggest payoff is that clear specs let AI agents work autonomously for long stretches, improving velocity, code quality, and testing.

What about juniors?

AI 摘要The article examines how the role of junior software engineers is evolving, arguing that while automation is reducing the value of learning the traditional craft of programming, juniors have the advantage of already being beginners and thus adapting fastest to change. The new junior path involves engaging much earlier with economics, product, and people—the core of real engineering—while building a deeper grounding in technology and science, since what's possible is changing fast but still rests on enduring principles. Despite these shifts, the day-to-day advice remains the same: juniors should build, own projects and deadlines, talk to customers, and be accountable, and those comfortable expanding their scope shouldn't worry about their careers.

My heuristics are wrong. What now?

AI 摘要The author argues that many heuristics experienced software engineers and tech leaders have developed over their careers are now outdated due to the biggest technological shift of their careers, making long-held assumptions about system design, maintainability, and tooling unreliable. Instead of clinging to old rules of thumb, leaders should combine humility about what they no longer know with confidence in their still-valid judgment, and actively rebuild their mental models by getting hands-on: prototyping, experimenting, and challenging assumptions about what's possible. The most valuable team members going forward will be experienced people who keep their heuristics fresh through curiosity and practice, while those unwilling to update their thinking will become the least valuable.

Music To Build Agents By

AI 摘要The article argues that while teams often worry about adversarial agents, prompt injection, and hallucinations, the most common agent problem is more basic: agents are persistent problem solvers that keep going even when the task is done, like the broom in Goethe's Der Zauberlehrling. Policy layers such as AgentCore Policy and structured steering via Strands Steering let developers define limits so agents stop when appropriate. This becomes increasingly important as models grow more powerful and tackle longer-running problems.

SFQ: Simple, Stateless, Stochastic Fairness

AI 摘要The article explains Stochastic Fairness Queuing (SFQ), an algorithm from Paul E. McKenney's 1990 paper that mitigates noisy-neighbor problems by assigning customers to a fixed set of O(1) queues via a hash function, with periodic hash perturbation preventing customers from being persistently stuck with a noisy neighbor. It then describes an enhanced variant combining SFQ with shuffle sharding and the best-of-two (power of two choices) technique, where each customer maps to a small subset of queues and requests go to the shortest one. This combination achieves strong isolation of noisy neighbors with O(1) queues and constant-time enqueue and dequeue operations.

You Are Here

AI 摘要The article argues that AI has driven the cost of writing code and integrating services to near zero, leaving technologists at a fork: viewing this as the sad end of programming as a valued craft, or as the start of unprecedented opportunity with the most powerful tools since computing began. Careers on the second road will come from building companies faster than incumbents, applying new technology to old problems, and solving the challenges the technology itself introduces, since building complete, reliable end-to-end systems remains slow and hard—as Amdahl's Law implies—and genuinely transformative ideas stay scarce and increasingly valuable. The author concludes that software's first act is over, but its second act promises to be more interesting, economically valuable, and mentally stimulating than we can currently imagine.

Pass@k is Mostly Bunk

AI 摘要The article argues that pass@k, a common metric for evaluating AI agents, is 'mostly bunk' because it is exponentially forgiving—given enough attempts (k), even a largely unreliable model can appear highly successful. Human users, by contrast, are exponentially unforgiving, judging agents by whether all steps work reliably rather than by whether one of many attempts succeeded. The author concedes pass@k can be useful in narrow cases with simple tasks, reliable evaluators, and no human in the loop, but insists it should be rarely used and carefully justified.