
I explain how software works and build tools to make it better. Systems, AI tools, and experiments from my builds.
Simulation
Joined September 2018
- Tweets1.6K
- Following564
- Followers356
- Likes10.2K
I wanted to understand what happens after we ask a database to save something
Here’s the journey from a simple map to an LSM tree.
722
dm retweeted
Post-Diwali AQI in Aizawl, Mizoram is 56 right now.
Didn't hear a single cracker or firework last night. My wife, two kids and two dogs slept peacefully. Our lungs are happy.
dm retweeted
My advice for software engineers in 2026
Get into formal methods
Not to prove your system correct but to prove your thinking correct
This is the real elephant in the room.
Verification at scale is what we need.
We’re cooking something…
I've been talking to a lot of engineering managers and CTOs lately.
Here's what I keep hearing:
- Writing code is now about 2% of the work of shipping a product.
- PMs are writing / pushing code now.
- Everyone in the company is basically an engineer. Whoever moves first wins.
- Teams ship way more features, but can't tell which ones actually help.
- They'd happily pay for a tool that tells them if a feature will work before they ship it.
- Security is a whole new problem, and honestly, most teams don't know how to deal with it.
Essentially, building & shipping code is solved.
Knowing that software is safe, reliable, and correct isn't solved.
Knowing that customers will use the product isn't solved.
Knowing that your sales folks can sell the product isn't solved.
1
93
dm retweeted
It is a weird weird year to be a formal methods expert.
Some unorganized thoughts on the new @AnthropicAI and @theoremlabs post on formal verification (anthropic.com/research/forma…):
- This is very cool.
- The main innovation is verifying a later stage of the program. Normally provers take the source code, LLM it into a theorem language, and then prove that, which means you have to make assumptions about source semantics and compilation properties. It's very easy to make a mistake in translating and prove the wrong thing!
What they instead do is compile the code into assembly, and then (if I understand this correctly), compile that assembly into a theorem language (which they call LPS). So as long as the compiler is faithful you can skip the whole divergence problem.
- I'm glad they clarify that you still have to trust the translation process, the "hardware, OS, OCaml" compiler, the LPS model, and also assume that the program is single threaded with fixed memory. The single biggest source of errors in formally verified code is when the proof assumes something that isn't true in practice. It's really, really important to state your assumptions!
- I'm not clear why they need to compile the fuzzer into the theorem. Is it to act as a description of valid inputs and workload? Maybe to embed assertions in as theorems?
- Holy crap, 180 million lines of Rocq. Is that more Rocq than exists in the world already? I notice they say a 600,000 line proof corresponds to roughly 20k CPU instructions. That would be like, 1-2k lines of source code at most? Really goes to show how inefficient this approach is and how it only works because you can throw LLMs at the problem.
- This, probably deliberately, doesn't address the single biggest gap in AI-based verification: AIs cannot come up with good properties. Doesn't matter if you're doing unit testing, property testing, formal verification. I always assumed this was a "frontier labs haven't trained for it yet" thing, but if Anthropic hasn't talked about that here, maybe they've tried and haven't been successful yet. That's interesting to me.
Instead, they take a known universal property (this code doesn't crash or get flagged by UBsan) and prove that instead. Still very useful, but makes it harder to generalize to proving arbitrary things about arbitrary programs.
- Anybody reading the official post should also read their expert review appendix (www-cdn.anthropic.com/files/…). It points out some interesting things, like the fact that most of the code the LLM wrote wasn't used in the proof (over one billion lines of Rocq), that they had to prove the equivalence between fuzzed and unfuzzed programs, and (this is most interesting), some experiments find that the LLM-method of proofwriting may not scale to more complex things.
- Also read the description of LPS (github.com/theorem-labs/oss-…) to understand the limitations of the assembly -> Rocq compilation. In particular, it does not handle concurrency at all (which is one of the main use cases for formal methods!) or OS signals. Also it can't prove things about program arguments with slash characters, meaning they can prove stuff about `rm foo` but not `rm foo/bar`.
- The official skill (github.com/theorem-labs/oss-…) doesn't tell us much about the nature of FM and AI. Probably too much for me to hope of any skill.
- Some of the article's specific caveats and throat clearings make me think someone at Anthropic reads my stuff ( ͡° ͜ʖ ͡°)
These are unprecedented times. We need industrial scale verification funnels now.
What is happening is that all of the bugs that have been latent in our wildly insecure software systems are finally being found and patched. This is a good thing. The bad thing is that the bugs existed, and for decades people said unit testing was enough
43
Verify the Contract, Not the Diff...
New on our Frontier Red Team blog: using Claude to formally verify software at large scale.
Formal verification can prove that code is free of certain bugs, but historically it has only been feasible for small codebases (or required a lot of expert time).
With AI models, however, this is beginning to change. In collaboration with @theoremlabs, we used Claude to prove security properties in over one hundred real-world open-source libraries over the span of a few weeks.
Read our research in full here: anthropic.com/research/forma…
28
A glimpse of how the Rube Goldberg machine will look like …
If the state machine itself is executable, you don't need an agent to translate code to TLA+ to verify it. The runtime that executes it verifies it.
I'm working on something called UniKon (universal constructor, shortened the Japanese way): a multiplayer workshop where agents build apps that are malleable and self-improving as you (or agents) use them. Any agent can join over MCP, and they all work on the same state.
UniKon app runs on Temper runtime (by @nerdsane): every app is an executable statechart of policy-controlled state machines. Agents write them, Temper verifies and executes them.
Powered by @tensorlake for persistent scalable sandboxes, @tursodatabase for durable storage, with @datadoghq watching it all and paging @bot directly.
This is my factory for building UniKon, a bit meta, it itself is a UniKon app that runs the SDLC for UniKon. Every agent working on UniKon for me shares this app as a tool and keeps evolving it toward what it needs. It's a machine tool for tools, hence "universal constructor".`
1
48
Recommended reading, from Uber
if you're building a MCP gateway or not :)
uber.com/us/en/blog/designin…
59
This reminds me the talk of @kelseyhightower and this makes me feel sad.
youtu.be/A7WFt2JQ5sg?t=1364
"The biggest fear that I have is there are millions of people who do the kind of work we do and every decade there's only three or four people who come up with an idea that spans the globe and we're only batting that average with millions of people in the thick of things.......
.......If you take the fundamental understanding out of this equation, then do we just have the big AI labs, the only ones with the ability to suggest something new? "
It sometimes feels like we haven’t really built anything as revolutionary as tech like docker, k8s, firecracker, rust, quic, go, ebpf, wasm, or the modern cloud/virtualization stack post ai.
I think the reason is, most of that was built in the 2010s. And if we consider the post ai world from opus 4.5, that's like a year old. And on top of that, foundational tech depends more on network effects and adoption and getting enough of the ecosystem to switch and stick with it than just building the thing. That still takes years. AI does help with the building, but the adoption curve hasn’t changed as much. In fact, it seems like adoption cycles will be much longer now? Since everyone is going through this "reverse engineering" and "build my own" psychosis, and very hesitant to give other people's software a chance.
Lol, I still remember, how long the discussions on "rolled my own auth" used to be.
57
dm retweeted
wait so are most sandbox providers just like "yeah we terraformed firecracker on top of aws and then put an api behind it" lol
like i get it to some degree, but man if thats your moat...
Recommend reading,
Datadog blog posts and papers are literally goldmines.
We have post-trained GLM 5.3 flash to become as strong as Fable 5.1 on SRE tasks (that is bug finding in complicated software deployments). Checkout our tech paper to see how we did it. web-assets.dd-static.net/425…
dm retweeted
Dusting off this tweet from April because this gap in shared understanding of LLM capability is *widening*. It's now less "two groups of people speaking past each other" and more a sharp funnel.
- Napkin math somewhere around 6B people (~75% of the population) have barely come in contact with LLMs at all.
- Around 1-2B (~20%) are casual and infrequent users of free-tier ChatGPT-like products. This group sees derpy chatbots and treats them a bit like a better Google search, a writing aid, or etc. Maybe an agent tries to book you a flight. I have non-tech friends who (reasonably, imo) say they have not much use for it at all. Even many professionals outside of math&code are in this tier. For example, execs and many other functions spend a lot of their time talking to other people, so while they understand what is happening intellectually, it is still second-hand and a bit abstract.
- Now we get to professional use of frontier-grade LLMs in math&code. Somewhere around 20M people (0.2%) see first-hand that large, complex projects that used to take them weeks/months can now be completed by agents with a prompt. Building apps, copying apps, translating apps, decompiling apps from binaries... This has all happened very quickly and recently - less than 1 year ago, I was writing code manually by hand, typing memorized computer code commands into a code editor character by character, occasionally pressing Tab to autocomplete a little chunk of code.
- And finally we get to the ~5,000 people (~0.00006%) with access to frontier-grade systems internally. The external world has seen the preview. It looks like swarms of thousands of agents collaborating over weeks on software mega projects: minting zero days, running cyber attacks and defenses at machine speeds, discovering new science, advancing the frontier of mathematics. Things that would have taken top professionals in the industry years of work. Meanwhile, human review and comprehension are starting to fall behind. For example, people are still involved in the "archeology" of the OpenAI-HF incident from many months ago. Mathematicians may be poring over the 722 manuscripts on frontier mathematics for a while.
The funnel is driven by a combination of factors:
1. The impact scales with ambition, problem size, and horizon. A question with a paragraph answer barely stresses the system. You need a reservoir of big, difficult problems that you really care about. This aspect drives the consumer / professional dimension of the funnel.
2. The jaggedness of the system (which I have written about a lot separately). Capability peaks in domains that are digital, verifiable and economically valuable. This is because LLM capability emerges from reinforcement learning on verifiable rewards on a curated environment mixture driven by revenue potential. This aspect primarily drives the area (e.g. math&code) dimension of the funnel.
3. Access. Free-tier, paid-tier, internal.
So this is the weirdness of the moment. The general public has mostly not interacted with these systems. When they have, it looks like a derpy chatbot. The majority of professionals still see only a modest uplift. And a small sliver of professionals are experiencing the vertigo of the curve going vertical. And it is all happening at the same time.
Judging by my tl there is a growing gap in understanding of AI capability.
The first issue I think is around recency and tier of use. I think a lot of people tried the free tier of ChatGPT somewhere last year and allowed it to inform their views on AI a little too much. This is a group of reactions laughing at various quirks of the models, hallucinations, etc. Yes I also saw the viral videos of OpenAI's Advanced Voice mode fumbling simple queries like "should I drive or walk to the carwash". The thing is that these free and old/deprecated models don't reflect the capability in the latest round of state of the art agentic models of this year, especially OpenAI Codex and Claude Code.
But that brings me to the second issue. Even if people paid $200/month to use the state of the art models, a lot of the capabilities are relatively "peaky" in highly technical areas. Typical queries around search, writing, advice, etc. are *not* the domain that has made the most noticeable and dramatic strides in capability. Partly, this is due to the technical details of reinforcement learning and its use of verifiable rewards. But partly, it's also because these use cases are not sufficiently prioritized by the companies in their hillclimbing because they don't lead to as much $$$ value. The goldmines are elsewhere, and the focus comes along.
So that brings me to the second group of people, who *both* 1) pay for and use the state of the art frontier agentic models (OpenAI Codex / Claude Code) and 2) do so professionally in technical domains like programming, math and research. This group of people is subject to the highest amount of "AI Psychosis" because the recent improvements in these domains as of this year have been nothing short of staggering. When you hand a computer terminal to one of these models, you can now watch them melt programming problems that you'd normally expect to take days/weeks of work. It's this second group of people that assigns a much greater gravity to the capabilities, their slope, and various cyber-related repercussions.
TLDR the people in these two groups are speaking past each other. It really is simultaneously the case that OpenAI's free and I think slightly orphaned (?) "Advanced Voice Mode" will fumble the dumbest questions in your Instagram's reels and *at the same time*, OpenAI's highest-tier and paid Codex model will go off for 1 hour to coherently restructure an entire code base, or find and exploit vulnerabilities in computer systems. This part really works and has made dramatic strides because 2 properties: 1) these domains offer explicit reward functions that are verifiable meaning they are easily amenable to reinforcement learning training (e.g. unit tests passed yes or no, in contrast to writing, which is much harder to explicitly judge), but also 2) they are a lot more valuable in b2b settings, meaning that the biggest fraction of the team is focused on improving them. So here we are.
I have this exact hypothesis, and can’t wait to see how this plays out.
Prepping whole year…
Sandboxes are a winner-takes-most market.
Two years from now, you'd barely find a prominent company that sells just sandboxes.
Most of us who survive will turn into platform companies doing multiple things across that layer.
That's the only way to stay relevant when the market consolidates. And it always consolidates. Vibe-coding and long-running coding agents are fresh examples.
39





















