
Staff Software Engineer @Slackhq
San Francisco, CA
Joined April 2008
- Tweets5.2K
- Following1.2K
- Followers840
- Likes5.7K
Pinned Tweet
My tech talk on functional programming, presented @TheLeadDev, is now LIVE! youtu.be/qW4v7duznsM Let me know your feedback :) #LeadDevAustin
I made The Boba Time Machine to teach my 7 year old Calculus. A 10 island path each with its own set of comics + puzzles to solve and unlock the next topic! She loves Boba/history/Beast Academy/critters. Made with Opus 5.5
1
1
42
Masterclass on algorithms and data structures in the wild with the best of the best @petermattis Enjoyed this so much thanks @GergelyOrosz
Wow: @petermattis has quite the history in shipping: co-created GIMP, built Gmail’s original backend, shipped Google’s Colossus, and is the cofounder and CTO at Cockroach Labs. We talked distributed DBs:
Timestamps:
00:00 Intro
02:42 Peter’s path into tech
04:00 Building GIMP
09:30 Working on Gmail at Google
14:51 Google’s infra: google3, build files, Bazel, and Colossus
21:30 Distributed storage bottlenecks
23:59 Latency, throughput, and availability
30:04 Contributing to libraries
41:52 Google Spanner
46:10 CockroachDB
52:00 Manual vs. automatic sharding
55:28 Consistency models and strong consistency
1:00:03 Raft consensus
1:06:15 How AI brought Peter back to coding
1:19:12 Peter’s tools and agentic workflows
1:23:08 How AI can improve quality
1:26:39 Code reviews: are they done?
1:29:17 100x engineers
1:35:33 Peter’s advice for leveling up your engineering skills
Brought to you by:
• @turbopuffer – the team are completely redesigning their storage architecture from first principles. And they’re documenting all of it! Follow along,: turbopuffer.com/v3
• @linear – most of us work with agents in a “single-player” setting. Linear’s take is agent work should be teamwork, and they built it so: linear.app/pragmatic
• @WorkOS – fresh from the WorkOS oven: Airlock, the authorization layer for AI agents. It evaluates every request against the agent’s intent and your rules and either allows it, denies it, or routes it to a human for approval. workos.com/airlock
Three fascinating parts from this convo:
1. Peter was recruited to Google because of... GIMP!
The very first version of the famous Google logo was made in GIMP, the free, open-source raster graphics and image editing software created by Peter and his college roommate Spencer Kimball.
In 2001, Sergey reached out to Peter, invited him to an interview and then made an offer. While Peter said no back then (thanks to the commute), he joined a year later, in 2002.
2. Peter twice “beat” standard library data structures in performance terms.
At Google, one of his colleagues noticed that std::map showed up in memory profiles. Peter looked closer and figured out that the std::map implementation is a red-black tree, meaning every node has two pointers. Peter built a B-tree with nearly the same semantics which was both faster, due to spatial locality, and smaller because it used fewer pointers. They used this data structure inside Google.
Peter also did something similar with Go’s map: it was performant, but he built a Swiss Table implementation that was faster. That implementation later made it into the Go library, with the Go team helping to finish it!
3. If you squint hard, everything in distributed databases and storage systems starts looking like a B-tree.
These B-trees are a recurring theme in this podcast episode: the backend of Gmail, the std::map replacement, CockroachDB’s range index, etc. There’s even a paper on this phenomenon, The Ubiquitous B-Tree
31
The future engineer is not “the best coder”. It is the engineer who builds the harness around intelligence. The core insight from the blog - successful teams engineer the system around the model.
What are best practices for running Claude Code at scale?
New blog post on what we've learned from teams running it across multi-million-line monorepos, decades-old legacy systems, and distributed microservices:
claude.com/blog/how-claude-c…
Love this framing by @JayaGup10
A good way to look at this in hindsight, is to compare your life 10 or even 20 years ago to what it is today. Am I enjoying the fruits of labor today? If not, what is it that you are still chasing?
Since every single weekend conversation has been about this, let’s play the thought experiment out…..
Assume there is an overclass and assume there is a permanent underclass
What can the overclass actually take away from you?
1.) They can buy “scarce” convenience.
They can buy the shorter commute, the better doctor, the nanny, the assistant, the cleaner, the person who handles the annoying logistics of being alive
Doesn’t mean they feel more alive
2.) They can buy time.
Money lets you turn friction into someone else’s labor: childcare, delivery, drivers, admins, fewer errands
3.) They can buy optionality.
They can quit thier shitty job, move cities, take risks, leave bad bosses, and wait for the right thing instead of taking the first available thing. They basically have more margin for error
4.) They can have access to Geo’s like SF n nyc
Rents are going up by egregious amounts. Salaries are not rising enough to compensate so people that were fine are moving out / giving up dreams
5.) They can buy peace of mind. Money can buy protection from insane rent increases, medical emergencies, job loss, bad months, family crises, legal problems…they get 100x more buffer.
6.) They can buy status and material goods
The house in menlo, private schools, cars and clothes. The rich can buy the status thing (sometimes) but they do not permanently control what becomes status ESP IN SF…
So yes, the “overclass” can buy more buffer: more convenience, time, optionality, geography, insulation, and status. However if you can name the thing you are actually afraid of losing, you can start building toward it.
Not everything the overclass has is worth wanting, but time, stability, optionality, community, proximity to opportunity might be. Figure out which one you actually want.
And remember they cannot monopolize joy, taste, friendship, beauty, aliveness, or the reasons life is worth living aka the whole human experience
1
93
Forever deluged by a mountain of chores. This is also why I zip through audiobooks. Longer the audiobook, cleaner the house!
One of my friend's mothers was visiting him in SF from India, and she remarked that all they do the whole day is errands and chores!
There's more than a kernel of truth to this - even if you're earning reasonably well (earning TC $500k+), you still have to spend time returning Amazon parcels, picking up medicines, doing groceries etc.
In India, you have Blinkit / Snabbit / UC etc. or you can hire other people to do this for you. There are obviously other hinderances to managing time effectively in India (e.g. traffic) but on the whole, I would say if you value your time, you're better off being in India.
1
74
Normal prompt:
Do this one thing.
/plan:
Think through how to do this thing.
/goal:
Keep working until this thing is done.
Agents SDK / multi-agent workflow:
Create a structured system where different agents/tools coordinate to do the thing.
46
The key insight here is the durable value may not sit purely in the foundation model itself. It may sit in the operational workflows, domain integrations, orchestration, trust layers and products built on top of intelligence.
Krishna Rao is the CFO of Anthropic, and this is his first podcast appearance.
He joined the company two years ago when run-rate revenue was about $250M. Today it is $30B. He has helped raise ~$75B and is responsible for the procurement and allocation of compute.
I feel lucky we get to hear what it is like to sit inside a company this consequential at a moment this pivotal.
We discuss:
- The cone of uncertainty
- How he allocates compute across Trainium, TPUs, and GPUs
- What investors misunderstand about model companies
- Why the returns to frontier intelligence keep rising
- Platform vs application and where Anthropic builds its own products
- How Anthropic uses Claude internally
I have asked my closing question about the kindest thing more than 500 times. Krishna's answer is one I have never heard before.
Enjoy!
Timestamps:
0:00 Intro
2:38 The Compute Canvas
6:51 The "Cone of Uncertainty"
11:58 Why the Returns to Frontier Intelligence Are So High
16:45 Recursive Self-Improvement
20:20 Scaling Laws
23:30 Sourcing $100 Billion in Compute
28:05 Platform vs. Application Strategy
32:52 Pricing Dynamics
38:48 How Anthropic’s Finance Team Uses Claude
43:24 Raising Capital & Overcoming Investor Skepticism
52:32 Public Perception, Risks, and Government Regulation
57:25 Mythos Release
1:12:33 What Could Derail the AI Revolution?
1:13:47 Biotech and Healthcare
1:15:31 The Kindest Thing
87
Generalists will be the most sought after lot now. If you have a good enough product sense, design taste and basic engineering chops you are VERY valuable.
38
You can just build things!
You finish a book with your kid. They close it. and then... nothing.
So I built Storyquest - type in any book, get a 5-stop reading quest your kid can fill in with a pencil.
discover → create → decide → dare → reflect
1
28
lol bob 2.0 nuggets of wisdom.
Replying to @kcosr
I don’t trust Skill files any farther than I can throw them. The context window is a severe constraint on the AI agents remembering anything important for any length of time.
Every AI agent I have used is so myopically focused on its task that it cannot think about the bigger picture. I have assembled chains of AI agents, each with their own particular focus. One a coder, another a reviewer, another a tester, and yet they cannot come up with good designs on their own. The single-minded focus of an agent is not conducive to good design and architecture. IMHO.
31
“As a small token of appreciation, we've 10x'ed your Codex rate limits until June 5th on your personal ChatGPT account.”
🫡 @OpenAIDevs @OpenAI
You miss 💯 of the shots you don’t take 😊
2
77
These look like my commit messages in my pre-AI coding era lol
Now I understand the full picture.
The cleanest fix is...
But actually, the real fix simpler...
Actually wait.
The best fix:
Now the real fix.
Actually, let me reconsider.
OK
Key finding:
Wait
I need a hardware device I can physically punch to stop the agentic session.
25
This is a big architectural shift in developing with frontier models - decouple "finding the right context" from "reasoning over it". Use a cheap, fast model for orchestration and expensive frontier model only for thinking. Perfect for latency and cost constraints in Search.
One pattern I’ve been seeing lately: organizations are asking the biggest, most expensive models to do all the work – even when a smaller, specialized model built for high-demand, well-defined jobs could handle the task.
Search is one of those jobs. Most enterprise workloads start with search, regardless of how complex the task is. Sometimes it takes one query. More often, it takes several iterative loops: a question gets broken down, different tools get called, results get evaluated, and the loop keeps running until there's enough to reason over.
Today, that loop is usually driven by a frontier model, which is an expensive way to do work that is, at its core, about finding the right context.
Today we're launching Waldo, @glean's agentic search model, built on @nvidia's Nemotron 3 Nano and trained specifically to handle that loop:
- break a question into smaller questions
- decide which search tools to use
- keep going until there is enough useful evidence, or hand off when the task needs different tools
Waldo is never standalone. It always works in conjunction with a frontier model. Waldo handles the search loop. The frontier model handles the reasoning and the answer.
Running this in production has taught us a few things:
1. You don't need a frontier model for every step. Letting Waldo do the search work and calling the frontier model leads to roughly 50% faster responses and about 25% lower token usage on real customer queries, with no drop in quality.
2. An agentic search model is not a replacement for good retrieval. Waldo builds on the quality of our retrieval tools—and decides how to use them to get the right context for the task. This is important because search shows up in almost every enterprise workload, no matter how complex.
3. Waldo knows what level of reasoning the task needs. How many tools it used, how many attempts it made, and when it chose to stop feeds into adaptive reasoning. This means the system knows when a quick, low-reasoning answer is enough and when deeper thinking is worth the cost.
Huge thanks to the team for building Waldo, and to our partners at @NVIDIA and @thinkymachines for helping us make this practical at enterprise scale.
1
47
AI Models are EXCEPTIONALLY good today. So Context is what makes the difference on the output quality. And we need to learn to assemble this really well
2
24
The mental model shift in software engineering will be “build correct systems” to “build systems that behave well under uncertainty”
Unpopular opinion: AI will not reduce net employment, might actually increase it.
To wit: AI-enabled coding increases Boom’s demand for software engineers. Because AI enables everyone to code, we now need more people to ensure architecture foundation is solid.
1
78
The biggest mental shift in AI is that we are no longer using LLMs but building systems around LLMs. This means your job as a SWE is not prompt engineering anymore but system design around probabilistic components.
1
62
The real reason population is declining is because women bear the burden of both childcare and the economics of running a family, with zero societal support and the next gen has noticed this. It’s gone on too long, uncorrected. All the “parental benefits” do nothing.
Something seismic is happening across the globe: birth rates are collapsing to levels not seen in modern history.
This isn’t just a blip-it's a profound shift affecting nearly every developed nation.
But why is this happening, and what does it mean? Let’s break it down:
131
















