dm (@devdjm) header
dm (@devdjm) profile picture

I explain how software works and build tools to make it better. Systems, AI tools, and experiments from my builds.

Simulation
Joined September 2018
Photo by dm (@devdjm)Photo by dm (@devdjm)Photo by dm (@devdjm)Photo by dm (@devdjm)Photo by dm (@devdjm)Photo by dm (@devdjm)Photo by dm (@devdjm)Photo by dm (@devdjm)Photo by dm (@devdjm)Photo by dm (@devdjm)
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.
756
705
272
12,077
749,929
My advice for software engineers in 2026 Get into formal methods Not to prove your system correct but to prove your thinking correct
24
34
4
452
63,526
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 ( ͡° ͜ʖ ͡°)
38
125
11
849
200,126
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...
40
15
7
583
43,219
अमित शाह, ऊपर वाला देख रहा है और भारत भी..
59
1,721
16
6,829
146,076
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.
2,281
5,957
2,321
44,508
7,116,078
Bhaktoo, itna mat uchlo yaar. Trump ka call aa jayega 2 din me fir Paw Paw Starlink ko license de dege. Fir Elon ka waah waah karni padegi. 😂🫪
124
415
15
4,349
42,641
I just called Chungus (my OpenAI Dot) on the phone while picking up mexican food and asked it to transfer some Rex benchmarks from last night on my Mac Studio to my MacBook Pro via Tailscale and I just got to my desk and there they are. What a fucking time to be alive.
94
96
13
4,169
210,925
Had a great conversation today with a colleague on whether compilers are dead. It left me with more optimism than I had going in. Basically the argument is this. Given a program, an agent can probably optimize the shit out of it burning a bunch of tokens. But what happens when you have multiple coordinating agents? Maybe they will discover the power of abstraction. Certainly they need to divide up work and collect it back. They would need to trust each others' work. Then we'll get greedy and ask them to optimize many programs. They can continue burning tokens on each program, but soon they'll discover they're doing the same thing over and over again. So they'll discover compilers. Then they will realize that they need to re-prove at a lower level what seemed correct at a higher level. So they will discover correct-by-construction compilers. The future will be fine. Languages may change, but the concepts will endure. The same things that humans need to collaborate will be needed when agents collaborate.
4
7
1
39
2,436
Pleased to announce my first @AntithesisHQ project: a property testing webinar! In property testing, instead of checking "this input to the function has this output", we check "given a million random inputs, all the outputs have this property". PBT has been around for a quarter century now and is fairly well known in functional programming and distributed system circles. Which is why we're gonna do something very experimental and target a community that almost never uses PBT: web developers. See, there's a thousand PBT tutorials out there, and they all use examples like "reversing a list twice returns the original list" and "add(x, y) should return the same result as add(y, x)". These are stateless properties on the code's functions, where we randomize inputs to a fixed test sequence. People have a hard time finding useful stateless properties in their systems. I've come to believe that most intuitive and useful business properties are instead stateful properties on what must always hold about the system's states. For example, "our total spend is always below our budget cap", or "two talks must never be scheduled for the same room and time", or "free users can't access premium features". We can property test these by randomizing the test sequence itself, to simulate a user doing whatever the heck they want, and testing that no matter what they do, our properties still hold. So, if you've ever had your data model get corrupted because you forgot to validate one update method, or seen a 500 when the user clicks `send` three times in a row, or gotten mad at SQL for not enforcing cross-table constraints, this webinar is for you. We'll be live on October 29. Sign up here: pages.antithesis.com/webinar…
5
14
2
126
8,627
In 30 minutes!
The final talk from Systems Distributed ‘26 will premiere on YouTube tomorrow! The Future Deserves Good Architecture by @jamesacowling—how to continue innovating at an accelerating pace without sacrificing quality. m.youtube.com/watch?v=j1dnZM… Sep 30, 9am PT / 12pm EST / 6pm CET
2
9
1,036
company OS (org harness) vs personal agent, similarities and differences: differences: - Many principals (users), one actor (agent): will need to be multiplayer, handle multiple users (sometimes even in same thread), and as a result handle auth/memory correctly - governance: observability, auditability, admin control plane matter way more - interaction pattern: more event driven and async similarities: - should be able to write/execute code - browser use likely very important! (key difference from a coding harness) - skills/MCP as standards - core agent loop/logic what am i missing?
74
12
8
197
15,376
software is far from solved. a glimmer of ponderoos as to what 2026-2027 is as follows: we need better tools, compiler engineers are about to enter into a renaissance era when inferencing capacity is no longer the bottle neck, it becomes the compiler and verification tool chain problem. you want a decent amount of back prsssure on per unit of change but if that backpressure is too slow it punishes LLM mistakes thus reduces the amount of cycles per minute. what matters is being able to read a file, build an application and run tests in >milliseconds< programming language authors that focus on this and utilise llms to accelerate them and their community with an intense focus on cycle times will get ahead as it’s a safe bet that inferencing speed won’t be a limiting factor in the very very near future. it’s verification and how fast you can verify and pump the result back into the inferencing window.
39
24
3
216
13,278
I'm stoked to author another blog post with @AntithesisHQ ! Distributed Systems + AI + Mutation Testing = Vibes with High Confidence Bonus: 3 serious rqlite bugs that Fable couldn't even...
Mutation testing is a powerful technique that essentially lets you test your testing. Historically, it's been extremely difficult to mutation test test suites for distributed systems -- we've just solved that with a new Antithesis agent skill that creates deep distributed system bugs, then runs them through our bug zapper for you. Read on: antithesis.com/blog/2026/mut…
1
4
43
2,509
What does the future look like? Review tools, powered by LLMaaJ-style techniques, static analysis, and automated reasoning methods. Principled approaches to testing and validation (PBT, DST, model-guided fuzzing, etc). Correct-by-construction techniques.
11
6
5
322
58,933
In 30 minutes!
Tomorrow, Systems Distributed ‘26 online continues with Ram Alagappan’s Forkable Shared Logs: how to let AI agents safely operate on live data. Sep 21, 9am PT / 12PM EST / 6PM CET youtu.be/nxTPMqaSkWc
1
8
957
I'm very sensitive to this feeling, cause I've been there. Someone does something cool, gets a lot of attention, and you're frustrated cause you already did it, a while ago. It's not enough to do things, you must also tell people. Maybe it's not fair, but it's true
225
199
96
4,395
501,408
recommended reading, with the caveat that i think the article goes too hard on bend 2. the kernel: you often only understand a problem by experiencing the journey, i.e. building a solution for it. if you hand that journey off to an agent, you will get something. but not necessarily something good, or even correct. blog.liampwll.com/posts/bend…
20
12
1
251
24,529
The "whiteboard defense:" I should be able to pull you aside at any moment and ask you to explain any customer-facing system you've shipped. You should be able to clearly explain how it works and defend the decisions you made. This is my benchmark for responsible AI usage. I don't expect line-level familiarity with the code. I don't care if you remember the exact function name or implementation detail. You may not even know it. I don't care. But if I ask "why did you do X instead of Y?", "what happens if this actor behaves maliciously?", "what data structure did you use here and why?", or "where does this fail?" you should be able to answer confidently. For PoCs, demos, experiments, whatever: I don't care. Generate 100% of it and understand none of it. Speed over quality every time in those specific scenarios. But if you're shipping customer-facing work, you can't be shipping things you don't understand at a high level.
248
1,182
226
10,656
567,021
Tomorrow, join us for Systems Distributed ‘26 Lightning Talks as Jim, Michael, Ray, Nico and King take to the stage and race the “duck”. Sep 16, 9am PT / 12PM EST / 6PM CET youtu.be/PkRkWx_mRCc With thanks again to @natalievais for moderating (five years and counting)!
Next up in SD26 on YouTube, @AishwaryaGanlat with Breaking the Server: Systems for Disaggregated Datacenters! Sep 14, 9AM PT / 12PM EST / 6PM CET youtu.be/LR8eDZ5xDiI
1
1
1
24
4,447