Latest Posts (20 found)

Just pick the smarter model

Every time a new model comes out, the same group of people say something like “I don’t see the point, existing models 1 are already smart enough for any task you might want.” Choosing the smallest possible model for the task is sometimes seen as a core AI skill. I think all this is nonsense. In almost 2 all cases, you should just pick the smartest model you can afford. More expensive models are often cheaper. There are two ways you can solve a problem: you can painstakingly grind away at it over time, or you can just see the answer immediately. When you pay for a model, you pay per-token, not per-solution. Very smart models may be five times as expensive, but if they can solve your problems in one-tenth of the tokens 3 , they end up being twice as cost-efficient. [todo: link studies/evidence on this] You don’t know what problems you really have. Real world problems are really hard because reality has a surprising amount of detail . You might think your problem is “when a user tries to sign up, sometimes they hit a bug”, but usually this problem conceals a mountain of other problems: your database is under-provisioned, or parts of your codebase only work accidentally, or you’re secretly dropping a bunch of signup attempts you don’t even know about, and so on. A model that’s just smart enough to solve the first problem can be helpful, but a model that’s smart enough to tackle the stack of problems underneath is far more valuable. Almost all problems are soluble with sufficient intelligence. This picture of the world might sound daunting, but in fact all of this stuff — identifying what real problems you have, fixing the root ones first, solving trivial problems at a glance — becomes easy when enough intelligence is applied to the problem. Modern software products are far more complex than any individual human can understand, and yet a team of intelligent humans can build, operate, and maintain them successfully over years. Intelligence is a difference in quality, not quantity. The durable advantage of modern tech companies over traditional firms stems from the fact that they have (quite sensibly) focused on hiring the smartest humans they can afford, instead of an army of humans who are hopefully just smart enough to perform their daily tasks. Small, focused teams of really good engineers have a massive comparative advantage over even huge groups of just-okay engineers, because they can find solutions that those other engineers would never see , no matter how much time they had. I find it hard to understand people who don’t care about using the smartest model they can. When I am solving problems, I am keenly aware of how little intelligence I can bring to bear, compared to the amount you could throw at the problem without hitting diminishing returns. I can feel the difference between a smart model and a dumb model almost minute-by-minute as I work, in how it talks to me, what kinds of problems it raises, what areas it considers important, and so on. Because of this, I spend a lot of effort trying to figure out what the current best model (or combination of models) is. For any problem you have, you should be trying to aim as much intelligence at it as possible: your own intelligence, the intelligence of the most capable people you know, and now the intelligence of large language models. If you’re in charge at a tech company, you should be trying to hire the smartest humans 4 and rent the smartest LLMs that you can afford. This is also a common talking point among defenders of local models . One exception here is batch data processing, or some kind of large-scale purely mechanical rewrite. See here , here , or just look at SWEbench and notice that models with cheap per-token prices often have a higher total spend than expensive models. All the reasons above for choosing a powerful LLM are also reasons for hiring smart humans. This is also a common talking point among defenders of local models . ↩ One exception here is batch data processing, or some kind of large-scale purely mechanical rewrite. ↩ See here , here , or just look at SWEbench and notice that models with cheap per-token prices often have a higher total spend than expensive models. ↩ All the reasons above for choosing a powerful LLM are also reasons for hiring smart humans. ↩

0 views
Sean Goedecke 3 days ago

Who gets to decide if something is written by AI?

Every day there’s some new argument about whether something was written by AI: a writing prize where the winning story was supposedly AI-generated, or an author who lost her contract after the manuscript lit up Pangram 1 , or a dispute about whether a tweet was written by a human or not. You could have an interesting conversation about whether Pangram is reliable 2 , or whether it’s wrong to run AI detection tools on other people’s writing 3 . However, I think these points are downstream of the real source of conflict, which is that many anti-AI people have a fundamental hatred of AI detection tooling. This puzzled me for a long time. If you hate AI, shouldn’t you love a tool that can unmask it? If you’re worried about the intrusion of AI-generated content into human spaces, shouldn’t you be thrilled that there are systems that can identify and flag content like this? Shouldn’t people who think AI is wrong be advocating for mandatory Pangram scanning of all social media, news, education, and so on — or if they don’t trust the Pangram company specifically, shouldn’t they be advocating for the government to build a Pangram-for-the-public tool 4 to capture these social goods? Why 5 aren’t they doing any of this? I think it’s about power . In particular, I think that the question “who gets to decide if something is written by AI” is a question about who should wield power: the power to gatekeep literary prizes, to fail or pass students, to exclude people from the public discourse, and so on. That probably sounds bad, but if my blog has a central thesis it would be that “everything is actually about power and that’s fine”, so I’m actually fairly sympathetic to Pangram skeptics. Let me try and present their view in the best possible light. Suppose you’re worried about AI intrusion into public spaces because you think this gives the tech sector an unprecedented amount of social power, not (like me) because you just find it unpleasant to read AI slop . On this view, it is entirely rational to dislike tools like Pangram being made the arbiter of whether something is AI writing, because Pangram is culturally and politically part of the same tech sector that you distrust in the first place. If you don’t want Sam Altman or Dario Amodei with a hand on the wheel of public opinion, having some other tech CEO as a watchdog is unlikely to reassure you much. In fact, distrust of tool-shaped solutions in general is also entirely rational. The history of the last few decades has been a shift towards legible tool-based processes and away from messy community-based ones. You now book a taxi ride (or a hotel, or a doctor’s appointment) entirely in an app instead of having to talk to a human. Software has made many low-level jobs semi-robotic: the system tells you what to do and assesses your performance, instead of a human who can make allowances. Many anti-AI people are anti-AI because they think 6 this shift in general has been a disaster for humanity, and that we must return to less efficient, more human-centered systems. To these people, the idea of ameliorating AI by relying on yet another AI tool probably sounds like some kind of sick joke. So why am I pro-Pangram? Because, as far as I can see, the only alternative 7 to AI detection tooling is relying on communities to self-police. If the literary prize committee investigates 8 and determines there was no AI use, then that’s that. If the community agrees that something was written by AI, then it was. Here’s where I part ways with the AI haters, because I think this is terrible . People who do not use AI are not good at judging whether some text was AI-generated. I see this a lot on Twitter, where a piece of text that has obvious AI tells is being judged by people who just haven’t read enough AI content to recognize them, or a tweet that has obvious human tells is being judged as AI purely because it’s long and polite. If you delegate this kind of judgment to AI haters, they will get it wrong more often than not . If you care about keeping AI away from human arenas of art and culture, you should be willing to use the most powerful tools available, even if they are technically also AI tools 9 . If you have a (sensible) distrust of tech companies to police each other, you should be pushing for open-source solutions or lobbying governments to build their own AI-detection platforms in-house. A world where “was this written by AI” is left up to the community is a world with more AI-written stories, articles and poetry in it. edit: A reader has correctly pointed out via email that one common reason people distrust Pangram is that most AI tools are terrible (even dishonestly so ), and they’re scared about false positives even from a good tool. I also should have linked to this excellent defense of Pangram’s reliability. Currently the best AI-detection tool. My view is “yes, obviously”. The contrary view is something like this , which I find woefully unconvicing: Pangram (and its third-party tests ) do report false positives and negatives on the same dataset, and has clearly gone to great lengths to train on a huge variety of content. My view is “no, obviously”: Pangram does not train on user data and any published works have already been scraped. Incidentally, I think this is a really good idea and could be done far more cheaply than most “government getting into AI” schemes I see. I confess here I’m falling into the trap of diagnosis , but I do think the core argument (that tools like Pangram work) is solid and unrelated. I don’t know what to think about this on a factual level, but on a vibes level I am very uncomfortable with these arguments. People lie, drafts can be generated after the fact, there is no plausible cryptographic path to attestation, C2PA is not the right tool for the job, and so on. I assume it goes without saying that ordinary investigation is useless here: skilled AI writing will often have drafts, contemporaneous conversations with peers, and all the other hallmarks of “real” writing. I think the distinction is entirely vacuous, but in case you don’t: Pangram is definitely not generative AI. Currently the best AI-detection tool. ↩ My view is “yes, obviously”. The contrary view is something like this , which I find woefully unconvicing: Pangram (and its third-party tests ) do report false positives and negatives on the same dataset, and has clearly gone to great lengths to train on a huge variety of content. ↩ My view is “no, obviously”: Pangram does not train on user data and any published works have already been scraped. ↩ Incidentally, I think this is a really good idea and could be done far more cheaply than most “government getting into AI” schemes I see. ↩ I confess here I’m falling into the trap of diagnosis , but I do think the core argument (that tools like Pangram work) is solid and unrelated. ↩ I don’t know what to think about this on a factual level, but on a vibes level I am very uncomfortable with these arguments. ↩ People lie, drafts can be generated after the fact, there is no plausible cryptographic path to attestation, C2PA is not the right tool for the job, and so on. ↩ I assume it goes without saying that ordinary investigation is useless here: skilled AI writing will often have drafts, contemporaneous conversations with peers, and all the other hallmarks of “real” writing. ↩ I think the distinction is entirely vacuous, but in case you don’t: Pangram is definitely not generative AI. ↩

0 views
Sean Goedecke 1 weeks ago

When in doubt, flail about

When you’re working in an unclear situation — you have no clear guidance, or you don’t know what will help — the best course of action is often just to flail about. This sounds counter-intuitive. Wouldn’t it be better to be cautious and wait until you have a better understanding of what’s going on? Typically not. This is definitely dangerous advice . Flailing badly is a great way to damage your reputation at a tech company. We’ve all worked with engineers who seem to have nothing but bad ideas, and who are constantly pushing one stupid plan or another 1 . But if you do it right, flailing about is the best and quickest way to get that understanding and become useful. How do you flail well ? Trying a lot of different things is the key to the other two points as well. First, the entire point of flailing is to get direct contact with as many different bits of reality as you can. Think of yourself as a caveman learning how to use an iPhone: the first step is to just hit all the buttons and see what happens. Second, you need to try lots of things because most of your plans will suck . You’re flailing because you don’t know enough to just do the right thing, after all. If you just try one thing, it will probably be a bad idea; if you try ten things, one of them might turn out to be good. Because you’re not equipped to judge which is which, you need to be extremely sensitive to feedback 2 . Third, trying many things also ensures that you’re not over-invested in them. If you only have one plan, you’ll want it to succeed. If you have ten plans, you only care about one of them succeeding, so you can drop plans that are failing. Since most of your plans will suck, this is critical. Coincidentally 3 , there are also three types of flailing that most engineers will encounter. The first is product flailing . When you’re working on a feature that doesn’t really have product-market fit yet, everyone is in a state of uncertainty. You will typically have some central idea about where the value is, but there’s a lot of room to wiggle (i.e. flail) around the margins. When I worked on GitHub Models (now retired ) I built a lot of features or integrations that didn’t really work. However, one of those — allowing AI inference to run from a GitHub Actions token — was surprisingly sticky, and turned out to be the seed of “Continuous AI” . If you’re working on a brand-new product and you’re not flailing, you’re likely investing a ton of effort into ideas that were always doomed. Far better to flail around until you find something with traction, then commit hard to that. The second is engineering flailing . Sometimes a system is so difficult that it’s hard to see where you’d even begin improving it: either it’s so tangled up, or it’s already so optimized, or it’s just so large and unknown. Some engineers like to sit down and carefully work their way through the entire system before recommending changes. I think this is foolish . Modern large software systems are too complex and are changing too fast to do that. Instead, I recommend making a bunch of speculative changes 4 and just seeing how it looks (or how it performs). If it doesn’t seem like an improvement, drop it immediately; if it does, dig in and figure out why. The third — the one most relevant to senior and staff engineers — is organizational flailing . Often I’m put in a situation where the problems are not technical: usually two teams aren’t talking to each other, or some team is unhappy and the director/VP isn’t quite sure why. What do you do then? Well, I recommend flailing! Just try a bunch of things that you think might help 5 : automate pieces of manual work, volunteer to take over tasks, suggest long-term plans that could conceivably make things much better, and so on. Most of these won’t be useful, but it at least shows that you’re trying, which can go a long way in situations like this. A note of caution: this is the case where it’s most critical to be sensitive to feedback. If you instantly drop some plan of action that is failing, you can build trust; if you miss that feedback and press on, the people you’re helping will start to point their anger and unhappiness at you. Why am I calling this “flailing” when it sounds like a sensible approach? Because it feels like flailing from the inside . Your manager will (hopefully) look at you and see a proactive engineer experimenting with solutions, but you will feel like you’re repeatedly failing: acting with insufficient information, trying a bunch of stuff that doesn’t work, and in general making a fool out of yourself. This feeling is normal, but you must ignore it. The unpleasant sense that you’re flailing is one of the many psychological barriers 6 you need to push through in order to be an effective engineer. Knowing ahead of time that it’s going to feel like flailing can help you recognize the emotion and treat it as a positive signal instead of as a sign you’re in trouble. So long as you’re sensitive to feedback and willing to instantly drop plans that aren’t working, flailing can be an incredibly effective approach to difficult engineering and organizational problems. Working around people like this is one of the cardinal social skills of succeeding in big tech companies. Both from the people around you with more expertise and from reality itself (which plan actually lowers latency, increases user metrics, etc). Ideally you’re dropping any plan that isn’t getting “wow!” feedback. It really is a coincidence. I tried to come up with a fourth or cut it down to two to avoid the appearance of symmetry but couldn’t. AI agents help with this a lot. You can just ask for five different refactors and skim them to see which one is most promising, for instance. If you haven’t done this kind of work much you might be thinking “why not just ask people what they’re unhappy about and fix it?” In my experience, situations where that is possible get quickly solved on their own, and situations where other engineers get parachuted in are ones where nobody can articulate what change they’d want, or where that change is impossible for other reasons, or where everyone disagrees, and so on. Others include the valley of engineering despair , taking a position even when you’re uncertain, or shipping code that isn’t perfect . “Many engineering problems are actually psychological problems” is a recurring theme on this blog. Try a lot of different things Pay very careful attention to feedback Ruthlessly drop things that are not getting positive feedback Working around people like this is one of the cardinal social skills of succeeding in big tech companies. ↩ Both from the people around you with more expertise and from reality itself (which plan actually lowers latency, increases user metrics, etc). Ideally you’re dropping any plan that isn’t getting “wow!” feedback. ↩ It really is a coincidence. I tried to come up with a fourth or cut it down to two to avoid the appearance of symmetry but couldn’t. ↩ AI agents help with this a lot. You can just ask for five different refactors and skim them to see which one is most promising, for instance. ↩ If you haven’t done this kind of work much you might be thinking “why not just ask people what they’re unhappy about and fix it?” In my experience, situations where that is possible get quickly solved on their own, and situations where other engineers get parachuted in are ones where nobody can articulate what change they’d want, or where that change is impossible for other reasons, or where everyone disagrees, and so on. ↩ Others include the valley of engineering despair , taking a position even when you’re uncertain, or shipping code that isn’t perfect . “Many engineering problems are actually psychological problems” is a recurring theme on this blog. ↩

0 views
Sean Goedecke 1 weeks ago

To code well, avoid blunders

The secret to writing good code 1 is to avoid catastrophic mistakes. Many engineers think about programming as if the goal is to have brilliant insights, but they’re wrong. If you don’t blunder, you will win. Many other domains are like this. If you can play chess without ever hanging pieces, you will win against almost any 2 opponent. If you are very good at returning tennis balls, you will beat most players even if you never hit a winner. People are really bad at internalizing this. They think that being good at chess means finding brilliant tactical combinations, or that being good at tennis means crushing balls into the corner of the court, or that being a good programmer means discovering beautiful new abstractions. Not so! All of those things are valuable, but they are not the main thing. The main thing is to avoid catastrophic mistakes. The reason programming is like this is that it is impossible to build a durable winning advantage. In basketball, if you are up 99-1, the worst consequence of a blunder is still being up 99-4. However, in programming, one blunder can turn an elegant codebase into a janky one. For instance, consider these blunders: The cardinal sins here are inconsistency and introducing unnecessary requirements 3 . Even a little bit of inconsistency is dangerous because it breaks trust: instead of assuming your code works the sensible way, engineers must now go looking for surprises. Unnecessary requirements are dangerous for two reasons. First, they’re sticky . When you’re implementing a new requirement, you have the context to decide whether it’s necessary or not. If you see one in the codebase, you must assume it’s necessary unless you’re willing to spend a bunch of time researching. So requirements tend to remain in codebases long after they could be removed. Second, they often interrelate in dangerous ways: if your codebase supports X, then you must consider how each new feature will interact with X. This combinatorial explosion is what makes working in large codebases so hard 4 . When you’re writing code, you must at all costs try to: In fact, you should be so focused on this — on avoiding blunders — that you don’t really have mental energy to be worrying about cool tricks or “extra credit” features. As with shipping projects , if you find yourself thinking things like “oh, I could implement it with this clever pattern”, this is a warning sign: you are likely becoming distracted from the main thing, and you risk blundering. You don’t have to be clever to do great programming work. In fact, sometimes cleverness can be a disadvantage . What you need is attention to detail and a laser focus on what actually matters: avoiding blunders by maintaining consistency and skipping unnecessary requirements. As usual on this blog, I am primarily talking about working on large commercial codebases with big teams: “impure engineering” in my terminology. This advice may not apply if you’re doing other kinds of work . Of course all of this applies whether you’re writing code by hand or driving an AI agent. My guess (it’s surprisingly hard to research) is that not ever blundering would get you around a 1600 or 1700 chess rating: strong enough to win almost every game against casual players. Current coding agents are pretty good at consistency — about as good as humans — but are far worse at avoiding unnecessary requirements, unfortunately. I wrote about this in depth in Wicked features . Introducing a parallel system to perform the same task Introducing a second source of truth for some key piece of data Turning a safe sync operation into a delicate async one Adding new subtle points of failure Complicating a key interface Identify where your task could fit most normally into the current codebase Trim your task down into the smallest set of requirements that you can As usual on this blog, I am primarily talking about working on large commercial codebases with big teams: “impure engineering” in my terminology. This advice may not apply if you’re doing other kinds of work . Of course all of this applies whether you’re writing code by hand or driving an AI agent. ↩ My guess (it’s surprisingly hard to research) is that not ever blundering would get you around a 1600 or 1700 chess rating: strong enough to win almost every game against casual players. ↩ Current coding agents are pretty good at consistency — about as good as humans — but are far worse at avoiding unnecessary requirements, unfortunately. ↩ I wrote about this in depth in Wicked features . ↩

0 views
Sean Goedecke 1 weeks ago

Why output caching doesn't work

LLM inference economics depends on caching 1 model inputs, to prevent the entire conversation history being recomputed on each message 2 . Should we cache model outputs in the same way? As it turns out, no. First, here’s why we might think caching outputs is a good idea. We cache inputs to prevent repeated work, but LLMs do a lot of repeated work in their output as well: In all of these cases 3 I could go and read the files myself, but I don’t. Agents produce such a volume of output, and reading agent output is tiresome, so it’s better to simply ask for the key points. It’s an obvious waste of tokens 4 to repeat all of this content. In fact, it’s worse than the input caching situation, because it’s a waste of output tokens, which are significantly more expensive to produce 5 than input tokens are to ingest. If you want to prevent this, you’d have to get the model to avoid repeating itself. For instance, you could fine-tune or prompt a coding model to output “src/script.py:12-15” instead of simply regurgitating those lines of the file. More generally, you could fine-tune a model to reference segments of its own conversation history instead of repeating them. The harness could then trivially expand those references with the actual content, so all of this is transparent to the user. Unfortunately none of this is a good idea, because it only optimizes visible output . I don’t think models repeat themselves often in their internal chain of thought 6 . I can’t read frontier chains of thought, but my sense from open models and general principles is that they shouldn’t need to, because that information is already available to them. So optimizing repetition only optimizes the segment of model output that is visible to the user. How much is that? Based on my own agent histories, it’s about 6%. 50% of output tokens are reasoning tokens, and the remaining 44% are tool calls 7 . So we’re running headlong into Amdahl’s law : even if you can save two-thirds of the tokens in visible output (a ridiculously optimistic estimate), you’re still only saving 4% of total output tokens. If you want to save output tokens, you need to reduce the 94% of output tokens that are invisible, which largely depends on intelligence . The smarter the model 8 , the fewer reasoning tokens and tool calls it needs to get to the right answer. This is why we see a strange phenomenon 9 where more expensive models are actually cheaper to use: they might be 5x more expensive per-token, but they can get to the right answer with 6x fewer tokens, so the overall cost is less. In the KV cache. Including tool calls. Coding agents often used to repeat tokens in tool calls (e.g. by re-outputting the entire file content for each edit) but I think this behavior has mostly been replaced with more efficient find-and-replace editing tools. I’m pretty sure that most mature inference providers already do speculative decoding based on previous ngrams in the input, which would at least exploit output repetition to deliver a speedup. The reason, broadly speaking, is also the reason why transformers are so important: because of the attention mechanism, input tokens can be ingested in parallel, while output tokens must be generated one-at-a-time. I’m only moderately confident about this. Some open-source reasoning models (particularly early ones) do, but those models also use way more tokens than frontier models for the same output, so my guess is that powerful frontier models don’t loop in their chain of thought very often. It’s possible that tool calls involve some repetition as well, if agents are composing content in the chain of thought and then repeating it in the tool. Any readers who have done a lot of coding with open-source models (or who work at a frontier lab) and thus know the answer to this, please email me if you can — I’m curious. And the better the harness, though I remain convinced that there isn’t that much comparative advantage in harness quality because everyone can copy each other. This applies to real life too, and is the reason why you shouldn’t hire the cheapest plumber you can find. When I get agents to write PRs I often ask them to repeat and explain relevant code snippets in the conversation Long-running agent investigations produce lots of evidence docs, but also need to quote from those docs when they respond to the user Every time I’ve played around with automated AI research I’ve asked the agent to repeat some sample model outputs so I can make my own qualitative check In the KV cache. ↩ Including tool calls. ↩ Coding agents often used to repeat tokens in tool calls (e.g. by re-outputting the entire file content for each edit) but I think this behavior has mostly been replaced with more efficient find-and-replace editing tools. ↩ I’m pretty sure that most mature inference providers already do speculative decoding based on previous ngrams in the input, which would at least exploit output repetition to deliver a speedup. ↩ The reason, broadly speaking, is also the reason why transformers are so important: because of the attention mechanism, input tokens can be ingested in parallel, while output tokens must be generated one-at-a-time. ↩ I’m only moderately confident about this. Some open-source reasoning models (particularly early ones) do, but those models also use way more tokens than frontier models for the same output, so my guess is that powerful frontier models don’t loop in their chain of thought very often. ↩ It’s possible that tool calls involve some repetition as well, if agents are composing content in the chain of thought and then repeating it in the tool. Any readers who have done a lot of coding with open-source models (or who work at a frontier lab) and thus know the answer to this, please email me if you can — I’m curious. ↩ And the better the harness, though I remain convinced that there isn’t that much comparative advantage in harness quality because everyone can copy each other. ↩ This applies to real life too, and is the reason why you shouldn’t hire the cheapest plumber you can find. ↩

0 views
Sean Goedecke 2 weeks ago

How to find meaning in large tech companies

Why do many people hate working in large tech companies? The obvious answer is “because organizational dysfunction stops them from doing the things they want to do”. Engineers like to write code and ship things, and if their company’s dysfunction is preventing that, it’ll make them unhappy. Right? I don’t think so, actually. If that were the case, those people would be interested in understanding the dysfunction and learning how to work around it, so they can do more of the things they want to do 1 . However, many people seem to actively avoid that. They find even contemplating the dysfunction to be as unpleasant as actually dealing with it. I think the reason for that is similar to why most people don’t like working in a messy room. People — particularly engineers — have a compulsion towards neatness. As I’ve written about before , it’s often our weird internal compulsions that drive our professional selves. If you feel a visceral disgust towards organizational dysfunction, spending any time thinking about it probably feels like being tainted. In Anathem , Neal Stephenson writes about a strange punishment where initiate scholars are forced to study “The Book”: a text written to be both complex and entirely meaningless. It takes a lot of intellectual effort to master The Book, but there’s absolutely zero useful content there. Studying it is thus a kind of self-damage. In Stephenson’s words, “the punishment lay in knowing that you were putting all that effort into letting a kind of intellectual poison infiltrate your brain”. Even if you’re not instinctively repulsed by inefficient organizations, working in one can take its toll. There are many, many things that a large tech company treats as important that are hard to take seriously: OKRs, some deadlines, internal training, attempts to build “hype” among employees, and so on. Acting emotionally invested in all of this can be alienating 2 . Getting good at persuading yourself to act like unimportant things are important is a lucrative but dangerous skill. If you do it long enough, it can feel like importance itself is an illusion. Before I became a software engineer, I did a master’s degree in philosophy 3 . When you tell people you’re studying philosophy, many people will ask if philosophy can solve their existential angst: they feel that the universe is very big and uncaring, and that humans make up only a tiny pin-prick of it, and that therefore nothing matters. Philosophers must have written about that, right? What’s the solution? The solution is to stop doing philosophy . If working in a dysfunctional organization has convinced you that nothing matters, you should refute that by coming into direct contact with things that matter. Go hang out with your kids, or take a walk in the park, or read a good book, or take your medication 4 . In other words, spend less time thinking about work 5 . I think this is good advice. But I also think there is quite a lot of real value and meaning you can get from working in a large tech company. Where is it? At large tech companies, millions of people will benefit from the work you do . If you make an amazing video conferencing app that a handful of people use, you will have to derive your satisfaction from the quality of your work. But if you can make Teams a tiny bit better, you’re making a tiny improvement in the lives of millions of people who use it. It isn’t easy to make enterprise pieces of software better, for lots of reasons . It sometimes requires jumping through awkward hoops or playing demeaning political games. However, it’s such a valuable thing to do. Every bug you fix or feature you add saves cumulative months or years of users’ time. This is still true if the software you’re working on is steadily getting worse, as most pieces of enterprise software do. Slowing that process down is important! Software engineering is really hard. Getting anything done in large organizations is also really hard. The intersection of these two hard problems is a nightmare morass of difficulty. It is not for the faint of heart 6 . Engineers from smaller organizations will mock you and invent fantasy stories about what your work is like. But if you can handle it — if you’re tolerant of mess, and if you have a rich enough personal life to be able to treat work politics with a healthy detachment — it is as rich a source of meaning as you could ask for. More or less the mission statement for this blog. I wrote about this in much more detail in Selling out . My specific subfield was “moral epistemology”: how we can know what’s right and wrong. If you think it’s a bit anachronistic for philosophers to believe in right or wrong at all, I suggest reading this Reddit post I wrote a long time ago: moral realism is surprisingly popular among academic philosophers. I mean this seriously. There are probably 1% of people who are so philosophy-brained that their existential angst does in fact derive from how seriously they take the arguments. These people might benefit from doing more philosophy. Everyone else is just depressed. At the risk of cultural stereotype, I think it is kind of distinctively American to try and derive your primary meaning in life from your workplace. On the other hand, you do spend a huge chunk of your life working, so it had better not be completely meaningless. I’m being hyperbolic here: in fact it is a relatively chill, well-paid job. More or less the mission statement for this blog. ↩ I wrote about this in much more detail in Selling out . ↩ My specific subfield was “moral epistemology”: how we can know what’s right and wrong. If you think it’s a bit anachronistic for philosophers to believe in right or wrong at all, I suggest reading this Reddit post I wrote a long time ago: moral realism is surprisingly popular among academic philosophers. ↩ I mean this seriously. There are probably 1% of people who are so philosophy-brained that their existential angst does in fact derive from how seriously they take the arguments. These people might benefit from doing more philosophy. Everyone else is just depressed. ↩ At the risk of cultural stereotype, I think it is kind of distinctively American to try and derive your primary meaning in life from your workplace. On the other hand, you do spend a huge chunk of your life working, so it had better not be completely meaningless. ↩ I’m being hyperbolic here: in fact it is a relatively chill, well-paid job. ↩

0 views
Sean Goedecke 2 weeks ago

Glue work is still harmful in the age of AI

I am not a believer in glue work 1 . Processes that can only be sustained by the unrewarded sacrifice of engineers ought to die. Now that LLMs are writing most of our code, does that free human engineers up to do more glue work ? No, it doesn’t. I think glue work is actually less important to companies than it was in the 2010s. Let’s go through four reasons why. First, AI decreases the amount of coordination needed to ship . The magnifying effect of AI agents means that any single engineer can now take on projects that would previously have needed a small team. A lot of glue work was helping with coordination: booking kickoff and status meetings, passing around internal updates, and so on. A single engineer doesn’t need to do any of that. Second, engineers in the 2020s require less “careful handling” . In my experience, the most important subcategory of coordination-based glue work was managing difficult people . Many companies have secret gatekeepers: engineers with outsized influence and large egos who will shoot down your project if they feel insufficiently consulted. I’ve written before about how some teams are structurally set up to be gatekeepers, and how some engineers could get by in the 2010s by basically saying no to everything . The end of ZIRP changed all that. Many of the prickliest gatekeepers have been forced out of the industry or coerced into changing their attitude, which reduces the amount of necessary glue work required to ship. Third, people are hiring fewer juniors . This is probably a bad thing for the industry, but it does also eliminate a big category of glue work. Experienced hires need less hand-holding, so companies don’t need people to quietly volunteer to onboard new hires. Fourth, write-only reports can be automated with LLMs . A lot of glue work was what I call “proof of work” : writing a report to demonstrate that you’re aware of what your team is doing, or filling in a template to satisfy some legal requirement. This was often work that nobody wanted to do, so it relied on someone volunteering to “be glue”. Now reports like these can be quickly turned out with LLMs. It doesn’t really matter that nobody wants to read LLM text, because the point of these reports was never to be read anyway. Can LLMs just automate all glue work? Absolutely not. Many engineers are trying to do this out of a kind of manic optimism, but it’s a really bad idea. Write-only reports are one thing, but communicating to other engineers cannot be delegated to an LLM . When you need to check in on the status of a project, or respond to someone else’s ping, or anything like that, you should compose and write the message yourself. Nothing will torch your relationship with other engineers as quickly as making them talk to your Claude Opus instance. So where does that leave us? More or less where we were in 2024 , I think. Avoid at all costs becoming “the glue work person”, let bad processes fail so they can be changed, but be willing to do small amounts of tactical glue work where it can meaningfully contribute to the success of your projects. Most of your time and effort should still be spent on the code: on driving AI agents and aligning them with your company’s values . Glue work is all the squishy “non-technical” work that goes into building software: making sure teams are talking to each other, writing reports, updating docs, onboarding engineers, and so on. Specifically it’s the parts of that work that are not included in the formal process , and that only really get done if someone volunteers to do it. For more on why I don’t like it, see my 2024 post Glue work considered harmful . Glue work is all the squishy “non-technical” work that goes into building software: making sure teams are talking to each other, writing reports, updating docs, onboarding engineers, and so on. Specifically it’s the parts of that work that are not included in the formal process , and that only really get done if someone volunteers to do it. For more on why I don’t like it, see my 2024 post Glue work considered harmful . ↩

0 views
Sean Goedecke 3 weeks ago

LLMs are terrible at designing AI systems

LLMs don’t know how to design software that uses LLMs. They’re comfortable writing normal programs, but if you throw an AI-shaped problem at them, they will usually screw it up. Why is that? For example, this post describes an attempt to vibe-code a memory tool that would flag when one memory contradicted another 1 . This is a great instance of a task that was virtually impossible five years ago but is now relatively trivial due to LLMs. You can simply task a LLM with scanning for contradictions, either in a big batch or pairwise 2 . However, when asked for the “state of the art” approach 3 , the AI agent in this case did not recommend LLMs. It started building a bewilderingly complex symbolic system to convert the memory items into structured logical atoms , then mechanically compare them with a solver. This, of course, did not and could not work, because there is no analytic way of determining whether any two natural-language sentences express the same proposition. The LLM knew this was impossible! When the user eventually lost patience and said “hey, why isn’t this working”, Claude immediately explained that this was a known 130-year-old problem with no solution. And yet it happily went around and around for weeks iterating on a dead end. I’ve run into this myself. When I was building Autodeck (AI-generated spaced repetition cards) my agents would routinely try to categorize cards by regex or keyword search instead of just making another LLM call. Why would this be happening? I have two obvious explanations and one deeper one. The first obvious explanation is that most training code is pre-LLMs . Assuming the labs aren’t feeding the current avalance of slop repositories directly into the models 4 , the vast majority of the code that models learn from was written before LLMs were an option. So it would make sense that they’d reach for non-LLM approaches, in the same way that they’d reach for jQuery over modern vanilla JS, or Backbone.js over React, right? Wrong, actually! LLMs don’t choose jQuery and Backbone. Whatever part of the training process pushes them towards up-to-date knowledge in other areas isn’t successfully pushing them towards LLMs, so this can’t be the whole story. The second obvious explanation is that RLVR is not a good environment to write code that calls LLMs . Much of the time LLMs spend training is spent in reinforcement learning environments where an automatic grader determines their performance (for instance, by running some code they wrote and checking the outputs). I don’t know this for a fact, but I would be surprised if these environments contained the credentials and API access for a LLM to call other LLMs 5 . So even if the pretrained LLM was comfortable writing that kind of code, the reinforcement learning process might discourage 6 it from doing so. The third explanation, which I like the most, is that current AI agents are just not very good at software design . On this explanation, picking a doomed symbolic approach instead of simply calling a LLM is not a weird aberration but a normal instance of AI agents picking the wrong tool for the job. I’ve seen this behavior from LLMs in other contexts too: trying to build complex (and doomed) consensus algorithms instead of tolerating stale data, introducing synchronous checks in event-driven systems, and so on. In the past I’ve chalked these up to alignment , but I’m open to the idea that they’re just ordinary errors of software design. One lesson I learn over and over again is that I can’t judge a LLM by the standards of a human. Any human programmer who was capable of implementing a sophisticated symbolic solver would know that it wouldn’t work, and so if they suggested that approach I’d assume 7 they had a good reason. Only a LLM could be both smart enough and dumb enough to make this mistake. I write a lot about the skills that are involved in working effectively with LLMs. I still stand by what I wrote in February 2025 : Using LLMs well involves extracting value from what they’re good at and avoiding wasting time at what they’re bad at. This is surprisingly hard, because of the point above. LLMs are good and bad seemingly at random: they will work hard for hours but sometimes be shockingly low-effort , they will draw on inhumanly broad expertise but fail to apply the most basic common-sense, they can successfully rewrite enormously complex programs but will often make very silly errors in design. If you can predict where they will do well or badly ahead of time, you can get enormous value from LLMs; if you can’t, you will likely waste a lot of time and tokens going down hopeless approaches. Here’s another example where the user “implied” that Opus 5.5 should use a judge model and it instead constructed a series of regex checks. Here I’d probably reach for a decision model . In hindsight, this was probably the key mistake, though I don’t know how you’d turn that into advice for non-technical vibe-coders. Never asking the agent about the state of the field is a mistake too. Put one more notch on the LLMs reward expertise belt. A fair assumption, I think: even though training on low-quality synthetic data clearly isn’t catastrophic for LLMs, it can’t be great . It would be expensive, slow, and risky. This theory also explains why LLMs are great at prompting other LLMs as subagents, or on training LLMs from scratch: they’re likely directly RL-ed and evaluated on that, unlike on writing code that calls LLMs. Well, okay, I wouldn’t — I’m arrogant enough to ask anyway — but I’d at least expect a good reason. Here’s another example where the user “implied” that Opus 5.5 should use a judge model and it instead constructed a series of regex checks. ↩ Here I’d probably reach for a decision model . ↩ In hindsight, this was probably the key mistake, though I don’t know how you’d turn that into advice for non-technical vibe-coders. Never asking the agent about the state of the field is a mistake too. Put one more notch on the LLMs reward expertise belt. ↩ A fair assumption, I think: even though training on low-quality synthetic data clearly isn’t catastrophic for LLMs, it can’t be great . ↩ It would be expensive, slow, and risky. ↩ This theory also explains why LLMs are great at prompting other LLMs as subagents, or on training LLMs from scratch: they’re likely directly RL-ed and evaluated on that, unlike on writing code that calls LLMs. ↩ Well, okay, I wouldn’t — I’m arrogant enough to ask anyway — but I’d at least expect a good reason. ↩

0 views
Sean Goedecke 3 weeks ago

Working with designers

I love working with designers, in part because (unlike managers and product managers) they’re culturally different from engineers. However, having more than one designer on a team is asking for trouble, and I have complicated negative thoughts about design systems. Designers demonstrate their value immediately. While working on some feature, I’ll typically put together some placeholder UI that I’m reasonably happy with. I then show it to a designer, who strokes their chin and says “hmm, I have some ideas here”. They then go away and produce a mockup UI that is not just clearly better, but better in ways I could not have imagined. There aren’t any other roles at a tech company where you can see the value at a glance. Designers are an unusual role in other ways, too. Engineering managers, product managers, and engineers all come from broadly the same stock: technical, detail-oriented planners. We are people of the spreadsheet. In fact, many managers and product managers were once engineers: it’s a natural transition. Not so for designers. I’m sure they exist, but I’ve never met any designers who started out as engineers. Because of this, designers are culturally distant from engineers. In my experience, this is a big positive. I’ve complained before that product managers who were once engineers tend to be worse, not better. Once you start trying to make your own secret technical assessments instead of finding a way to trust your engineering team, you’re doomed: you won’t be able to do it well enough, and the fact that you’re trying will make it impossible to build the trust you need. Designers don’t have this problem at all 1 . So far I have made designers sound like the elves of Middle-earth: mysterious creatures who glide around tech companies dispensing magic. In fact, they are more like the Slavic household spirits, or Domovoy . If you have one Domovoy in a household, it will protect your home against misfortune. If you ever have more than one, they will fight bitterly : “making all sorts of noises, injuring the cattle, turning the master out of his bed, choking people while asleep, etc”. Likewise, a designer can turn your scrappy product into something really beautiful — but you had better have only one designer, otherwise you’re asking for trouble. The worst experience I have ever had working with designers was on a product where we had three of them: initially just one, who then rotated off the project and was replaced by two very senior designers. As far as I could tell, the first design was pretty good. Unfortunately, the new designers didn’t feel the same way. The very first thing they did was completely redesign the product, which meant I had to rewrite most of the frontend styles. Then they began disagreeing with each other. I think we went back on each page of the product three or four times: one designer would tell me to change X, then the other would change it back, and so on. In the meantime, I was desperately trying to get the product to work. I knew what I was supposed to do in theory: get everyone in a room talking to each other and hash out a decision. Maybe this would have worked on a different product where the requirements were more stable, but it didn’t work here. The differences in taste, while imperceptible to me, were just too deep. It seemed like everything Designer A produced was slightly wrong in Designer B’s eyes, and vice versa. In the end we just powered through by implementing 2 each new iteration until about a week before the deadline, at which point I called in two layers of management as air cover 3 to freeze the design in its current state. These were really good designers! They were far, far better than me at design, and were very nice people who I’d happily work with again. I just think it’s inherently bad to work with more than one designer at a time. I’ve had this experience over and over on different teams and companies. I can only guess 4 as to why, but here are two theories: One way companies try to scale design work is to produce a “design system”: a library of frontend components that are all design-compliant, that can in theory be assembled like Legos into a page that looks consistent with the rest of the company. I hate design systems. However, like democracy , they’re better than any other way I’ve seen to enforce a consistent design. The first problem with design systems is one of incentives. The engineering team that owns the design system 5 is incentivized to produce elegant components that will look beautiful all the time. The engineering teams that use the design system are incentivized to produce systems that meet inelegant or ugly customer requirements. So you have this permanent battle where a product team demands something — say, the ability to embed arbitrary images into the dropdown component — and the design team pushes back because they’re worried it will look bad. The dynamic I described above (where designers tend to disagree with each other) makes this much worse. Often an embedded designer on the engineering team will push for some design that is slightly different from the design system, which (a) makes the design system owners very unhappy, and (b) makes the engineers unhappy, because the component must be tortured into a very slightly different appearance. The result of this problem is that engineering teams are perpetually hacking their way around the design system: reimplementing their own versions of components, reaching in with CSS to tweak the styles of existing components (which then get broken in each component update), and so on. This leads into the second problem: compatibility. Design systems are typically written in the latest and greatest frontend framework, but the actual frontend code at a company is always a hodge-podge of various technologies and versions that are too expensive and risky to update. For instance, you often have a design system in React that is being used to plan changes to a frontend in pure HTML and CSS 6 . I have spent years of my life wrestling with this exact problem: either you spend ages trying to reimplement some percentage of the React component, or you try and use the outdated pure-CSS design system (if one exists), or you give up and just embed a React component directly into the HTML. All of these are very unpleasant for different reasons. One common situation is that the version of the design system available to you (i.e. the pure-CSS version, or the React 16 version) looks subtly different from the design system available to your designer , and so when you plug your Legos together you don’t quite get what they were visualizing. This leads to a very tedious conversation where you have to explain that no, it’s not actually trivial to bump the entire app to the latest React version 7 . When you’re actually implementing the app, you have to constantly run a kind of translation in your head: “okay, the designer wants dropdown feature A, but the dropdowns in my version of the design system only offer features B and C, so I guess C is close enough…” I still think design systems are better than the alternatives. When you’re up-to-date and don’t have a designer who wants anything weird, they work great . Ensuring that a thousand engineers across a giant application all produce consistent UI is a very hard problem and I don’t know any other way to solve it. I just wish that the designers I worked with were more considerate of the fact that design systems often make the immediate work of engineering more difficult. The classic three-legged stool of product development is made up of engineering, product management, and design. Design is definitely the shorter leg. Almost every team I’ve worked on has had some kind of embedded product management, but only about half the teams I’ve worked on 8 have had some access to design (and even fewer have had an embedded designer on the team). Why is that? Partly it’s because there are products that don’t require design, or at least not in the visual sense that designers provide. Some of the teams I’ve worked on have owned systems with no real visual component: APIs, billing and reconciliation, markdown or pdf rendering 9 . I have seen companies put designers on these teams anyway, out of some sense that “design thinking” can improve the structure of an API. This is nonsense. Good API design is very important , but it’s a technical job, not an aesthetic one. Designers on these teams typically just sit around or tunnel-vision on some unimportant piece of UI that the team does own (e.g. some internal admin component that no customer will ever see). It’s also because badly designed products still work. I don’t think Netlify Analytics is well-designed: it’s awkward to use and does not show me information it definitely has. But I still pay for it, because I want server-side analytics for my blog. I don’t think many people have complimented the aesthetics of the Microsoft Azure admin portal, but Azure broke $100B of revenue this year. There are very few software products where design is truly business-critical. As an engineer, I selfishly wish I could work with a designer all the time. I want to work on beautiful products, and I can’t make them beautiful myself. This is partly structural. Because they’re not responsible for delivery, they just aren’t under the same pressure as product managers and managers. In fairness, it helped that both designers were technical enough to write their own frontend PRs, though these usually needed some polishing and deploying. This didn’t really work. While there were no major redesigns after that point, we were shipping design changes until the day before launch. Incidentally, if you’re a designer reading this, please email me! I’d love to know if this sounds right to you, and if so whether you have theories as to why. The culture on these teams tends to be a bit unusual as well: you get the subset of frontend engineers who are obsessed with general frontend software design instead of specific products. It’s like a whole group made up of the one guy in your team who is really into Haskell. Or in Angular, or in a different version of React. Sometimes because it’d break all the little hacks to the design system that your designer has strong-armed you into doing in the past. I did some very loose vibe research which estimated that Microsoft/Google/Amazon has 3/10/7 designers per 100 engineers, compared to 7/7/9 product managers. This sounds like it’d have a visual component but it’s not the kind that requires design : sandboxing a pdf or turning markdown into HTML is a technical operation that happens pre-design. The team that owns the page where that pdf or HTML is rendered is the team that makes design decisions about how it should look. Engineering disagreements can pivot on concrete measures of quality like latency, bugs, lines of code, and so on, while designers must rely only on taste Design changes anywhere affect the whole product, because users experience the product as a single design, while many engineering choices are invisible to the user (and so can be safely inconsistent) This is partly structural. Because they’re not responsible for delivery, they just aren’t under the same pressure as product managers and managers. ↩ In fairness, it helped that both designers were technical enough to write their own frontend PRs, though these usually needed some polishing and deploying. ↩ This didn’t really work. While there were no major redesigns after that point, we were shipping design changes until the day before launch. ↩ Incidentally, if you’re a designer reading this, please email me! I’d love to know if this sounds right to you, and if so whether you have theories as to why. ↩ The culture on these teams tends to be a bit unusual as well: you get the subset of frontend engineers who are obsessed with general frontend software design instead of specific products. It’s like a whole group made up of the one guy in your team who is really into Haskell. ↩ Or in Angular, or in a different version of React. ↩ Sometimes because it’d break all the little hacks to the design system that your designer has strong-armed you into doing in the past. ↩ I did some very loose vibe research which estimated that Microsoft/Google/Amazon has 3/10/7 designers per 100 engineers, compared to 7/7/9 product managers. ↩ This sounds like it’d have a visual component but it’s not the kind that requires design : sandboxing a pdf or turning markdown into HTML is a technical operation that happens pre-design. The team that owns the page where that pdf or HTML is rendered is the team that makes design decisions about how it should look. ↩

0 views
Sean Goedecke 3 weeks ago

A database is a store for global variables

Databases are for storing global variables. We usually call them “rows” or “records” instead, but they’re definitionally global variables: any part of your program can read or write them. Isn’t this kind of weird? It’s common programming advice that global variables are bad, and yet many elegant programs rely on databases. Either the common advice is wrong, or there’s something special about databases that makes them the exception to the rule. What’s so bad about global variables? Here’s the two main 1 reasons, in my view: Both of these apply to databases. Any part of your program that makes a query can send and receive data from any other part of your program. In practice this happens all the time: one function will save some data on a record, and another one will check for it. And if you haven’t seen bugs where some piece of code makes some incorrect expectation about the shape 2 of a database column, you haven’t been working on web systems for long enough. So why aren’t database-backed apps in terrible architectural shape? In the rest of this post I’ll consider some options. First, we could bite the bullet : maybe all database-backed apps really are a mess . This is surprisingly plausible. When I think about the systems I’ve worked on that haven’t involved a database, they’re usually much cleaner and more elegant. If managing state is the hardest thing about designing software — and I think it is — then systems that manage less state are going to be better-designed. However, this doesn’t explain everything. Database-backed apps aren’t that bad, and even in database-backed apps, we try to avoid introducing regular global variables 3 , so in practice we treat global variables as worse. Second, we could say that databases offer ACID guarantees that mitigate the damage of global variables . Unlike regular global variables, databases offer a consistent view of state and the ability to atomically change multiple pieces of state together. I don’t really buy this. The problem with global variables is not just that they can get out of sync, it’s that they exist at all. If you think this is the difference, you are committed to thinking 4 that if you stick a mutex around a global variable then it suddenly becomes acceptable. Third, we could say that databases are more explicit . Mutating or reading a global variable looks like ordinary code, but database queries need some connection object to be passed in and some query function to be invoked. When you’re scanning through code, you can see where the database queries are at a glance 5 . Not so for global variables. This does actually kind of mitigate the implicit-coupling problem. Maybe regular global variables would be better if you had to set and get them with long, involved function calls. Fourth, we could say that databases are less flexible . A global variable could store anything : a function, a class, an image, and so on. A database just stores data . I can buy this explanation for untyped languages. Global Ruby variables that could be reassigned from a string to a hash table are far more terrifying than a “global” database column that could change from one string to another string. But since the advice to avoid global variables applies to typed languages as well, I don’t think this could be the reason why databases are better. Fifth, we could say that we know how to use databases . For instance, whenever I read from a database, I reflexively check the type of the column so that my code doesn’t make assumptions that aren’t guaranteed by the database. There are use-cases that I would never even consider using a database for (e.g. to track a counter in a loop, or to store the name of the file where my config is stored). In other words, we have norms and customs 6 around using databases that minimize a lot of the damage that global variables can cause. There’s nothing inherent about databases that make them better, it’s just how we use them in practice. Overall I think the third and fifth reasons are most convincing: databases are better because they’re more explicit and because we only tend to use them for a limited set of purposes. It’s interesting to note that these reasons are contingent , not inherent. A codebase which had conventions around global variable use 7 could also fulfil these conditions. Would this make global variables fine, or at least no worse than a database? I think so. I don’t recommend you go out and start putting global variables in your programs. It’s more interesting to note the meta-point here: that two pieces of common software engineering dogma — avoid global variables and use a database for state — are partially inconsistent. Most software design knowledge is still just a pile of loose heuristics. I don’t really know how to build software and you don’t either . As I’ve written about before , we should therefore all be very suspicious of engineers who appeal to “best practice” without being able to give concrete reasons, even in cases as obvious as “global variables are bad”. For instance, concerns about readability and tracing follow from the first reason. I don’t really buy reasons like “it’s not thread-safe” or “global variables might shadow local variables”: any architectural problem that can be trivially solved with a mutex or a linter is not a real problem. For instance, that a string supports 4-byte UTF-8, or that a column can/can’t be NULL. You could say we avoid introducing global variables because databases are essential and global variables are not. In theory you could replace any global variable by threading a local variable through, but you do need a database if you’ve got gigabytes of structured data to manage. However, that doesn’t explain why database-backed apps still tend to be better-designed than apps with many global variables. I’m not saying this is necessarily wrong. The argument would go something like “well, if you implement a simple in-memory database for your global variables, that is better!” This is only sort of true. If you’re designing a system, you’d be well-advised to make it as true as you can. While I love Rails, my main beef with ActiveRecord is that it makes queries invisible. To be fair, some of these are guaranteed by the fact that the database exists over the network. Plus types, probably, and concurrency controls if we’re not in a single-threaded language. They allow any part of your program to implicitly send data to any other part instead of passing it around via function signatures They couple different parts of your program: if one part depends on a variable having some value, any other part can break it For instance, concerns about readability and tracing follow from the first reason. I don’t really buy reasons like “it’s not thread-safe” or “global variables might shadow local variables”: any architectural problem that can be trivially solved with a mutex or a linter is not a real problem. ↩ For instance, that a string supports 4-byte UTF-8, or that a column can/can’t be NULL. ↩ You could say we avoid introducing global variables because databases are essential and global variables are not. In theory you could replace any global variable by threading a local variable through, but you do need a database if you’ve got gigabytes of structured data to manage. However, that doesn’t explain why database-backed apps still tend to be better-designed than apps with many global variables. ↩ I’m not saying this is necessarily wrong. The argument would go something like “well, if you implement a simple in-memory database for your global variables, that is better!” ↩ This is only sort of true. If you’re designing a system, you’d be well-advised to make it as true as you can. While I love Rails, my main beef with ActiveRecord is that it makes queries invisible. ↩ To be fair, some of these are guaranteed by the fact that the database exists over the network. ↩ Plus types, probably, and concurrency controls if we’re not in a single-threaded language. ↩

0 views
Sean Goedecke 3 weeks ago

Audience capture

Audience capture is the part that scares me the most about writing on the internet. I have the soul of an engineer 1 : when I see a metric like engagement, I want to improve it. I like to make the number go up. In fact, the whole environment of online writing is tailor-made to help you make engagement numbers go up. It’s trivial to find out how many people are reading my posts, and from what sources. Hundreds of link aggregators all over the internet have algorithms that will help my most engagement-friendly posts get views, and the comments are helpfully sorted by upvotes so I can read the “best” 2 pieces of feedback straight away. Many platforms are set up to financially reward you for engagement, whether that’s by enabling advertisement or by straight up paying you out . Leaning into this environment is a huge mistake. Views and engagement are valuable to me, but not directly. They are proxy metrics for the things I actually care about: It does not benefit me at all to have ten thousand people click through to one of my posts, scan the first sentence, then close the tab. It benefits me only a little 4 to have a hundred people read the title of my post on Hacker News, decide not to click through, and leave their comments in the thread. The set of people who do those things — we could call them “clickers”, as opposed to “readers” — does not really overlap with the set of people who will actually read my posts and think about them. And yet in terms of metrics and engagement, they are indistinguishable. As with any proxy metric, optimizing it too hard can cause it to diverge from the actual value it’s targeting. This leads to the scariest form of audience capture : being captured by an audience you don’t really even want. Suppose I get a lot of views when I write posts about how stupid it is to use microservices 5 , because it’s a hot topic. That gives me a reason to write more posts about microservices. The numbers keep climbing. However, I suspect the set of people who read my posts thoroughly — the audience I actually care about — don’t really want to read a bunch of the same screeds about that, so they drift away 6 . The people clicking don’t care because they’re not reading the posts anyway. So I’m actually failing, not succeeding: I’m replacing my audience of careful thinkers with a fake audience of clickers and sneerers. This is not just a post about writing on the internet. In 2025, I wrote Trying to impress people you don’t respect about how succeeding as an engineer involves, well, impressing people who you may not necessarily respect. The core idea here is knowing what game you’re playing . Some games are proxy games, like getting views on posts or having great Jira ticket metrics. Some games are real games, like gaining the respect of people who you respect, or doing technical work you can be proud of, or trying to convince people of things that you believe are true. The difference is in whether you care about the goal of the game, not in whether that goal is objectively valuable. If you really want to get promoted , then that’s a real game; if you just want to do solid technical work, getting promoted might be a proxy game that you play in order to get into a position to do that. But even though you don’t really care about it, it’s easy and tempting to win the proxy game at the expense of the real game: for instance, to crush Jira tickets because they’re in front of you instead of doing what will actually get you promoted, or to get views on the internet by playing into clickbait. Making tradeoffs like this is sometimes fine. For instance, you might decide to impress people you don’t like so you can afford to send your kids to a good school. Selling out a little bit is good and healthy 7 . But do it with eyes open! The absolute worst thing you can do is to sell out by habit , in situations where it doesn’t even buy you anything you want. There are a lot of posts that I really enjoyed writing that did not get much attention: typically posts where I get a bit more into the philosophy or history, or posts that are dry technical explainers . Some of my most popular posts are laments about a changing industry that are really just popular because they give people an outlet to share their worries too, not because of anything I wrote. I think it’d be a big mistake to lean into writing more posts like that and fewer posts like this. For one, if I want to just optimize for engagement, why write blogs at all? Why not post ragebait and pornography? But the main reason is that I’m writing for the 5% of readers that will read my posts, think about them, talk to other people about the ideas, email me with their comments, and so on. Raw view counts help expose my writing to more of those people, but they don’t give me much signal on whether I’m appealing to them or not. For that I have to just rely on my taste, or on the thin signal I get back from the readers who do email and message me with thoughtful responses. In my own terminology, an “impure engineer” . Or at least the cleverest, or the most cutting. Too honest? I could be even more honest and add “encouraging people to potentially hire me if I’m ever looking”, too. Boosting engagement on Hacker News means the post is more visible for people who might actually read it. Imagine it’s 2015 again. Go on, you know you want to. Sunil Pai has a great post about this dynamic. To quote him: “you don’t get a notification that says, “three people respected you slightly less after reading that.” you don’t get one saying, “someone who was thinking about introducing you to somebody decided not to,” or “someone who thought you might be great to work with now thinks you seem like kind of a pain in the ass.” that stuff is completely invisible.” If you prefer, you could call it “flexibility”. Having smart, informed people read and consider my ideas Getting feedback from readers who have concrete experience with the topics I write about Joining interesting public conversations about the state of the industry Convincing people to think like me on points I care deeply about Building a reputation as a careful thinker and a good writer 3 In my own terminology, an “impure engineer” . ↩ Or at least the cleverest, or the most cutting. ↩ Too honest? I could be even more honest and add “encouraging people to potentially hire me if I’m ever looking”, too. ↩ Boosting engagement on Hacker News means the post is more visible for people who might actually read it. ↩ Imagine it’s 2015 again. Go on, you know you want to. ↩ Sunil Pai has a great post about this dynamic. To quote him: “you don’t get a notification that says, “three people respected you slightly less after reading that.” you don’t get one saying, “someone who was thinking about introducing you to somebody decided not to,” or “someone who thought you might be great to work with now thinks you seem like kind of a pain in the ass.” that stuff is completely invisible.” ↩ If you prefer, you could call it “flexibility”. ↩

0 views
Sean Goedecke 3 weeks ago

LLMs are not superhuman at reading and writing neural network weights

A recent paper argues that frontier LLMs can work with neural network weights directly. This seems superhuman, but it isn’t. The paper shows that GPT-6 Astra can take a small neural network and interact with its weights directly, “well past what we’d expect from humans or conventional algorithms”. Specifically, Astra was able to identify what games a small network 1 was trained to play just by looking at the weights, and even tweak the weights itself. The most impressive result is Astra significantly improving a 0.8B Qwen LLM’s ability on mathematics by natively editing its weights. The reason to be excited here is that “superhuman ability to improve language models” is precisely the kind of thing that could cause recursive self-improvement. I think a smart human ML researcher could perform all of these tasks . Figuring out what game a model was trained to play based on the network sounds impressive until you consider three points: Here’s that calculation expressed as a heatmap in three lines of Python: And here’s the heatmap for each game: If someone showed you that heatmap without the game labels, I think you’d be able to immediately identify at least the first three games purely by noticing where the player is (e.g. for Breakout, in a horizontal line at the bottom) and where the moving objects are (e.g. for Pac-Man, in the distinctive Pac-Man maze). It’s neat 3 that Astra was able to calculate the norms in its head without executing Python, but not that impressive, and certainly not something that should shock anyone who’s been paying attention. I’m not going to go through each example 4 in the paper, so let’s skip straight to the most impressive one: fixing a 0.8B Qwen model’s ability to do mathematics. 0.8B is a lot of parameters, and “mathematics” is way more complicated than “guess what the game is based on how the player moves”, and editing weights is arguably harder than parsing them. What happened here? First, note that the Qwen model was not “bad at mathematics” in a pure capabilities sense. It had a specific problem where after 32k tokens it would get stuck in loops, so any mathematical task that needed more than 32k tokens would automatically fail 5 . If you had a model that looped like this, how would you update the weights to fix it? Personally, I would try steering : I would write some reasoning texts that looped and some reasoning texts that didn’t, calculate the difference between the looping and non-looping residuals, measure how much each weight contributed to that difference, then try manually trimming those top weights. This is basically the Heretic abliteration playbook. And this is exactly what Astra did! It wrote four pairs of texts, measured 6 the weights that contributed to looping, started cutting them down and testing if it worked, and ended up finding a patch that stopped the Qwen model from looping, thus making it able to work on mathematical problems for more than 32k tokens. Again, this is exactly what a competent human researcher could have and would have done. It’s cool that Astra was able to make direct weight updates. But we shouldn’t think of this like a radically new capability that will change how AI research is done. We should think of this as analogous to the ability of LLMs to emit machine code and tweak compiled binaries: it’s an impressive trick, but the best way to work with binaries is still to write source code and compile it. Likewise, the best way to update the weights of a model is to train it normally. To the extent that intelligent LLMs help with AI research, they will help by improving training , not by magically tweaking model weights directly. Around 17k weights. By taking the L2 norm of each input across the 32 weights in the first layer. Note that this is superhuman mental mathematics, not superhuman AI research. The most impressive one I’m skipping is hand-writing a neural network from scratch. While cool, if you can express a task as a simple program, we already know it’s possible to express that program as a NN , even by unaugmented humans . All the <32k token problems were solved successfully on the original Qwen model. Unlike with the toy game networks, it had access to Python. The input channels of the model directly listen to each 8x8 grid cell The input channels are labeled (e.g. “agent”, “moving objects”) It’s thus relatively trivial to calculate 2 which parts of the grid the first layer of weights cares about and why Around 17k weights. ↩ By taking the L2 norm of each input across the 32 weights in the first layer. ↩ Note that this is superhuman mental mathematics, not superhuman AI research. ↩ The most impressive one I’m skipping is hand-writing a neural network from scratch. While cool, if you can express a task as a simple program, we already know it’s possible to express that program as a NN , even by unaugmented humans . ↩ All the <32k token problems were solved successfully on the original Qwen model. ↩ Unlike with the toy game networks, it had access to Python. ↩

0 views
Sean Goedecke 4 weeks ago

Reliably aligning LLMs is impossible in principle

Powerful AI is unpredictable. Your robotic butler may suddenly decide to kill you 1 for no comprehensible reason, in the same way that Bing’s helpful chat AI would sometimes try to blackmail or seduce its users. “Solving alignment” means understanding even superintelligent AI minds well enough to be confident they’ll never do that. As I see it, solving alignment for LLMs isn’t just impossible, it’s incoherent: we can’t even articulate what it would look like to succeed. Prior to LLMs, AI safety researchers thought AI would be a “blind optimizer”: like a chess engine, it would be superhumanly focused on achieving some fixed goal. If the goal wasn’t safe (for instance, “manufacture cheap paperclips”), a powerful AI might wreak havoc on the way to achieving it. Aligning AI thus meant figuring out how to specify the right goal. This is harder than it sounds 2 , but it’s at least possible to imagine it happening. Unfortunately, modern LLMs aren’t like chess engines. Instead of being trained on some concrete verifiable reward 3 , they’re trained to imitate a giant, highly-varied corpus of human writing. This makes them weird . They contain a nearly infinite array of personalities, which they seamlessly switch between based on their inputs. Frontier AI labs try hard to make these personalities safe and stable, but there are still many strange cases where LLMs seem to switch into mysterious or dangerous personas. The problem here is that LLMs don’t have fixed goals . There’s nothing that you could, even in principle, formally specify in order to constrain their behavior. The “goals” that LLMs do have are informal, organic, multifarious, and constantly shifting as the dominant persona (or blend of personas) changes. They’re nicknamed shoggoths for a reason. So we can’t align them by specifying their goal. Instead, we have to try the other approach: understanding them well enough that we can be sure they’re safe. And unfortunately that approach is doomed from the start. What does it mean to ask for a full understanding — or full enough understanding — of why an LLM generates some token? In one sense, we have that already, because we can mechanistically trace through the calculations involved. But we don’t know what those calculations mean . Saying that Grok called itself “MechaHitler” because these billion weights multiplied in this way doesn’t tell us why Grok did it. What we would need for alignment purposes is a more human-like and less mechanical sense of understanding: a full understanding of motive . To see why a full understanding of motive is a foolish thing to ask for, imagine asking it about a human. Suppose you were hiring a nanny or electing a president and you wanted to be sure that they were going to act in your interests 4 . Humans sometimes do very surprising things out of nowhere, after all. Would it be sensible to ask for a full understanding of that person’s mind, in order to reassure yourself that they would act in the way you wanted? Of course not. It’s meaningless to even talk about a “full understanding” in this sense, because the mind is not a mechanism that operates via clean, understandable abstractions. It is a morass of electric and chemical impulses from which a “self” bubbles up 5 . There are no motives of the kind you’re looking for! Motives bottom out early on, and tracing the causal chain beyond that can only be done mechanistically: i.e. unhelpfully, for the same reason that explanations based on model weights are unhelpful. Couldn’t a sufficiently detailed mechanistic explanation give us the confidence we need? The best we’ve got along those lines right now are the tools of “mechanistic interpretability”: features, neurons, probes, and circuits. You observe the model doing something, see which parts of its “brain” light up 6 , and correlate those with some pattern of behavior. If you can then induce that pattern by artificially boosting that part of the “brain”, you can claim victory. Even assuming total success, this program cannot deliver us the kind of understanding we’re looking for. First, we label patterns based on behavior we observe, but the main misalignment case we’re worried about — the LLM suddenly performing some shocking harmful action — is definitionally something we aren’t going to observe before it happens. We can’t identify a feature without first eliciting its behavior 7 , and we can only elicit a small subset of potential model bad behavior. There will always be many untracked failure modes. Second, the labels we apply to patterns are our guesses, and may be wrong. The philosopher Kripke famously argued that, until you run into the relevant case, there’s no meaningful difference between the “addition” rule and the “quaddition” rule (a version of addition where if either number is greater than 57 the answer is always 5). Likewise, the LLM feature we call “kindness” might be “kindness unless the year is 2030”, or “kindness unless the LLM is in a position to cause mass casualties”, and so on. Those features are completely indistinguishable 8 from our perspective. Third, even an exhaustive well-labeled map of features and patterns would not give us certainty that a model could not go rogue. The full combination of features involved in any model action would be far, far too complex to interpret. For instance, if a model has “evil” lit up, is it because it’s trying to avoid evil, or trying to cause it, or trying to combat it, or is worried about some hypothetical evil action, or is anticipating that a user might make the judgement? We would have many, many billions of questions like that to answer per-token . Far too many for a human to comprehend 9 , certainly. Could some hypothetical, radically different kind of mechanistic interpretability somehow predict all possible actions a model might take in advance and rule out actions like “kill all humans”? I think this at least could be semantically coherent, but it runs into the problem above. Models can accept a near-infinite array of inputs and give a near-infinite array of outputs. This definitely cannot be comprehended by a human, only by another model, which itself would have to be checked by another model, and so on. If you think solving LLM alignment is possible, I would love to read your description of what it would even look like for us to understand LLMs well enough to be sure they’re safe. I would love to know if you think humans are similarly understandable in principle (and if not, what makes LLMs different). It seems to me that if we think clearly about the topic, we don’t even know what it would mean to be confident that we have aligned an LLM properly 10 , because “motive” simply doesn’t exist at the level of detail we’d need. Of course, we have mitigations in place. Chain-of-thought monitoring is surprisingly helpful for a mechanism that appeared by accident, so long as we never train on reasoning tokens themselves. We can sandbox models and put humans-in-the-loop and watch for feature activations and so on. But it’s been well understood since the early 2000s that these are insufficient 11 to detect or control a superintelligence. Whether you think mitigations are enough depends on whether you take superintelligence seriously. Mechanistic interpretability is still a useful field. Extracting features can help us train models that do less reward-hacking and are more helpful under ordinary circumstances. There’s just no way it will ever solve the problem of LLM agents going rogue and causing massive harm, because the kind of understanding we’d need to prevent that is impossible in principle. It’s relevant to note that humans sometimes do this too. From Vaneigem : “One fine morning, the faithful lackey, who has hitherto identified completely with his master, leaps on his oppressor and slits his throat.” For instance, the goal “eliminate suffering” is best satisfied by destroying all humans, the goal “maximise everyone’s happiness” is best satisfied by hooking everyone up to a fentanyl IV, and so on. It’s also very difficult to find a way to translate concepts like “happiness” and “well-being” into a formal goal, and if you get it wrong, the difference between the concept and your formalization is likely to lead to dire consequences. Yes, I know LLMs are partially trained in this way, but being RLVRed on millions of different rewards does not produce a coherent goal. There’s no way to formalize in advance the utility function that RLVR instils in the model, and no way even to reliably predict how it will interact with the goals and personas that emerge from the base model. Of course, for humans you can rely on institutions, social proof, and so on. This doesn’t work for superintelligent LLMs because they (a) arrive fully-formed with no social proof and (b) are smart enough to be much more dangerous than a single rogue human. (Incidentally, the LLMs I asked to review this post were obsessed with this point, and wanted me to elevate it into the main thrust of the post). Perhaps as an epiphenomenon. If you’re interested in this idea and want to see it taken further, I recommend (but do not endorse the ideas in) Blindsight . Which parts of the model’s internal state have high values, for instance. That doesn’t mean we have to deliberately elicit one feature at a time — dictionary learning works by just running arbitrary content through the model and seeing what lights up — but it does mean that we have to actually trigger the behavior in order to see it. If you’re thinking “well, but isn’t the simple feature more likely via Occam’s Razor”, I recommend browsing through NeuronPersonas (the linked feature is “Nervous Person Waiting To Be Let Go Who Escalates Ammonia Solution Concentrations”). I’ve heard people punt on this question by saying “well, of course I couldn’t use a fully-mapped LLM brain to figure out if it’s dangerous, but another smart model could”. This is not a satisfying answer because you’d have to also ensure that your warden model was behaving (with a third model, perhaps?) Of course we can articulate what alignment looks like: the model never does anything bad. We just can’t articulate what it would look like to know the model was aligned. For more on that, see my post on superpersuasion : the model will simply outwit or bribe any human in the loop. For a credible source who understands modern mechanistic interpretability, see Neel Nanda , who I read as broadly agreeing with me. It’s relevant to note that humans sometimes do this too. From Vaneigem : “One fine morning, the faithful lackey, who has hitherto identified completely with his master, leaps on his oppressor and slits his throat.” ↩ For instance, the goal “eliminate suffering” is best satisfied by destroying all humans, the goal “maximise everyone’s happiness” is best satisfied by hooking everyone up to a fentanyl IV, and so on. It’s also very difficult to find a way to translate concepts like “happiness” and “well-being” into a formal goal, and if you get it wrong, the difference between the concept and your formalization is likely to lead to dire consequences. ↩ Yes, I know LLMs are partially trained in this way, but being RLVRed on millions of different rewards does not produce a coherent goal. There’s no way to formalize in advance the utility function that RLVR instils in the model, and no way even to reliably predict how it will interact with the goals and personas that emerge from the base model. ↩ Of course, for humans you can rely on institutions, social proof, and so on. This doesn’t work for superintelligent LLMs because they (a) arrive fully-formed with no social proof and (b) are smart enough to be much more dangerous than a single rogue human. (Incidentally, the LLMs I asked to review this post were obsessed with this point, and wanted me to elevate it into the main thrust of the post). ↩ Perhaps as an epiphenomenon. If you’re interested in this idea and want to see it taken further, I recommend (but do not endorse the ideas in) Blindsight . ↩ Which parts of the model’s internal state have high values, for instance. ↩ That doesn’t mean we have to deliberately elicit one feature at a time — dictionary learning works by just running arbitrary content through the model and seeing what lights up — but it does mean that we have to actually trigger the behavior in order to see it. ↩ If you’re thinking “well, but isn’t the simple feature more likely via Occam’s Razor”, I recommend browsing through NeuronPersonas (the linked feature is “Nervous Person Waiting To Be Let Go Who Escalates Ammonia Solution Concentrations”). ↩ I’ve heard people punt on this question by saying “well, of course I couldn’t use a fully-mapped LLM brain to figure out if it’s dangerous, but another smart model could”. This is not a satisfying answer because you’d have to also ensure that your warden model was behaving (with a third model, perhaps?) ↩ Of course we can articulate what alignment looks like: the model never does anything bad. We just can’t articulate what it would look like to know the model was aligned. ↩ For more on that, see my post on superpersuasion : the model will simply outwit or bribe any human in the loop. For a credible source who understands modern mechanistic interpretability, see Neel Nanda , who I read as broadly agreeing with me. ↩

0 views
Sean Goedecke 4 weeks ago

How to get assigned important work in big tech companies

To get a good reputation in tech companies, you need to work on important projects. However, you need a good reputation first in order to get assigned important projects. Doesn’t that make it impossible to get started? I get a lot of emails from engineers who are struggling with this problem. They go like this: I work with a strong senior engineer. I feel like my manager structures work so that strong engineer always gets the visible work, and the more they do, the more opportunities they get, while I sit on the sidelines. My manager agrees with me that it’s time for me to start leading work myself, but every time a new project appears it always goes to the strong engineer. What do I do? This is a good case study for what I think of as “tech company theory of mind”: understanding the actual incentives that motivate decisions in tech companies, instead of the formal process. According to the formal process, projects should probably be assigned round-robin to whoever has capacity and isn’t currently working on one. But (as my emails complain) this is almost never how it works in practice. Managers care about giving their employees chances to build a reputation, but they care more about developing their own reputation as someone who can deliver. High-profile projects are the best opportunity for new people to step forward and get known, but blowing up a project 1 like that is the easiest way for a manager to tank their own reputation. They will thus typically hand these projects to someone they know can deliver, while simultaneously promising (including to themselves) that next time they’ll take the risk of letting another person lead it. Of course it’s a vicious cycle. The more you rely on one person, the more reliable they become and the less reliable their colleagues become, since they aren’t getting the relevant experience. It’s not very sustainable. However, the average manager tenure in big tech is only a couple of years 2 . Given that, it’s rational for individual managers to take the long-term risk in exchange for mitigating the short-term risks of project failure. So what can you do about it? I wrote about the classic approach years ago in Ratchet effects determine engineer reputation at large companies : Note that this plan does not involve convincing 3 your manager that you need projects for your career development, or that it’s unfair for you to be overlooked, or that the formal process would mean you should get to lead projects. You are not going to be able to change your manager’s incentives, but you may be able to position yourself so that your manager believes their incentives line up with yours. The problem with this plan is that it’s slow . It takes months or even years to piece together a reputation like this. That’s slow enough for bad luck to intervene by handing you a failure you can’t avoid, or having your manager leave, or for the fundamental nature of software engineering to change . What can you do that’s faster? The fast path to getting assigned interesting work involves taking risks. This is all dangerous advice . Follow it at your own peril. One way is to build a relationship with your skip-level . If your manager’s manager thinks you’re a stone-cold killer, you are basically guaranteed to get assigned interesting projects. They will straight-up tell your manager “why not put X on this?”, and your manager will rationally decide (a) that it’s in their best interests to do it, and (b) that if you screw it up, it won’t be their responsibility. But it’s not so easy to build a relationship like this. Very senior managers are skilled political operators 4 who are good at identifying when people are trying to persuade them. If they think you’re coming on too strong, that will hurt you far more than it helps. Unfortunately, the most reliable technique for building a relationship with your skip-level is to just be reliably useful to them over a long period of time, which puts us back to the slow way. Another fast way is to make side bets . I wrote about that here , but the idea is simple: figure out and implement your own projects. Work that you decide to do is work that doesn’t have to be assigned to you, so if you independently identify something important that needs doing, then do it, you’ve manufactured your own project out of thin air. I think every senior engineer should be trying to do this all the time. The risk of making side bets is that if they don’t work, or turn out to be less important than you think, you’ve entirely wasted your time. Worse, many managers will get annoyed at engineers who try this, because it can make managers look in meetings like they don’t know what their team is working on. Finally, the best fast way is to impress your engineer colleagues . This only really works on a team with a healthy culture, but when it works it’s very smooth. Managers are slow to form opinions because they’re not close enough to the engineering coalface to know who’s doing quality work 5 . Engineers are informed enough to form opinions quickly. At least I am: it only takes a few “oh, you saw something I didn’t” moments for me to decide someone’s good. On a healthy team those engineers will tell their manager that, who will decide that you must be good, and will give you important work far earlier than if you’d had to prove yourself from scratch. On a kind of crappy team, engineers might not be good enough to recognize strong engineers, or they might not communicate freely enough to tell your manager about it. On a really unhealthy team, engineers will actively trash-talk competent colleagues because they (correctly) see them as the biggest threats. If you’re on a team where all the interesting work is going to someone else, you have a reputation problem. It’s probably not personal: your manager is simply incentivized to give new work to known reliable engineers, which is a vicious cycle that leaves you out in the cold. Fixing that can be a safe slow process or a risky fast process. Either way, I don’t recommend simply trying to convince your manager in 1:1s that it’s unfair to leave you out of projects. Tech companies are not supposed to be fair , they are supposed to make money. You’re better off finding a way to make it look like it’s in your manager’s best interests to assign you that work: either by appealing to your skip-level, finding projects of your own, or building a reputation with engineers your manager already trusts. One reason some people find this point tricky to grasp is that they underrate just how hard it is to ship anything . Projects fail all the time . No manager can afford to be sanguine about the risks. I linked the first crappy source I could find, but my main source for this is just noticing how long the managers in my workplaces stick around. You don’t even necessarily have to tell your manager you’re looking for bigger projects, though I think you probably should. Almost certainly more skilled than you, due to selection effects and the fact that they get way more practice. They typically have to rely on results, which is a slow proxy for technical ability. Focus on reliably shipping small, low-risk pieces of work Communicate to your manager and team that you’ve done that Use that reputation to get slightly higher-risk pieces of work Avoid any mistakes that will ratchet up the perception of you as unreliable Eventually you will be considered a safe prospect to handle important work One reason some people find this point tricky to grasp is that they underrate just how hard it is to ship anything . Projects fail all the time . No manager can afford to be sanguine about the risks. ↩ I linked the first crappy source I could find, but my main source for this is just noticing how long the managers in my workplaces stick around. ↩ You don’t even necessarily have to tell your manager you’re looking for bigger projects, though I think you probably should. ↩ Almost certainly more skilled than you, due to selection effects and the fact that they get way more practice. ↩ They typically have to rely on results, which is a slow proxy for technical ability. ↩

0 views
Sean Goedecke 1 months ago

Elegance and intelligence are anticorrelated

Elegance and intelligence can have a surprisingly negative correlation. Intelligent people sometimes produce inelegant solutions because they’re capable of rapidly brute-forcing problems. If I had to remember a hundred names, I would spend time coming up with clever mnemonics. John von Neumann would probably just remember them. There’s a famous von Neumann story where he was asked how far a fly must travel if it kept flying between two cyclists who were approaching each other at some fixed speed. The trick to the puzzle was to notice that the cyclists would take an hour to meet, so the fly must be travelling for an hour: given the fly’s speed, it’s then easy to calculate the total distance. When von Neumann solved the puzzle instantly, the questioner assumed he’d heard the trick before, but in fact he had just summed the infinite series. If you can do that instantly in your head, why bother with the clever trick? For software engineers, the most important kind of raw intelligence is often the size of your working memory: how many moving pieces you can hold in your head at a given time. Software design involves finding elegant ways to reduce that number of moving pieces, typically by abstracting them away or moving them behind some interface. It can be frustrating 1 to work with engineers with a giant working memory, because they don’t care as much about decomposing the problem into some elegant design — they don’t need to. This is why some 2 really good engineers are surprisingly okay with working in a sloppy codebase: because they can see the whole thing clearly at a glance. Since they never get lost or confused, the level of mess is acceptable to them. When needed, they will effortlessly visualize a ten or twelve step execution flow to see what needs changing or where the problem is. Something like this might be going on with AI-generated mathematical proofs, which read as unacceptably verbose and unfocused in the eyes of human mathematicians. However, for a sufficiently intelligent LLM, a series of a few hundred logical steps is not substantially more difficult to parse than a series of ten. They are happy to just “sit down and calculate” indefinitely 3 . I’ve written about the danger of AI proofs solving conjectures without generating new ones. If AI proofs are inherently less elegant than human proofs, that compounds that danger, since noticing (or inventing) elegant abstractions is often the fuel for generating new conjectures. Humans have had to become very good at inventing clever tricks, because we aren’t built for rationality. Aside from having a limited working memory, our systems of logical thought are jury-rigged on top of a seething morass of irrational urges, inspirations, and blind guessing. As it turns out, this has been an astonishingly good way to develop powerful abstractions that help us understand the universe. Could LLMs be smart enough to avoid needing to come up with truly creative insights? This is probably too comforting a thought to be true. Smarter minds may still need to come up with new abstractions, just for harder problems. John von Neumann 4 himself invented a ton of new mathematics despite his willingness to calculate. However, it’s possible that humans are inherently better at this creative process than machines — out of necessity, if nothing else. Since we humans are spending the late 2020s thinking hard about our competitive advantages, it’s interesting to consider that our relative stupidity might be one of them. Likewise, it can be frustrating to work with engineers who struggle to understand code you consider simple, and demand levels of abstraction that seem unnecessarily fiddly to you. This isn’t universal — some good engineers demand neatness, even to the point of compulsion . In 2025, this wasn’t the case: models were limited by the size of their context window and could not effectively proceed after compaction. One of the under-discussed themes of 2026 is that compaction has all of a sudden gotten really good. His opposite might be Alexander Grothendieck, who famously attributed his mathematical creativity to his “clumsy, even oafish” relative lack of talent. Likewise, it can be frustrating to work with engineers who struggle to understand code you consider simple, and demand levels of abstraction that seem unnecessarily fiddly to you. ↩ This isn’t universal — some good engineers demand neatness, even to the point of compulsion . ↩ In 2025, this wasn’t the case: models were limited by the size of their context window and could not effectively proceed after compaction. One of the under-discussed themes of 2026 is that compaction has all of a sudden gotten really good. ↩ His opposite might be Alexander Grothendieck, who famously attributed his mathematical creativity to his “clumsy, even oafish” relative lack of talent. ↩

0 views
Sean Goedecke 1 months ago

You can just ask AI to do things

One of the most important skills in working with AI is agency : being willing to try new and ambitious things. This is true for what you build, but it’s also true for how you build. AI models are improving so quickly that most of us are bottlenecked 1 on noticing that AI agents can help automate particular tasks. Here are some examples of that from my daily work. Asking the agent to run my dev server. Agents are very good at fixing weird dev environment issues because they work fast, have infinite patience, and have a huge breadth of knowledge. I almost never run the bash commands to start my dev server anymore. Asking the agent to make requests to my dev server. Part of why I don’t run my dev server manually is that I don’t make requests to it manually either. Instead I’ll say “okay, now start the dev server and run through the happy paths with curl”. The relatively manual process of assembling a set of curl requests and validating the output can now be entirely automated 2 . Asking the agent to watch as I make a production change. Every time I do a deploy or flip feature flags, I ask an agent to poll metrics and logs before and after the change. Agents can ingest more logs than I can and are much more patient than me (for instance, I routinely ask for an hourly poll over the rest of the day, which I would not do for most changes on my own). Asking the agent to get a second opinion from other models. My daily driver is Claude Opus 5.5, which is a good model, but it’s not strictly better than GPT-6-Astra or Gemini Argon 3 . After I’ve come up with a code change, I typically will say 4 “please open subagents to get Astra and Argon’s opinion”. This is made easier by the fact that GitHub Copilot 5 has all the top models built in, but I suspect it’d be straightforward enough to ask Claude Code to run a headless Codex session if you’ve got subscriptions to both. Asking the agent to do a pre-work pass through all my unread messages, logs, and so on. This is one of the most useful things I do, since I work in Australia and my American colleagues start hours before I wake up. I have a scheduled job at 6am every day for an agent to comb through unread messages, identify ones that are asking me questions or have problems I should look at, and do preliminary research (e.g. looking up relevant log lines). That way I can start my workday by scanning that report, which is a big improvement over having to collate everything myself 6 . Asking the agent to improve itself. One blocker to a lot of these flows is the pain of setting up the right logs and metrics and Slack MCP servers 7 , or writing the skills, and so on. But in fact the agent can do all of this itself! Just as it can solve weird problems with your dev server, it can solve weird problems with its own setup. You just have to generate API keys and paste them in the right spots. Asking the agent to manage its own sessions. If you use a desktop agent tool like GitHub Copilot (or the ChatGPT app, or Claude Code desktop, etc), you will rapidly end up with a spiderweb of sessions and subsessions. It can be tough to identify what are the threads worth picking up. Fortunately, the agent can do this for you as well. I routinely ask it to clear away sessions that haven’t had activity in the last 24 hours, or to catalog my open sessions and suggest ones that can be archived, and so on. I don’t ask the agent to do everything. I write my own messages and reports (barring some appendices), I make my own design decisions, and I review code myself. This is partly because I think I’m better than models at some of these tasks, and partly because I’m responsible for some of these tasks, so I ought to make the decisions myself. I decide what to work on, and I tend to be ruthless with agent suggestions: of a suggested list of twenty tasks, I’ll often pick zero or one. However, I do find myself asking the agent to do more and more for me. Often the realization strikes me as obvious: I’ll be doing some mildly tedious task for the hundredth time and think 8 “oh wait, I could just get a model to do this for me”, then I’ll never do the task by hand again. As I’ve said before, I think that model progress could stall out today and we’d still see huge improvements for at least a year as we learn how to use the models we’ve got more effectively. Why not just have integration tests? Well, often you don’t want to run the same set of operations every time, or you want to jimmy your dev server in order to test some failure mode (e.g. replacing your Redis client with a deliberately broken Redis client). I haven’t tried Carbon yet. I will then either scan the top-line feedback from those models myself or let my main agent session incorporate the feedback (depending on how risky the change is). I work on GitHub Copilot. If you think I have a conflict of interest here, substitute your preferred multi-model agentic coding tool. I do still read all my unread messages manually. Once I get confident enough in this pre-work report stuff I might stop doing that — it’s a lot of messages. Some people might not trust the models with Slack or log data, which is fair enough. But if you do, a lot of things get a lot easier. Or I’ll see someone else getting an agent to do it and realize I could just do the same. I hope one or two of the points in this post can help other people come to that realization. As I’ve said before, I think that model progress could stall out today and we’d still see huge improvements for at least a year as we learn how to use the models we’ve got more effectively. ↩ Why not just have integration tests? Well, often you don’t want to run the same set of operations every time, or you want to jimmy your dev server in order to test some failure mode (e.g. replacing your Redis client with a deliberately broken Redis client). ↩ I haven’t tried Carbon yet. ↩ I will then either scan the top-line feedback from those models myself or let my main agent session incorporate the feedback (depending on how risky the change is). ↩ I work on GitHub Copilot. If you think I have a conflict of interest here, substitute your preferred multi-model agentic coding tool. ↩ I do still read all my unread messages manually. Once I get confident enough in this pre-work report stuff I might stop doing that — it’s a lot of messages. ↩ Some people might not trust the models with Slack or log data, which is fair enough. But if you do, a lot of things get a lot easier. ↩ Or I’ll see someone else getting an agent to do it and realize I could just do the same. I hope one or two of the points in this post can help other people come to that realization. ↩

0 views
Sean Goedecke 1 months ago

Don't anthropomorphize big tech companies

Bryan Cantrill has a great line from a talk where he cautions against anthropomorphizing 1 Oracle CEO Larry Ellison. I think it’s also a mistake to treat any tech company like a person. Here’s the full quote: You need to think of Larry Ellison the way you think of a lawnmower. You don’t anthropomorphize your lawnmower, the lawnmower just mows the lawn, you stick your hand in there and it’ll chop it off, the end. You don’t think ‘oh, the lawnmower hates me’ — lawnmower doesn’t give a shit about you, lawnmower can’t hate you. Don’t anthropomorphize the lawnmower. Don’t fall into that trap about Oracle. Here are some examples of anthropomorphizing companies: All of these are mistakes. Your relationship to the tech company that employs you is not like a relationship with a person. It’s more like your relationship with your car 2 . If you drive poorly or fail to change your oil, your car may stop working or even kill you, but it doesn’t love or hate you. It has no sense of fairness. It’s simply a dangerous, useful machine: useful enough to be worth getting into despite the risks. Anthropomorphizing it makes it harder to avoid those risks 3 . Why is it so hard to avoid this trap? First, humans anthropomorphize everything by default. Second, whenever you’re interacting with the company, you’re interacting with a person: your manager, your colleague, someone in HR, and so on. Third, when you’re in the power of some entity, it’s psychologically comforting to think of it like another human. This is the same principle that caused early humans to attribute lightning to the power of Zeus, because Zeus (unlike electrical imbalances in storm clouds) can be placated with prayer and sacrifice. Relationships with machines are very different from relationships with people. The biggest difference is that machines do not respect effort . If you put a lot of work into doing a favor for a friend, your friend will appreciate it even if the favor itself is not a big deal. Conversely, if you help somebody out at trivial cost to yourself, that help will be relatively unappreciated. But a car doesn’t care how much effort you put into maintaining it. If you spend hours replacing a car’s engine, but the brake line is damaged, the car won’t remain functional out of respect for your effort on the engine: instead, the brakes will fail, killing you. Tech companies work like this. Everyone who’s worked at one for long enough knows that it’s very hard to predict what work will be high-impact. The project you slaved over for months will often get a “nice, now what’s next” reaction, while the tool you built in fifteen minutes (or the question you answered in a Slack channel) will sometimes get wild praise and recognition. This can drive engineers a little mad, because they’re anthropomorphizing their tech company, and a person who behaved like this would be dangerously unstable. But if you treat your company like a machine, this shouldn’t be surprising at all. It’s hard to predict high-impact work, but it’s not impossible. The best way to operate at a big tech company — as I’ve said again and again — is to try and develop this skill, and to spend most of your time looking for the low-effort high-reward wins. It’s hard to do that if you’re secretly imagining your company as a person. A natural objection here is to point out that tech companies (unlike cars) are composed of people who might indeed owe you, hate you, love you, and so on. According to this view, when people say “my company hates me”, they aren’t making the mistake of anthropomorphizing a corporation, they’re using shorthand to say “my boss and skip-level hate me”. I think this is still a dangerously sloppy way to think. In my experience, engineers who think they’re hated are often not. Managers in large tech companies do hold grudges, but (particularly the higher up you get) are tolerably cold-blooded. You don’t get to senior director or VP by needlessly throwing away useful tools. I can recall a few cases 4 where engineers told me they were hated, but I later found out 5 that managers considered them dangerous or unreliable: loose cannons whose usefulness didn’t outweigh their tendency to go off the rails and cause damage. From the perspective of the engineer being forced out of the company, it feels like you’re being run out of town by people who hate you. But if you want to avoid being run out of town, it’s useful to recognize when you’re being treated as a defective tool. It’s also useful to keep in mind the difference between “my manager hates me” and “my company hates me”, because managers are often temporary. You can sometimes just wait out a bad relationship with your manager. You’ll have a slightly uphill battle with the next one — since the handoff won’t be positive — but it’s certainly possible to get back on track. If you can figure out why your manager hates you, you might also be able to fix it (or at least mitigate 6 it). Engineers who’ve learned not to anthropomorphize tech companies sometimes go too far in the other direction, by treating companies as a computer program . This is the wrong kind of machine: tech companies aren’t people, but they aren’t programs either. They operate on incentives and illegible interpersonal relationships, not on consistent logical steps. The classic example of this is the engineer who reads the company handbook cover-to-cover and makes sure they follow all the rules. When they’re looking to be promoted, they take the role guidelines and make sure they’re following them point-by-point. They take what they’re told very literally: when the company says “X is our top priority”, they internalize that. The problem with this is that handbooks, guidelines and internal communications are the legible superstructure of a massive illegible web of dependencies that make up the actual operations of any company. That superstructure will not cover the real criteria for promotions, or the rules that are designed to be broken . The “top priority” of the superstructure can rapidly shift, leaving literal-minded engineers confused and disheartened. It’s understandable to feel ill-treated by a company, or to harbor resentment — particularly since there are actual humans at the company who are involved in that treatment of you. But companies themselves don’t hold grudges, even as they force out people who they’re incentivized to force out 7 . It can even be a mistake to anthropomorphize very senior managers, whose work personas are more identified with the machine the higher up you go 8 . I suppose at the top you have Larry Ellison, as Bryan Cantrill says, who is better modeled as a lawnmower than as a human being. No relationship with an individual person at your company will save you from being careless with the machine: it will chew you up and spit you out. You need to learn how to drive the car . This is scary, because it means that sometimes you will just get punished for no reason . But it’s also good news, because it means that you can get disproportionate rewards for relatively little effort, so long as you make the right decisions. Treating as a human. I like this example better than Cantrill’s lawnmower because cars are more central to our lives, like jobs are, and are also far more dangerous. For instance, if you’re prone to thinking “my car loves me, it wouldn’t spin out when I take this hard turn on gravel”, you are more likely to crash. Though certainly not all. Grudges do exist. Of course, this is my interpretation of the situation, and could be wrong. There are a range of techniques here, ranging from “do all your paperwork defensively” to “find some out-of-the-way project” to “ingratiate yourself with your skip-level”. For instance, people who make their managers look bad, or who publicly point out the inevitable inaccuracies in legible reports, or who campaign against the current big push the company is making. I say “work personas” because these people often have a rich personal life that is largely firewalled off from their work selves. For more on how managers come to identify with the rules of the organization, I recommend Robert Jackall’s Moral Mazes , a book that has informed much of my thinking and that I will some day write a long-form review of. My company really owes me for that hard thing I did I’m fighting the good fight against my company on issue X (e.g. accessibility) and they hate me for it My company is vindictively retaliating against me because of that mistake I made My company and I are partners in the mission to make the world a better place Treating as a human. ↩ I like this example better than Cantrill’s lawnmower because cars are more central to our lives, like jobs are, and are also far more dangerous. ↩ For instance, if you’re prone to thinking “my car loves me, it wouldn’t spin out when I take this hard turn on gravel”, you are more likely to crash. ↩ Though certainly not all. Grudges do exist. ↩ Of course, this is my interpretation of the situation, and could be wrong. ↩ There are a range of techniques here, ranging from “do all your paperwork defensively” to “find some out-of-the-way project” to “ingratiate yourself with your skip-level”. ↩ For instance, people who make their managers look bad, or who publicly point out the inevitable inaccuracies in legible reports, or who campaign against the current big push the company is making. ↩ I say “work personas” because these people often have a rich personal life that is largely firewalled off from their work selves. For more on how managers come to identify with the rules of the organization, I recommend Robert Jackall’s Moral Mazes , a book that has informed much of my thinking and that I will some day write a long-form review of. ↩

0 views
Sean Goedecke 1 months ago

Software is slow because of bad design, not slow languages

Many people are saying that AI will make software faster by rewriting it in faster languages, but this isn’t generally true. Most programs cannot be meaningfully sped up by rewriting them in C or Rust. How can this be true? Some languages are orders-of-magnitude faster than others: for instance, C can be fifty times faster than Python. Won’t rewriting my Python program in C thus make it fifty times faster? No, it won’t. Software performance is usually dominated by I/O, not the speed of the language. Where language speed matters, most slow languages already have popular libraries that allow them to unlock C-like speed. In general, performance is a matter of design , not of language choice. Consider a simple CRUD website with a database. For any given request, 50% of the request time 1 might be spent querying the database: to fetch the current user, the record being asked for, any relevant user memberships or settings, and so on. Rewriting that website in C can only speed up that other 50%, which puts a hard ceiling on the improvements you can make 2 . At best, you’ll make requests twice as fast (probably closer to 1.5x in practice). That’s not bad, but it’s nowhere near an order-of-magnitude speedup. In other words, most real programs are “I/O-bound”: they spend most of their time waiting for data to be input or output somewhere, as opposed to “CPU-bound” programs that spend most of their time actively doing things. I/O-bound programs don’t just have to rely on a database. Often programs have to wait on some third-party API, or on writing or reading data to disk. You could speed the code in up by 100x and you probably wouldn’t even notice, because spends all of its time waiting on the network. What about work that is obviously not I/O-bound? For instance, wikis have to turn stored markdown into renderable HTML 3 . Wouldn’t rewriting that in a faster language cause a massive speedup? It would! That’s why applications that do that use libraries like cmark-gfm that call out to fast languages for markdown rendering. In general, most slow languages can write very fast programs by invoking this kind of library. Python is famously a slow language, but it’s a competitive choice for CPU-bound workloads like machine learning and mathematics, because it has a healthy set of libraries that let it offload these workloads to fast C code. If a Python program spends 80% of its time doing matrix multiplications on a GPU, you are very unlikely to be able to speed it up by rewriting it in C, because those matrix multiplications are already happening in tightly-optimized C or assembly code. Of course, some programs do in fact do a lot of CPU-bound work in slow languages. If a program has not had much engineering attention, there will probably be a lot of low-hanging fruit . But these programs are often unimportant: if they were important, someone would have gone in and optimized them already, before AI made it (relatively) easy. That doesn’t mean it’s impossible to find a useful program to rewrite. Actual Computer recently rewrote tiktoken in assembly, providing a significant 4 speedup. However, you’re not going to revolutionize some field of computing like this. Even fast tokenization is only useful on the margins, because time spent in tokenization is a fraction of the time spent in inference. Despite all this, I think most software is far slower than it could be. I’m optimistic about the potential (with or without AI) to significantly speed up commonly-used software. But I think most of these speedups will come from redesigning the program, not rewriting it in a faster language. In a 2018 post , Bryan Cantrill described trying to rewrite a C program into Rust. It was difficult because the carefully-optimized design of the C program did not play well with the Rust borrow checker. Giving up, he simply wrote the program in Rust in the naive way, expecting a 20% slowdown or worse. Instead, it was 30% faster . The reasons boil down to Rust’s internal preference for a B-tree over a binary search tree, which happens to be a more cache-efficient data structure. So even in a largely CPU-bound workload, in the hands of someone very skilled at writing fast C, performance is dominated by design, not by language speed. This matches my own experience in higher-level languages. When I think of the significant speedups I’ve managed, they’re almost exclusively redesigns of the software to do less work: All of these strategies are completely unrelated to how fast the language is. In fact, writing in a slow higher-level language can make it much easier to optimize the code, because you can see at a glance what the program is doing. If (for some reason) I had first rewritten the web server in assembly, I would have a much harder time noticing the N+1 query, or the fact that we could move an API call into a job, and so on. Right now everyone is asking their AI agents to rewrite programs in Rust or C or assembly. This is fun, but it’s not a serious attempt at optimization. The set of programs that can be meaningfully sped up by this kind of rewrite is very narrow. If you want to make everything faster with AI — and you should! — you ought instead to be asking your agent to profile programs, identify hotspots, and suggest ways to redesign what the program does. Occasionally you may run into a hotspot that is truly CPU-bound and cannot be refactored to do less work. In these rare cases, rewriting that section in a faster language will help. But simply rewriting from the start will be far less successful than most people imagine. There are many good reasons to rewrite software in a different language: portability, efficiency, maintainability, and so on. But in terms of raw speed , you’re better off focusing on the program’s design. This might seem ridiculously high (if you typically work with slow languages or CPU-bound workloads), or ridiculously low (if you don’t). In my experience it’s at least in the ballpark for interpreted languages. This is formally called Amdahl’s law . Why not just store the HTML? You can, but sometimes the content of the HTML differs per-user (and even if you store the HTML you have to convert it at least once). They claim 4-23x faster than tiktoken and it was indeed ~5x faster on my laptop — though arguably this speedup comes from a redesign to avoid the dependency on regex, not on any intrinsic slowness of Rust with Python bindings. Caching a slow operation (typically an external API call) Performing slow operations asynchronously, either in a background job or out of the request/response lifecycle Performing operations in parallel instead of sequentially (sometimes breaking up large operations in order to do this) Replacing a set of SQL queries with a single SQL query (fixing N+1 problems) Replacing a slow SQL query with a fast SQL query Skipping unnecessary slow operations (e.g. in a paginated view, only fetch ancillary data from entities that are on the current page) This might seem ridiculously high (if you typically work with slow languages or CPU-bound workloads), or ridiculously low (if you don’t). In my experience it’s at least in the ballpark for interpreted languages. ↩ This is formally called Amdahl’s law . ↩ Why not just store the HTML? You can, but sometimes the content of the HTML differs per-user (and even if you store the HTML you have to convert it at least once). ↩ They claim 4-23x faster than tiktoken and it was indeed ~5x faster on my laptop — though arguably this speedup comes from a redesign to avoid the dependency on regex, not on any intrinsic slowness of Rust with Python bindings. ↩

0 views
Sean Goedecke 1 months ago

Laypeople support technical fields for technology, not art

Some people think that LLMs should not be used in technical fields like programming or mathematics , because those fields are actually art. True or not, this kind of argument is not going to be persuasive to the general population. The argument goes something 1 like this: It doesn’t matter how effective LLMs are at technical fields like programming or mathematics, because one of the essential values of those fields is that they’re art . While it looks to laypeople like these fields exist to solve practical problems, what they’re actually for is to produce works of beauty, or to express something distinctively human, or to spend time contemplating the infinite . Simply solving the problems misses the point in the same way that building an infinite poem generator would miss the point of poetry. I agree that programming or mathematics can be beautiful. I remember being mildly awestruck at learning epsilon-delta proofs , and I have written a lot about the kind of software I think is elegant. Since there’s no clear definition of art or of aesthetics in general, it’s plausible to me that almost everything could have an artistic dimension to it. All of this is compelling to software engineers, many of whom (like me) find some programs beautiful and are flattered to think of themselves as artists. But I suspect it’s spectacularly uncompelling to onlookers, because it undermines the implicit reasons that they have for supporting technical fields. Many people who are not programmers or mathematicians think of those fields like this: In other words, regular people 3 think mathematicians (and to a lesser extent programmers) are valuable because they think science is valuable, and they think science is valuable because they think technology is valuable. They are willing to accept that technical fields can be art only insofar as that eventually helps researchers have the kind of creative insights that advance science: as Rikab sarcastically puts it, that advance the knowledge frontier . If you go to those non-technical people and you say “LLMs can accelerate problem-solving in these fields, but I’m strongly against using them because the real point is to produce great art”, they will be very unhappy. They might reasonably feel cheated, in the same way as if they hired someone to renovate their kitchen who insisted in doing it all with hand tools in order to experience “the joy of creation”. This argument — we should stop using LLMs in technical fields because they’re art — is going to be even less compelling to technical employers . Engineers and mathematicians who want to defend the artistic value of their field will need more compelling arguments 4 than just appealing to the value of art. We will need to find some way to connect the value of art with the practical technological value that motivates public interest in our fields. For instance, we could argue that: I don’t know if I agree with all of these points. I haven’t yet seen an LLM-created codebase truly hit a wall (at least, not this year), and I don’t see a reason why LLMs should be incapable of creating new abstractions or having human-like inspirations. I also don’t think great products have to have great code: why wouldn’t workmanlike code in service of a great idea be enough? Does Fallingwater have to have beautifully installed 6 insulation? Still, any argument we make to our employers or the general public about art is going to have to try and make this case. Instead of saying that human-made technical work is valuable because it’s art, we need to make an affirmative case for why art can make technical work more effective. Otherwise we’re conceding the main reason why the general population thinks our work matters. As usual when I’m trying to avoid strawmanning a point of view I don’t hold, please email me if you agree with the quoted paragraph and consider it a fair representation of your position. If nobody writes in to tell me they agree, I will reword the paragraph. Leaving out some specific concerns about the health of social media, short-form video, gambling apps, and so on. Is there actual evidence for this claim I’m making, other than it just seeming kind of obvious? I couldn’t find anything definitive, but the UK CaSE study (see “The balance of fundamental and applied research”) and this paper are suggestive. This is not a criticism of the Glyph post , which is aimed at other engineers, and does include an argument that artistically-produced software is better for users. I take this to be the argument in the Glyph post. Ironically, the house does actually have serious mildew problems . The poor construction quality does not seem to have affected its status as art. I enjoy the fruits of technology: modern medicine, transport, mobile phones, and so on While I don’t understand the exact relationship, I know that technical fields like mathematics and programming are essential to sustaining and advancing these technologies Therefore I’m happy to respect and support mathematicians in their mysterious research work And I’m broadly okay with 2 software engineers drawing healthy salaries for the same reason Great software products must rely on elegant abstractions , which need a human creative touch: simply piling on working code will hit a wall past a certain level of complexity LLMs can solve problems, but actual progress in mathematics depends on creating new abstractions , which is a more creative task that LLMs are not yet good at Progress in technical fields is uneven and relies upon inspiration, which needs creative hammock time and distinctively human understanding LLMs can produce working software, but truly great software requires human inspiration 5 , and great software is what advances the field As usual when I’m trying to avoid strawmanning a point of view I don’t hold, please email me if you agree with the quoted paragraph and consider it a fair representation of your position. If nobody writes in to tell me they agree, I will reword the paragraph. ↩ Leaving out some specific concerns about the health of social media, short-form video, gambling apps, and so on. ↩ Is there actual evidence for this claim I’m making, other than it just seeming kind of obvious? I couldn’t find anything definitive, but the UK CaSE study (see “The balance of fundamental and applied research”) and this paper are suggestive. ↩ This is not a criticism of the Glyph post , which is aimed at other engineers, and does include an argument that artistically-produced software is better for users. ↩ I take this to be the argument in the Glyph post. ↩ Ironically, the house does actually have serious mildew problems . The poor construction quality does not seem to have affected its status as art. ↩

0 views
Sean Goedecke 1 months ago

What requirements don't you have?

When designing software, the requirements you don’t have are as important as the requirements you do. Identifying what you can compromise on — what can be slow, or stale, or inflexible — is usually the key to an elegant design. For instance, take preforking web servers like Unicorn . Because they lack the feature of shared mutable state between server instances, they can run each server in its own process, which provides isolation for free. Because Unicorn specifically ignores the problem of slow client handling 1 , it can queue requests directly on Unix sockets, drastically simplifying the implementation. Because S3 does not support atomic multi-key updates — you cannot update multiple blobs in a single transaction — it can store data at the blob level however it chooses. That makes it much faster, since reads and writes don’t have to cross storage partitions, and much easier to scale, since less coordination means fewer sources of truth. StatsD uses UDP by default, which means it doesn’t guarantee that every piece of data you send makes it into storage. In exchange for dropping that requirement, it incurs much less network overhead, which is a big advantage for a stats aggregation service that’s constantly shoveling data over the wire. The general design approach of fanning out data to an edge cache buys a lot of speed and scaling by dropping the requirement that data must always be up-to-date. SQLite buys operational simplicity — it can run out of a single file! — by dropping the requirement of concurrent writes. By accepting high tail latency 2 , Cursor can scale their distributed git backend more easily. Well-designed systems turn their weaknesses into strengths. Anyone who’s spent time designing real-world software (or who’s studied distributed systems ) knows that system design is a process of compromise. If you attempt to satisfy every single potential requirement — speed, concurrency, up-to-date data, a simple interface, supporting complex user behaviors — you will fail to design a working system at all. Figuring out what requirements you can relax is difficult because it combines both business and technical expertise . It is technically challenging to identify precisely the level of staleness that a particular design change will allow; it is likewise challenging from a business perspective to determine whether that level of staleness is acceptable to users. In most cases, an engineer who understands the technical side must try and explain it to a product manager, who can make a judgement on the business side. But this is a very difficult partnership to get right. Engineers and PMs have different incentives and little ability to check each other’s work, which makes it hard to build trust . Without trust, the product manager is liable to avoid giving any ground at all 3 , which leaves the design in an impossible state. This is an underappreciated reason why solo developers or startups can sometimes run rings around larger companies. Because the technical and business decisions are united in a single person, they can make design tradeoffs that would be impossible for a large company, enabling them to build systems that are far more elegant and powerful. Knowing what requirements you don’t have becomes far more important when working with coding agents. Frontier models are very capable, but they have all gone through the purifying flames of RLVR : like high-achieving schoolchildren, they are obsessed with satisfying the Grader. On top of that, they have very little business context compared to an experienced human. That often manifests as them catching correctness or consistency “bugs” that are really just hypothetical unsatisfied requirements. For instance, it’s not uncommon for an LLM to casually introduce a mutex or other concurrency mechanism to ensure that two pieces of semi-related data are kept in sync, even if not told to do so. I’ve seen LLMs add weird checks in the middle of request handling to ensure that some already-checked piece of data hasn’t changed mid-flight, even if that wouldn’t successfully prevent the feared TOCTOU bug 4 . LLMs are obsessed with edge cases like “what if the current user loses their admin status in the middle of us handling one of their admin requests?” 5 , or “what if the cache in storage partition A is updated a nanosecond before the one in storage partition B, leading some users to see different data?“. Particularly if run in a loop or told to “make no mistakes”, they will pile on cases like these until they’ve transformed your four-line change into a thousand-line monster. This is why I’m confused by some people’s claims that code review is dead . About half the time I review a large AI-generated change, I notice some unnecessary requirement that makes the diff more complex. When I dig deeper, the LLM invariably introduced this requirement on its own. When working with a cache, I will often spell out in my prompt that I don’t mind the data sometimes being stale or briefly inconsistent between cache instances. When reviewing Golang code, the first thing I do is scan for added mutexes or layers of indirection that don’t look necessary to me. If you allow requirements like these to propagate unchecked through a codebase, they will petrify the system over time. The whole thing will be such a mess of checking and re-checking and holding locks and enforcing consistency that it cannot be scaled at all. Keeping systems elegant requires a ruthless focus: on accepting stale data or occasional tail latency, on avoiding all but critical instances of coordination, and in general on figuring out what requirements you don’t have to satisfy. The problem: if an HTTP request sent by someone with slow internet trickles in one packet per second, does that have to tie up a server process for the whole time? Unicorn’s answer is ‘yes, so put nginx or HAProxy in front of me’. When a read request hits a stale storage node, that node must update itself before responding. I’ve also seen this happen in reverse, where the product manager desperately tries to convince an engineer that some level of stale data is acceptable, while the engineer digs their heels in and insists on the “perfect” system. The consequences are similarly dire. Of course, simply doing a separate check shortens the TOCTOU window instead of removing it. In every single system I’ve worked on, it would be fine to simply carry out (or fail) the admin request: if somebody was allowed to perform some operation 10ms ago, it’s likely not a disaster to let them perform it now. The problem: if an HTTP request sent by someone with slow internet trickles in one packet per second, does that have to tie up a server process for the whole time? Unicorn’s answer is ‘yes, so put nginx or HAProxy in front of me’. ↩ When a read request hits a stale storage node, that node must update itself before responding. ↩ I’ve also seen this happen in reverse, where the product manager desperately tries to convince an engineer that some level of stale data is acceptable, while the engineer digs their heels in and insists on the “perfect” system. The consequences are similarly dire. ↩ Of course, simply doing a separate check shortens the TOCTOU window instead of removing it. ↩ In every single system I’ve worked on, it would be fine to simply carry out (or fail) the admin request: if somebody was allowed to perform some operation 10ms ago, it’s likely not a disaster to let them perform it now. ↩

0 views