Posts in Programming (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

the fight around scarce accommodations

In 2024, I published a post called ' scarcity aggression '. In it, I call out how the scarcity of seating and trams to go up a very steep hill is causing quite entitled and aggressive statements by people who are in need of this service against others who they deem undeserving of it. I criticize that we tend to argue against one another based on assumptions, instead of calling out the service maintainer for the lack of options. I want to expand on that, because I see it every time I take any other mode of public transport as well, even just to go to work, visit a restaurant, or go shopping. If you look at the buses, trams, and trains in your area (if they exist at all), how many dedicated spots do they have for bikes, wheelchairs, baby strollers, and the like? How many seats are reserved for disabled or old people? There might be none, there might be one per compartment. In my case, it often seems to be a combined spot for all of the above, first come first serve. And that sucks. If you go to use public transport and you're healthy, without child, bike or wheelchair, there is a great chance you will get a seat, and if not, you'll likely not mind to stand for a while. For others, they know they only got that one spot, and if it's taken, they gotta awkwardly stand elsewhere, possibly in pain, squeeze themselves in somewhere, try to be less in the way. But it's impossible not to be in the way if you have additional mobility options with you, or a stroller. You take up a lot more space, and you're not in the dedicated spot where you wouldn't. Wheelchair users often have to park their wheelchair in the entries of the trams or buses if it's too full or their spot is already taken, and then others struggle to get in and out, having difficulty passing them. That's awkward for everyone - no one wants to accidentally push or get caught on the wheelchair, the wheelchair user feels awkward and stressed about being in the way, and there are bad comments and annoyed looks from people. Recently, on the way to a restaurant, there were actually two people in the tram with a very similar sort of wheelchair bike combination. They had no space to move to any dedicated wheelchair/bike spot, so they had to park in the entrance of two tram doors. At one stop, a lady with a stroller first attempted to get in the one door, saw one of the wheelchair users, then went to the other door and saw the second one. Exasperated, she tried to squeeze past that one (a hopeless attempt) and a few annoyed comments were exchanged between the two. The wheelchair user apologized for being in the way, but also clarified he couldn't go anywhere. The mother had to then attempt to get into the next door over, which was finally free, but super annoyed, as if the wheelchair user hadn't tried hard enough to make space. I think that is unacceptable! The entire setup screams "public transport is for normal people with no additional needs or extra mobility options, but for the freaks and people with extra stuff, we just create one spot they have to fight over", and that is nuts. If you do not provide enough space for different spots for bikes, wheelchairs, strollers and more where each is considered by design, they have to stand in the way, which can also be a problem in emergencies. If you do not offer enough dedicated spaces, and therefore force people to stand where the most space is anyway, then at least design the doorways to be so wide that a person with a stroller or a bike can manage to enter and exit the public transport method even when a wheelchair user (or multiple, at different spots) is also standing there. You are creating situations in which people needlessly fight and get mistreated or even abused, and that especially sucks for people who are already considered burdens, useless, a waste of space or worse. Imagine you are already considered "less than", have to jump through hoops to get any sort of assistance, disability benefits, accommodations and so on, just for some able-bodied person to huff and puff and yell at you for being in the way, as if they cannot be inconvenienced for one second, and as if this is an issue with the other person and not an ableist design issue. Ideally, there would be enough spaces so it would be rare that all of them are taken, so that all kinds of mobility aids and users are accommodated without feeling like they're in the way or taking space away from "someone who needs it more", without the awkward and uncomfortable discussions and requests to vacate a spot. It should be avoided that an old frail grandma, a pregnant person, and a young person with chronic pain all vie for the same spot and tell each other to get up for them, pitting them against each other in who deserves it more. In my eyes, it introduces weird thought processes around prioritization that we should not be having, especially in a wealthy country that could do better. If there's only one spot where a person with a wheelchair or a stroller can be in the tram, is it justified to say that it should go to the wheelchair user because they didn't choose the reason for their wheelchair, yet the pregnancy was likely a voluntary choice, and the pregnant person would most likely be able to use a car as well? You're making a lot of assumptions here because of a stress factor, because of unnecessary scarcity. I've seen my fair share of people annoyed at pregnant persons in public transport, saying stuff like " Why should I get up because someone nutted in you? ". If you don't design public transport well, you invite these statements. If an old person shows up and I sit there as a young person with chronic pain, should I get up? Do I have a right to say no? Do I really need to be put on the spot where I have to reveal my illness history or current symptoms to a stranger, which they may or may not believe anyway? Do you expect me to carry around official documentation of my diagnoses, which could be faked anyway? If you see a young woman in a nice getup with heels and makeup refuse to get up from a seat for another person, be honest: Wouldn't you think she is lying because she is lazy? That she is young, she should take it, and if she is not visibly sick, in some hoodie and sweatpants without makeup looking frail, she's exaggerating? If her back hurts so much, why is she in heels? Does age automatically override everything? How do you measure who deserves that spot more, both as one of the parties as well as an outsider? Would I deserve the angry comments by an old lady in disbelief for me not getting up, and the looks by other people? This aspect of public transport is very uncomfortable for me, because I acknowledge that I look completely healthy, and their assessment is fair, so I never feel justified asking people to vacate any spots because I know it must come across as absurd to me to say I am in pain and if I can please sit. And I do get up every time I am asked, actually. I stand there in pain and I just take it. But I shouldn't have to. If seating in general, and other accommodating spots, and seats reserved for specific groups in general wouldn't be so limited, this would be a lot less of a problem. At the stops as well, with limited seating or weirdly angled seating for anti-homeless measures. I am talked down upon and infantilized by other people who are visibly old or disabled, because even people "on the same team", understandably so, have no reason to think that I am physically disabled with my illnesses. When I sit in a disabled person's spot, I am talked to as if I was a stupid child, or a disrespectful person that cannot understand the signs right next to the seat. One time was especially egregious, with an older, obese woman intentionally talking to me that way to make me feel stupid and guilty and as an additional pressure for me to vacate the spot. She most likely had invisible disabilities too, but if I had treated her like she treated me and just assumed things, I would have thought the only reason I had to move was because she wanted to sit in direction of the driving and was too large for just one seat which was available elsewhere throughout the bus. I could have easily thought " Why should I have to move if you're just too fat? ". So sadly, even other disabled people do not ask others if they sit there for convenience or for good reason, even if they should, and I do get why; you kinda think it's too private, too invasive, why is it my business? If they have anything, they should speak up! And that's not entirely wrong either. It's just a mess, and the seating situation puts this whole thing in a pressure cooker. I don't like us all being pitted against each other. We all have different needs and reasons, and shouldn't be forced into weird conversations and battles, and coexist next to each other in public transport without jealousy or being forced to inconvenience others. There is a layer of sexism here too, because if people have the choice between asking men, any man of any age, background, skin color etc. to move, or any woman, they'll choose the woman. Because men are scary, even to other men, apparently. You don't wanna inconvenience a man, draw a man's attention to you, risk that he is getting aggressive or violent. But women... women are considered nurturing, accommodating, weak, non-aggressive, understanding and empathetic, and even if they attempted to beat you up, would not make as much of a dent. So guess how many times I see all the men around me unbothered, while someone else asks me to get up, because I happen to be the only woman in that compartment at the time, not even on any disabled person's marked spot or anything. I'm tired, boss. I am tired of ableist design causing so many problems in public transport and that none of this is considered even in newer trams and trains. And that people keep shooting against each other, and not the real culprit behind it all. Published 29 Nov, 2026

0 views
Farid Zakaria Yesterday

Programming languages are for humans

tl;dr borrIR is a borrow checker, a zero-libc standard library ( ), and a bitcode package manager for raw LLVM IR. Try it live in the browser playground , and commit yourself to the agentic engineering way of life . Welcome AI disciples. This post is for you. We are just past the year mark when Opus 4.5 was released on November 24, 2025, when the way in which we craft and generate code changed overnight. We ushered in the era of agentic coding , where AI agents can autonomously generate, modify, and reason about code with minimal human intervention. Despite the loss of joy that comes with knowing the codebase inside and out or bickering with my friends about esoteric language features, there is no denying how much more prolific I have become by embracing the agentic engineering way of life . With the blindfolds on, the language du jour seems to be Rust for our dutiful clankers. Anthropic even made a large splash at how they rewrote their whole messaging system from Python to Rust [ cite ] for those sweet sweet performance gains. After numerous projects coded 100% by agents, where I have had 0 insight into the code itself: why are we even bothering with a language at all? Rust seems like a reasonable choice but it has its fair share of criticisms: complexity, slow compile times, and everyone seems to enjoy complaining about the generated build artifacts. Of course the popular opinion now is that the compile-time verification of Rust from the borrow-checker is what gives it the appeal. Coupling provable-verification with the stochastic reasoning of AI agents seems to be the current trend. Hear me out: a borrow checker does not require Rust. To commit to the agentic engineering way of life, we need the implementation to be so low-level that you are disuaded from even looking at it. We need the LLM agents to code directly in assembly, but not any ordinary assembly. We need a form of assembly that carries enough type information to allow the agents to reason about memory safety without human intervention. We need LLVM IR as our assembly language, with a borrow checker built on top of it . I built borrIR . It is a borrow checker for LLVM IR, designed to enforce memory safety at the assembly level. Check out the playground for an interactive demo. Wtf did I just build? 1 is a static analysis pass that sits in front of (assembler for LLVM IR). It parses textual LLVM IR (or disassembles bitcode via ), builds each function’s control-flow graph, tracks pointer provenance, and runs a forward fixed-point dataflow analysis to enforce affine ownership. All the fancy stuff Rust’s borrow checker does, but at the LLVM IR level. Here is the same use-after-move bug in Rust on the left and raw LLVM IR on the right: We can then run on the LLVM IR file and get a diagnostic equivalent to what Rust’s borrow checker would produce for the same use-after-move bug. Aside For those wanting the juicy compiler details: borrIR gets Non-Lexical Lifetimes (NLL) almost for free. In early Rust a borrow lasted until the closing of its scope, even if you never touched the reference again. Fixing that meant inventing MIR so the compiler could track where each reference was last used. LLVM IR has no scopes to begin with. Simplicity wins. As of the first release, the checker reports eight error classes ( – ) and one warning from use after move to laundering a pointer through . You can see the full list of error classes and the warning on the borrIR documentation . In the pursuit of pure blind agentic engineering zeal, I decided to abandon all libraries that might have been generated by higher-level languages and rely solely on our verified LLVM IR modules. includes a set of verified LLVM IR modules for common low-level operations, , such as memory allocation, I/O, and string manipulation, all of which pass the borrow checker itself. Think of these as the replacement for the standard libraries you would normally get from C or Rust: and friends. No , no , no dynamic linker. The binaries produced by this pipeline are fully static ELF executables, with no dependencies on or any other external libraries. They are incredibly small and self-contained, and the build process itself produces very little overhead or intermediate artifacts. Aside You actually have to ask LLVM to disable passes such as , otherwise LLVM will happily rewrite your hand-written loops into calls to standard library functions, which then fail to link if you don’t have . There is even a package-manager built into for handling pre-assembled packages, making it easier to share and reuse verified LLVM IR modules. Details are unimportant for this post but suffice it to say that we can build a complete ecosystem purely out of verified LLVM IR modules. This has been a nagging thought bugging me for the last few months as I have gotten more-and-more comfortable with having projects purely written by an LLM agent. I already trust the compiler to turn whatever language I write into correct, optimized assembly, and I never read that output. Having the agent write LLVM IR directly is the same trust, moved one layer up. The borrow checker is what makes that trust reasonable. It is a safety net for me and a feedback loop for the agent. Ownership is checked one function at a time, so the agent does not have to hold the whole program in its context to know who frees what. Try breaking the borrow checker in the live WebAssembly playground , or poke around the repo and run . Programming languages are for humans. Nobody asked the clankers if they wanted one. Yes, I am using I in the sense of “I, the author, built this tool.” even though it’s 100% LLM-generated code.  ↩ Yes, I am using I in the sense of “I, the author, built this tool.” even though it’s 100% LLM-generated code.  ↩

0 views
Armin Ronacher 2 days ago

Bob’s Company

Bob loves cars and is a former software engineer turned small business owner. In 1999, at the age of 21, he built a thingamabob and sold a few thousand copies when you could make money with that. Over the next 27 years he has built out a small software company selling software to car enthusiasts and mechanics that employs 16 engineers. He hasn’t been hands on for two decades but his software company still sells various random niche software for the same people. He never paid his employees particularly well, but he has never let anyone go and people had a stable place to work. Personally he has become a simple millionaire from the software sales. After a few years he was able to afford a Porsche, got married and had kids, but now faces a divorce and a business that’s slowly failing. In the last nine months he progressively got obsessed with Claude and Codex and has vibe coded all kinds of things on the side. As the year came to a close and he looked over the books, he reflected on his learnings and realized that revenue per employee was really not doing all that well. He then took the decision to fire all but three of his best engineers. The skeleton crew that remained now spends their days “reviewing” PRs sent by Bob and his clanker. Bob thinks this makes sense. He dictates his requests into his agent on the weekend and engineers wake up to an avalanche of slop on Monday. For the first time since the mid 2000s he feels like he’s building again and he loves it. His niche was never crowded, mainly because it was too small for anyone else to bother, and you needed some special knowledge, motivation to reverse engineer as well as access to the right cars to enter it. Today the models already know most of what took years to figure out. The same tools that Bob thinks are going to replace engineers for him are now also making it possible for Bob’s business to be replaced entirely by others. The three remaining engineers know this too, their motivation is pretty low and they might leave. Bob might end up with a leaner and better company, but he might also end up alone with fewer and fewer customers and no business at all. How many Bobs exist I cannot say, but I would be majorly surprised if there weren’t any.

0 views
Kev Quirk 2 days ago

The Worldship Humility

Author: R.R. Haywood Genre: Sci-fi Released: 18 May 2019 Rating: ★★★★☆ It’s been 120 years since the 50 or so worldships containing the few million survivors set off after planet Earth was destroyed by a meteor. On the Worldship Humility, Sam, an Airlock Operative, is bored. Living in space should be full of adventure, except it isn’t, and he fills his time hacking 3-D movie posters. Petty thief Yasmine Dufont is also from the WS Humility, but she is not bored. Growing up in the Elfors, the lawless lower levels of the ship, has seen her surrounded by violence and squalor since birth, and now she wants out. She wants to escape to the luxury of the Ab-Spa on top of WS Abstinence, where they eat real food instead of rats and synth cubes. Meanwhile, the sleek-hulled, unmanned Gagarin has come back from punching out ahead of the fleet in the ever-continuing search for a new home. Nearly all hope is lost that a new planet will ever be found, until the Gagarin returns with a code of information that suggests a habitable planet has been found. This news should be shared with the whole fleet, but a few rogue captains want to keep the information to themselves and colonise the new planet. When Yasmine inadvertently steals the code, she and Sam become caught up in a dangerous game of murder, corruption, political wrangling and...porridge, with sex-addicted Detective Zhang Woo hot on their heels, his own life at risk if he fails to get the code back. Learn more on Goodreads ➡ This first instalment of the broader Code trilogy was a tonne of fun to read. The Worldship Humility is a space opera set in a dystopian future where the upper classes reign supreme (shock) on a fleet of spaceships following the demise of Earth, while the lower classes - the Elfors - are perpetually downtrodden. The whole "Elfors and everyone else" thing reminded me of the Snowpiercer series where they had the tailies . You've got that exact same brutal class divide - an oppressed lower deck kept in miserable conditions just to keep the rest of the vessel running. Basically, Haywood took that grim class system and launched it into deep space. Instead of keeping Snowpiercer's bleak, serious tone, though, he injects his usual chaotic British banter into the mix. Honestly, it works brilliantly - that contrast between the humour and the grim reality of the Elfor levels makes the whole thing hit even harder. I'm really looking forward to the second book - I really hope Dmitri gets his comeuppance! Thanks for reading this post via RSS. RSS is ace, and so are you. ❤️ You can reply to this post by email , or leave a comment .

0 views
Unsung 4 days ago

Even more style guides

I mentioned a few new style guides recently , but I was unhappy with how messy the original link started feeling. Then, reviewing two books a few days ago prompted me to think about this a bit more seriously. Lo and behold, here’s a completely new UI style guide archive page I just put together. I went to town on these, archiving a bunch of online mirrors too, and scanning a few books I haven’t seen online before. I am absolutely not saying all of these are good, but I think studying some of them can be really great not just for learning new things, but also for appreciating the rigor that was put into some of these style guides back in the day. Of note might be: = 2x) and (width >= 700px)" srcset="https://unsung.aresluna.org/_media/even-more-style-guides/1.2096w.avif" type="image/avif"> = 3x) or (width >= 700px)" srcset="https://unsung.aresluna.org/_media/even-more-style-guides/1.1600w.avif" type="image/avif"> = 2x) and (width >= 700px)" srcset="https://unsung.aresluna.org/_media/even-more-style-guides/2.2096w.avif" type="image/avif"> = 3x) or (width >= 700px)" srcset="https://unsung.aresluna.org/_media/even-more-style-guides/2.1600w.avif" type="image/avif"> I archived the entire sites for Material Design 1 and Material Design 2 : = 2x) and (width >= 700px)" srcset="https://unsung.aresluna.org/_media/even-more-style-guides/3.2096w.avif" type="image/avif"> = 3x) or (width >= 700px)" srcset="https://unsung.aresluna.org/_media/even-more-style-guides/3.1600w.avif" type="image/avif"> I scanned the NextSTEP User Interface Guidelines , as the only version available online has been a scan of what felt like a faxed copy: Check out the page for even more rare stuff ! There is a link at the bottom to download the entire archive, which I encourage you to do! I also uploaded to the Internet Archive all of the ones that haven’t been there yet. Thanks to everyone who collected these before – I listed everyone whose archives I perused by name at the bottom of the post. Windows XP Visual Guidelines , documenting the now-pretty-iconic look: I archived the entire sites for Material Design 1 and Material Design 2 : I scanned the NextSTEP User Interface Guidelines , as the only version available online has been a scan of what felt like a faxed copy:

0 views
Armin Ronacher 5 days ago

Abolish Lock Poisoning

Rust has a curious feature that I don’t think the language would land today, if it was not there for a long time: mutex poisoning. When some Rust code panics while holding a , the mutex is poisoned . That means that any further call to returns a . The motivation for this feature is that an object might have some internal invariants that need to be upheld and panicking in the wrong moment might invalidate reasonable at and leave an object behind in a broken state. Personally I absolutely hate this feature as it has bitten me so many times and I cannot once remember it helping me. The libs team is discussing making the non-poisoning locks the default in the next edition but entirely expectedly it has caused quite a few people to jump to the defence of the feature. In this post I want to make my personal case why poisoned locks should either be entirely removed or be made the exception. Primarily this is because I have yet to come across code in the wild that handles a poisoned lock correctly. On the other hand I have come across enough code that mishandles it and as a result behaves worse than a parking_lot lock would which does not support poisoning. Josh Triplett put it quite strongly in a hackernews comment: “In the entire history of the standard library, we have never once seen a single report of anyone attempting to recover from poison.” When a panic happens with a lock held, there are two reasonable reactions: shut the process down, or carry on and ignore the flag. With you get the former and poisoning never comes up. From all the evidence I have seen, with unwinding, the idiomatic picks the worst option of all. That’s because it neither stops the process nor lets it continue as it will turn every further lock into a panic with sometimes disastrous effects. But that is not the only issue with the system today. So here I want to share some of the issues and with some references to real world code of how people got bitten. One subtle aspect to the poisoning is that the needs to hold the guard. That’s because in order to ignore the poison flag, you need to fetch the guard from the error object. Holding on to the error means holding on to the lock! That can cause common code that does error wrapping / error conversions into a deadlock hazard. The innocent looking in a function returning or similar keeps the mutex locked for as long as the error lives ( #159930 ). This can also happen with if let. For instance in cc-switch you can see that they had a test hung because a fallback locked the same mutex again while the unnamed from the condition still owned the guard. PC-AI had the same bug in a arm. Another case can be found in ox-embed-server . Deviously poisoning does not fail fast and done wrong, it fails forever. The original panic happens once, on one thread, often somewhere unrelated from future failures. Every later on that lock now however panics as well, and because so much Rust code survives panics (thread pools, request handlers, tokio tasks, FFI boundaries), the process stays up and becomes useless: While not live services, test suites show the same general issue. One failing test poisons a shared static and every test after it fails with . This problem showed up for cargo , deno , polars and rustc itself. If you recover with , the flag stays set and every later access takes the recovery path again. And remember that for the first nine years of Rust after the poisoning feature landed, you could not even clear it as arrived only in 1.77. Not clearing the flag means that potentially expensive side effects will happen from that point onwards: goose-in-a-pond rebuilt its decoder state on every transcription after a single panic, librefang logged the same warning on every access, and a pool threw its model away on every return. So who is handling poisonings? I’m really not sure, definitely not the standard library. Every place where the standard library’s own code ignores it. Standard I/O has done so since March 2015 , two months before 1.0, because “any poison must have been the result of user code which the lock isn’t protecting”. A common issue with a lot of poisoning errors that never had anything to do with the mutex that was held. Same with the panic output capture , the backtrace lock and the WASI environment lock . They all do the same and unsurprisingly there is an open PR to move std’s internal mutexes to . And I would argue the ecosystem has largely come to the same conclusion. Tokio’s own locks don’t poison. Internally it wraps the std one in an adapter that removes poison . When it landed Carl Lerche remarked “ I rather pretend lock poisoning isn’t a thing .” In one case Eliza Weisman needed to unlink a waiter during drop, or “we’ll leave the list with a potentially dangling pointer”. I want to point to this in particular because this is a case where poisoning stood in the way of memory safety which is commonly argued as a reason you want poisoning. Wasmtime, crossbeam-channel, tracing-subscriber always ignores lock poisoning. rust-analyzer switched to parking_lot after cancellation poisoned its solver like RLS did before. The parking_lot maintainer described it as an anti-feature that hurts usability and reliability to which I strongly concur. Another aspect here is why this is done on but not on . Surely if the case for poisoning is that some code temporarily breaks an invariant, panics, and someone else observes the broken state, then this should apply to more cases. Take the usual example that argues in favor of poisoning and replace with , and you have exactly the same problem . Threads are not needed at all and this is not hypothetical either as tokio catches every task panic. Paired with a the panic comes back as a , the next succeeds and reads a null pointer exactly like the mutex example from the issue. Given how much panic catching goes on in async code, much of which is for performance reasons, I’m not even convinced that panics get caught more often in multi-threaded code yet nobody asks for to poison. The standard library isn’t consistent with itself either as poisons for good, never poisons, poisons but lets you recover. Also remember that poisoning only tracks panics and a more common early return has the same issue. The operator (as well as the macro before) that returns early from the middle of a critical section leaves the same broken invariant behind an unpoisoned lock. Note also that the coupling of poisoning of mutexes is historical and an explicit type would allow you to opt into this for any interior mutability wrapper. Personally I hope the rust team stabilizes , have resolve to it by default . If someone wants poisoning add that separate wrapper then anyone who believes they need and can handle it, can opt into it for any type including or tokio threads. What I think would be the worst of all outcomes is the counter-proposal is to keep poisoning but have panic instead of returning a . That would only fix the held guard lock semantics, and to a smaller degree the ergonomics, but it makes the slow outage the only option. That is what every does today, and the issues above should be plenty of evidence of this being a problematic behavior in light of the existence of . The post In defense of lock poisoning is the best argument for the other side and worth reading but I believe the evidence all points the other way, and most of what Oxide ships aborts on panic anyway which is also a reasonable behavior. In RLS a failed cargo build panicked with held which made any subsequent runs impossible . Mozilla’s application-services saw rise to rank 5 in crash stats and moved to parking_lot after they concluded they did not benefit of poisoning handling. A Neon safekeeper on staging failed every timeline lookup after a panic with a global lock held, and the original panic could not even be found in the logs.

0 views
Phil Eaton 5 days ago

How to make sure your developers never write for the company blog

Bring up writing blogs just once a year at your offsite. Make it clear you don't want writing now but after the next big release is out. Make sure writing blogs is seen as the function of the marketing team. When you get a draft, mark it all up with Claude comments. Rewrite it with Claude generally. Make it well understood there is a long and drawn out process to getting published. Make frequent changes to your website without looking at how code or technical articles look on the site, or if they even render at all. Have external consultants rewrite sections of published articles for SEO. Make sure not to ask the author for approval or let them know it happened. Do not reward publishing. VPs and directors, let alone founders, should not proudly share these posts on social media. Published blog posts are the author's own work, surely done on their own time (why waste company time on writing a blog post?), and not something to be rallied around. Always refer to social media and developer communities as cesspools to make it clear how little value there is in them. Use diminutive terms like "The Orange Site" so everyone knows it's bad. If a post happens to take off on any site, make sure no one in the company acknowledges this (internally or externally) or cheers it on (internally or externally). Make it really inconvenient for authors to get analytics on their post. Analytics is for the marketing team. Do not try to learn all the various programming communities (Reddit, Lobsters, LWN, Postgres Weekly, etc.). Hire "developer relations" (who are not experienced programmers) and keep them separate from marketing and engineering. Developers don't need to write because you've got "developer relations". Impress upon everyone the unimportance of domain experts speaking about their work. If you publish anything at all, publish thinkpieces by executives. But make sure they're written entirely by AI. You wouldn't want to invite humans to read your thoughts.

0 views
Simon Willison 5 days ago

Three LLM inflection points in twelve months

I gave a keynote at the AI Engineer Code Summit a couple of weeks ago, constructed around the idea that there have been three significant inflection points in the abilities of LLMs and coding agents in the past twelve months. Here's the video of the talk. In this post I'm going to pull out the major inflection point theme and interrogate it more deeply. Today, November 24th 2026, is the one year anniversary of the release of Claude Opus 4.5 . With hindsight, this was a consequential model. In the Opus 4.5 announcement, Anthropic said: Testers noted that Claude Opus 4.5 handles ambiguity and reasons about tradeoffs without hand-holding. They told us that, when pointed at a complex, multi-system bug, Opus 4.5 figures out the fix. They said that tasks that were near-impossible for Sonnet 4.5 just a few weeks ago are now within reach. This held up. Claude Code was 9 months old at that point, having been introduced alongside Claude 3.7 Sonnet on February 24th, 2025. Opus 4.5 was the first model I had used with Claude Code where the default result was generally the right thing. I hadn't been using Claude Code as a daily driver because it didn't feel reliable enough - I had to correct it often enough that it didn't feel like a clear accelerant. The new Opus changed that. For most of the coding problems I faced on a daily basis, Opus would get them right . It was clearly faster than working through the problems myself. Also in November, OpenAI released GPT-5.1 Instant, GPT-5.1 Thinking, GPT-5.1-Codex, and GPT-5.1-Codex-Max. These had a similar effect on their Codex coding agent: it became reliably useful for many of my coding tasks. The timing was convenient, because the December holidays were upon us. A lot of people, myself included, spent December tinkering with these new tools to see what they could do. By January we were ready to use them for our actual work. We got our first hint of Claude Fable in April, when Anthropic announced Claude Mythos and said that it was too dangerous to release , due to its improved cybersecurity capabilities. Mythos was a model that could not just find security vulnerabilities, it could also figure out how to exploit them. In June we got to see how good that model was for ourselves, with the release of Claude Fable 5 - a defanged Mythos, that would solve most problems but would actively block you from using it for security work. After three glorious days... the US government took it away from us. Fable 5 was placed under export controls that effectively banned the model. We wouldn't get it back until July 1st. For me, Fable was an inflection point because it introduced us to what I now think of as Fable class models . My definition of these: In June I wrote about how Claude Fable is relentlessly proactive , after I asked it to help fix a display glitch in Safari and it spun up its own screenshot mechanism and a CORS-enabled localhost logging server to help resolve the bug. A more recent example of the power of Fable class models is my mysterious beep finder from a couple of weeks ago. I gave Opus 5.5 and then Fable 5.2 access to five WebAudio microphones in a room full of boxes and it was able to triangulate the source of an infuriating mysterious beep to within about 40cm. Give it a goal, give it the right tools, and watch it cook. I'd currently class Claude Fable 5, 5.1, 5.2 and Claude Opus 5.5 as Fable class (I think of Opus 5.5 as "cheap Fable"). GPT-6 Astra got there for me too, and I think the new Gemini 4 Neon may count as well. These now represent the baseline for what I expect from a frontier model. Something interesting happened with frontier LLMs over just the past four months: they got really good at 3D modeling. Set them up with Blender or ask them to write Three.js code and they'll produce credible models of almost anything you ask for. I first noticed this with Claude Fable 5, but it really kicked into gear with Opus 5.5, GPT-5.6 Sol, GPT-6 Astra, and most recently the Gemini 4 family. Here's Gemini 4 Neon's attempt at "Make a three js animation where yonkers stands up as a big mech (cool stand up motion) and stomps around manhattan and queens and Brooklyn, use openstreetmap mapping data", for example. 3D spatial awareness is crucial if you want to use vision LLMs for robotics. I don't know if 3D modeling capabilities are a side-effect of the labs focusing on that or vice-versa. Back in August I experimented with having Fable 5 build me a raccoon heist game . It had 3D graphics, looked like a game, and played really poorly. GPT-5.6 Sol Ultra did a much better job but the game itself was still pretty dull after the first 90 seconds of play. I was somewhat relieved that designing a game that was fun appeared to remain a uniquely human pursuit. I even used that in a talk in September to reassure people that us humans still had a role to play! Then, I tried telling Claude Opus 5.5 "This game isn't fun enough yet. Make it a LOT more fun." And it worked . My Command & Conquer-style RTS went from boring to deeply entertaining overnight, after Opus spent 12 hours playtesting new features and rebalancing the gameplay. Opus 5.5 was the first model I'd used that appeared to understand fun. I've since worked on several little game projects where prompts like "Think hard about how to make sure it is both fun and beautiful" produced results that kept me engaged for significant amounts of time. Opus 5.5 came out on September 22nd, 2026. I've been to two different conferences since then where people showed me game projects they'd been working on that really did feel like proper, worthwhile games. The indie games scene has descended into a full-blown culture war over AI-assisted programming. A lot of people are calling GTA VI the last pre-generative AI blockbuster . It feels like another inflection point to me. I'm still trying to decide if Fable 5.2 represents a new inflection point, or just another incremental improvement. I'm getting so much done with that model right now! It seems to have taste that almost exactly matches my own. I have been burning through all sorts of gnarly problems that I've been thinking about (or procrastinating on) for several years now. The release notes for Datasette 1.0a42 , 1.0a43 , and 1.0a44 - plus LLM 0.37 , 0.37.1 , 0.37.2 , 0.37.3 , and 0.38 - all in the last three weeks , represent a flood of fixes, features and improvements. If this does represent an inflection point, the key feature seems to be that if you can imagine and then clearly describe a piece of software, Fable can build it . That's a wild thing to say, but it matches my experience over the past few weeks. Software development has transformed beyond recognition in the last year. I don't think I'll ever go back to typing most of my code by hand. You are only seeing the long-form articles from my blog. Subscribe to /atom/everything/ to get all of my posts, or take a look at my other subscription options .

0 views

Defective Accelerationism

As discussed , I’m currently taking a week off the podcast and both the free and the premium newsletter to rest, or I was until this happened. After this I need to take a few days off, I’m exhausted. I’ll be back next week. Anyway, if you want to support my work, please take advantage of my week-long “$60-a-year-for-life” premium newsletter sale . It’s incredible value, featuring massive guides to How OpenAI Kills Oracle , how hyperscalers and a triopoly pushed up the price of RAM , a two part guide to the debt pumping up the bubble, Megaspeed (the chip smuggler at the center of the Huang affair), and How NVIDIA became the GE Capital of AI.   The archives are massive — multiple books’ worth of deep analysis with no comparison — and $60 a year is lower than basically every newsletter out there at this point. Soundtrack: Local H - What Would You Have Me Do? NVIDIA’s board has reinstated Jensen Huang as CEO of the company without consulting any of the company’s executives , not even former CFO (and, I guess, former interim CEO) Colette Kress, as a direct result of a campaign by President Trump, who “convinced” the board by providing “ assurance ” by stating that Huang was “not a national security threat,” telling CNBC that “we believe he’s fine, he’s absolutely fine.”  Every member of NVIDIA’s board is lower than a cockroach, exhibiting stunning cowardice and total fealty to two empires — those of Huang and Trump — built on deceit and grift. On Sunday, the New York Times reported that Alice Huang and her husband Kang Wei appeared to have been in regular contact with the Chinese intelligence services during her affair with Jensen Huang. If you believe that Jensen is “fine,” you are either a mark or a fellow scumbag.  Twitter user PanasonicDX4500 put it best : Trump explicitly forced Jensen’s return to stabilize the stock market. Per the Wall Street Journal : Let’s be clear about something: this is something you do when an industry is extremely brittle and showing signs of collapse. Jensen Huang may be the founder, but his ouster should not be so systemically important that it causes the market to gain what experts call “Budd Dywer press conference” vibes. It suggests that everybody realizes that this thing is a bit fucked without one insane, horrible and abusive sociopath wielding NVIDIA’s balance sheet like the reserve bank during a great financial crisis, except working in reverse so that the semiconductor industry can scam the software industry and venture capital out of every dolar in their pockets, along with hundreds of billions of dollars of private credit, along with the retirement and insurance funds.  So much money has left the system and been funnelled into so few hands as a result of Huang’s craven beat-and-raise machine, and when it eventually falls apart, the damage will be horrendous, and many people will have celebrated this event, unaware that it made things worse. It has revealed many people to be on the side of capital in a way that has made people take sides in both encouraging and discouraging ways, and it will be difficult to look back from here. Those celebrating Jensen’s return are willing to look away from what is a gratuitous, multi-billion dollar chip smuggling operation that flagrantly violates US trade law , along with a man who preyed on his female subordinates. They are celebrating a lawless and amoral tech industry, and the market’s reaction has been a tacit admission that the market has become, as I discussed last week , an NVIDIA bubble sustained through symbolic gestures and dodgy financial engineering. If you need further proof, check out Anthropic’s stock , which dropped 1.43% as other tech stocks pumped by more than 10%. Oh, and per the Wall Street Journal story from earlier, Jensen Huang has been given the title of “UltraPervert,” taking the affair count up to somewhere above four, but potentially even more than that: Jensen Huang is a piece of shit and a worthless excuse of a man that has shown a deep disrespect for his wife and family. His contempt for his fellow human being is also clear from the way that he treats his employees, per the New York Times: If your spouse or loved one speaks to you in this way, you are the victim of abuse. This is not how people should talk to other people in any scenario. It is not the right way to treat a person, under any circumstance, for any reason, for any return on doing so. It should be seen as disqualifiable on both moral and legal grounds. To normalize it is dangerous to the fabric of society. This is the CEO of the largest company on the stock market, and he is acting like a fucking monster. We must show him constant, unerring revulsion. To do so is our moral imperative. If you think this is acceptable, you are a fucking freak.  I must also be clear that Jensen Huang would not say this stuff or act in this disgusting way when faced with anyone who was not financially or reputationally dependent on him in some way. He would not go to Fenway Park and tell some random Southie that he would rip off their head and piss in the hole, because they would fold him up like a fucking deck chair. He speaks this way because he knows that these people can’t fight back, because he has made it quite clear he would use his money and power to harm them further.  The world should exile somebody who acts with such unrepentant anger. Jensen Huang is a coward insulated from reality by his money and greed, and I believe that the cult that worships him — by which I mean the value of NVIDIA stock — is leading the tech industry to ruin. He is an evil man, and the people who defend him are equally evil, endorsing repulsive and morally abhorrent behavior in their obsession with growth. Anyway, Investment bank Cantor Fitzgerald, owned by the children of Secretary of Commerce Howard Lutnick who reportedly slow-rolled export controls that would’ve slowed NVIDIA’s revenue from China , said that “ all’s right with the world ,” a statement that doesn’t really make sense unless you are lying or stupid. You choose which. I’m not in the mood. I find the whole situation disgusting, made more so by the reactions it’s elicited from some of the worst people in tech and finance. Jim Cramer is a fucking monster — or another word beginning with a C — that celebrated Jensen’s return by huffing and puffing about his greatness and smuggly saying that nobody went to jail during the great financial crisis and that “this is over…you can do whatever you want,” and I’ve seen multiple reporters celebrating the “huge surge for equities” that followed the President forcing the return of a man that is obviously, blatantly crooked. The little hand gesture that Jim does when he says “whatever” is enraging. This is a despicable human being with a national audience that should’ve been removed from the airways decades ago. He is the enemy of the common man, and a living, breathing propagandist for the worst excesses of capital itself. Less than two weeks ago, Cramer was castigating Huang for sex with subordinates , saying that “just because someone is brilliant [it] doesn’t mean he can do what he wants.” Cramer and his ilk are amoral psychopaths masquerading as the ensouled. They are evil, and we should not shy away from saying so.  Every tech executive applauding Huang’s return is complicit, and actively stating that they believe one’s importance at a tech company means that they should be free from consequences. In their eyes, Jensen’s value at NVIDIA supersedes any need for punishment or exile — one can illegally smuggle chips and fuck your coworkers with abaddon if you’re rich and powerful enough, or if your company’s value makes up 5% or more of the S&P 500.  And as I’ve discussed, Jensen’s “value” at NVIDIA is his “balance sheet as a service” model involving pumping over $100 billion into the AI industry ( per the WSJ ) across 293 deals since 2023, and that’s before you include backstops and vendor financing schemes that, per the FT , amount to a little under $700 billion. The sheer scale of NVIDIA’s circular financing operation is a con perpetuated by one man — Jensen Huang — that fills in the financial gaps in an industry that would collapse if he didn’t step in and backstop CoreWeave’s leases , sink billions of dollars into failing AI startups like Perplexity , or provide non-specific vendor financing to Oracle , per TD Cowen. By the way, isn’t it weird that Oracle, a mere minute after market close on Friday , had to state that it not only had all the money it needed to fulfill its OpenAI contract , but that “any media reports that will come out and say the contrary are incorrect and wrong”? Isn’t it also weird that it mentioned “vendor financing” as one of the ways it had “fully funded this investment cycle”?  We still don’t know what that vendor financing means, how big it is, or even what the terms are.  But its existence proves that liquidity is the next great issue of the AI bubble. The AI industry would cave in on itself without NVIDIA, and nothing about Jensen’s return fixes any of its underlying problems. As reported by the WSJ a few weeks ago , NVIDIA has “an “avalanche” of purchasing commitments [that] threatened the company,” and all reports suggest that its balance sheet is reaching its breaking point with regards to how many tens of billions it can pump into the ecosystem. Jensen Huang’s return did not fix the lack of ROI , or magically install and power the over $200 billion in NVIDIA GPUs currently sitting in warehouses , or fix CoreWeave’s debt problems, or really do anything other than prolong the inevitable. Anthropic’s $895 billion in commitments did not disappear overnight, and its IPO has been anything but successful, its brief pop to about 30% over its listing price of $83 met with a slow, painful decline to around $86 to $87 a share, leaving it with a market cap of around $1.17 trillion, with its free-floating shares to nearly double from a little over 1.4 billion shares as of today to over 3.3 billion as of its Fiscal Year 2026 earnings sometime in February or March. It also pushed its bank Morgan Stanley to exercise its “greenshoe” option before the second day of trading, removing a 147 million share buffer that could’ve been used to buy up the stock at the market if it dropped under $83, all because it wanted another $12.2 billion. Anthropic’s IPO was, as I said before it happened , exit liquidity for its founders, staff and VCs, rushed out to make it seem that it was a completely different company to the one that investors believed using financial engineering to make it seem “profitable” for a single quarter , all before hundreds of billions of commitments began. Around six months from going public, around 9 billion shares of Anthropic stock can be traded on the market, and based on the activity so far, they’ll be dumped en masse.  And let’s be clear how bad all of this is for OpenAI.  When Bloomberg covered it raising $11 billion at a $1.25 billion valuation , it specified that “the funding was wired to the company as of Friday,” a peculiar addition that I’ve never seen in the hundreds of different funding stories I’ve read in the last 18 years, suggesting that OpenAI needed somebody, somewhere to know that it actually had real money . This may be connected to reporting around its Q3 numbers, which revealed it had a $10.9 billion operating loss on $10 billion in revenue , which in turn suggests that $11 billion wouldn’t cover even half of a quarter’s expenses. OpenAI will need money in the next few months, and it’s unclear, given that its private valuation is clearly bullshit when compared to the “real” one given to Anthropic by the market, how it intends to raise it. A down round? Another suicide round? Another half-hearted attempt at a sovereign wealth fund ? All of these ideas — like bringing Jensen back — are an attempt to delay an inevitable liquidity crisis which Altman likely hopes the government will step in to fix.  While I may have been early, I am not wrong. OpenAI is at the edge of the abyss, along with the rest of the AI industry. Only Anthropic was smart enough to rifle through the pockets of the public markets, knowing that the first one out the door would get the real money, its underwriters would get paid, and the market would immediately say “hey man, you seem to lose billions of dollars, what’s that about?”  The money is running out — even Elon Musk is saying there’s going to be a funding gap of hundreds of billions of dollars in 2027 — and all this cronyism has done is prolong the collapse.  Interest rates remain high, and are likely to go up. There’s not enough land or power. AI startups require too much money, are all unprofitable, and make up around 80% of Anthropic and OpenAI’s revenues , meaning that the bottom will eventually fall out from both of them at some indeterminate time. Anthropic’s putrid IPO has made it clear that there won’t be any easy SPAC-esque dumps onto retail investors for anybody else, and there’s just no reason to acquire one of these companies. They’re all basically wrappers for closed or open source models. None of this changed because of Jensen, other than his ability to drain further money from the company’s balance sheet, running the beat-and-raise machine as hard as possible until it finally breaks. To celebrate Jensen Huang’s return is to celebrate a coward, a crook, and a liar, and to directly state that you believe one’s financial performance — even when it’s inherently crooked, circular and rigged to blow — should render any moral or legal consequences moot.  This is a moment where you, as a member of the tech industry, are showing everybody who you are, what you think, what you believe in (if you believe in anything), how you believe women should be treated in the workplace, how you believe men should be treated in the workplace, and how much of a willing stooge or accomplice you are for the worst excesses of the Rot Economy’s growth-at-all-costs, No IT Loads Refused party.  And I just have to ask, what happens now? How does Jensen pump this stock further? The circular financing has started to freak people out, even NVIDIA’s massive balance sheet can only take so much, and, per Bloomberg , ING received “muted” demand when it tried to sell off $500 million worth of data center loans, suggesting that the market just doesn’t want this shit anymore.  Huang’s return fails to provide any meaningful answer as to how its beat-and-raise machine will continue or how the AI industry will expand much further, and his affair has created a renewed and intense scrutiny of NVIDIA’s growth.  I’ve heard from a lot of people today that feel scared that this somehow restores the entire AI trade or fixes every problem — a simplistic and childish solution to many complex problems . All it’s done is prove that Trump is desperate to stop the stock market from cratering further, pissing off even hardline GOP allies like Tom Cotton, though I’ll believe they actually give a shit when they do something. It is an unprecedented act of kleptocracy and grift made mere months before the Democrats control both the Senate and the House, at a time when regular people are furious that everything — including the consumer electronics made more expensive by NVIDIA’s sales of warehoused GPUs — is more expensive, and that the rules don’t seem to apply if you’re wealthy.  Trump has given Democrats an unbelievably easy way to crucify him. It is objectively true to state that he intervened to restore an executive that cheated on his wife three times, once with an alleged Chinese spy, and assisted in over $11 billion worth of sanctioned semiconductors being sold through her company to China. Whether or not you believe that it’s dangerous for the Chinese to have these chips, there are very clear laws, they were violated, and it’s apparently fine as long as you’re wealthy and holding up the stock market. And this has revealed how many utter cowards loiter in the highest rungs of the tech industry , none greater than Sam Altman, who tweeted “ Jensen! ” because he is too much of a fucking loser to actually say that he supports him, knowing that Democrats are staring at him.  This industry is run by greedy little wimps that believe in nothing other than growth, and they’re absolutely fucking terrified. Their garish whining about bringing Jensen back was their admission that the AI industry is specious. It does not have the cashflows to sustain itself without continual subsidies from venture capital and NVIDIA, its largest companies in functional default, its most famous executives known more for their offensive personalities than anything about technology.  They feel the hand of the reaper on their shoulder, and are fully aware that the money is running out. Nothing has changed. Nobody is more solvent. Token spend has plateaued for months , and token prices are collapsing as AI labs cut prices to compete with both their closed and open source competitors . NVIDIA does not magically have more demand for its GPUs. In fact, it has less thanks to the Huang affair leading to the closure of a loophole that allowed Chinese firms to rent NVIDIA GPUs remotely from countries like Malaysia , which has already led to the cancelation of a $150 million order from Chinese AI lab Moonshot and halved the value of Southeast Asian neocloud Aaolani , with Jefferies estimating that these rules could kill $44bn to $62bn of NVIDIA”s FY2028 revenue .  Put another way: Jensen Huang’s return doesn’t change that his customers are increasingly struggling to pay for his GPUs, and their customers are finding it increasingly difficult to afford to rent them. They are going to run this thing into the ground, and do everything they can to pretend that we’re “back on track,” whatever that means. This situation will embolden them to take more risk, burn more money, ignore more warnings, be more brazen, and burn themselves out far faster and harder than you’d ever imagine. And when you listen to them talk, they speak from a place of fear and with the mindset of peasants, desperate to kiss up to whatever authority figure they see as most dominant at any given time, the conga line of pathetic courtiers and scheming viziers like Brad Gertsner and Gavin Baker making Silicon Valley feel a lot like the 1700s era Palace of Versailles . Do not be afraid of those celebrating this event as some “return to normal,” because nothing has changed other than the symbolic return of a disgusting oaf at the behest of some of the weakest men ever born.  The AI industry has always used quasi-religious symbology and deception to make you think that it’s stronger than it is, so I’ll speak plainly: this industry is, for the most part, functionally in default, the money is running out for both data centers and AI startups alike, and the tumbling value of AI stocks was giving — and will eventually continue to give — everybody too obvious a signal that things were (or are) collapsing.  It all comes down to when the money runs out, and the pervert bounce doesn’t change a thing.

0 views

Tech predictions for 2027 and beyond

Robotics, space, biotech, and of course AI, are converging to power a golden era of innovation. Some of my predictions are a reality check, while others imagine what is possible in the decade to come.

0 views
Herman's blog 5 days ago

Comments and emails

I'm regularly asked why Bear doesn't have built-in comments, guestbooks, or contact forms. They're all trivial to build (a text box and a send button), and I could add them in an afternoon. But they're not included by design. The problem with all three is what they let in. A comment box or contact form accepts anything from anyone. Spam bots find them quickly, so whoever runs the blog ends up moderating a queue. And the people who comment don't have to identify themselves as most of these forms ask for a name and email address and check neither. This week a blogger on Bear received a particularly nasty message via an embedded, third-party contact form on their blog, the sender could type anything into the email boxes and press send. It was signed with a fake name, and used the public email address of another blogger, essentially impersonating someone else to stir up trouble. What arrived was, in effect, a shitty, anonymous note. Anonymous notes are the worst kind to receive. There's nobody to reply to, nothing to block, and the perpetrator doesn't have a social incentive to behave. This is why Bear's solution to all three is a link with your email address in it (and if you're worried about scrapers, use a dedicated alias or separate address). Your email provider already does the heavy lifting on spam filtering, and a message generally has to come from a real account you can reply to or block. A contact form would have to recreate that verification with confirmation links, and most don't bother. Naturally, people can still get nasty emails from throwaway accounts, but the sender still has to set up that account or alias first, which adds just enough friction to discourage it. I suspect most nastiness online is impulsive, and the friction of email is just enough to let that impulse pass. I wrote recently that good systems are ones that well-behaved people barely notice. Email works the same way. A reader who wants to say they enjoyed your post already has an address, and is happy for you to see it. Someone wanting to stay completely anonymous to send a shitty email has to go out of their way to set it up. If you'd like readers to be able to reach you, the docs explain how to set up a reply via email link and a guestbook that runs on email. And if you think I'm wrong about any of this, you can get in touch with me here .

0 views

State of the art of optimal Rubik's cube solvers

Note: internal links to sebastiano.tronto.net may be broken in feed view. Read this page online or fix them manually if you want to follow them. As the regular readers of this blog surely know, one of my hobby coding projects is a Rubik’s cube solver . The last time I wrote about was last January , when I discussed some low-level optimizations that I was particularly proud of. A couple of weeks ago, I was contacted by Arhan , another programmer that shares my interested in twisty puzzle programming. Apparently he was granted $10.000 of cloud compute credit and an unlimited AI subscription plan, that he had used to generate a new optimal solver that blew all existing ones out of the water in terms of performance. But first, let’s do a little recap. The first optimal Rubik’s cube solver was written by Korf (1997) . Like all of the solvers we’ll mention in this post, his was based on the IDA* method, using large pruning tables and some clever tricks. The difference between his and other solver lies mainly in the specific pruning tables used and implementation details - you can read more about this in my post from January . For a long time, the most popular optimal solver was Kociemba’s Cube Explorer , neatly packaged in an easy-to-use GUI application. Later came nxopt by Tomas Rokicki , the mastermind behind the computational proof of the diameter of the Rubik’s cube graph being 20 moves (in other words: every position can be solved in 20 moves or less). A highly-optimized reimplementation of nxopt, Andrew Skalski’s vcube , was for a long time, as far as I know, the fastest optimal solver available. There are probably many more solvers worth mentioning, but I simply don’t know them. Sorry, this is not a primer, just a blog post written from my partially-informed self. Anyway, when I started working on a Rubik’s cube solver in 2019, I was not too ambitious. I first re-implemented Cube Explorer’s pruning tables and some of its tricks; later, when I found out about nxopt and vcube, I copied that method too. Not knowing all of the tricks that these other programmers used, my code was not as fast, but I was quite proud of it nonetheless. At some point in 2023 I started thinking about devising and implementing my own pruning tables. I did not think I could beat vcube, but it was fun to try anyway. But lo and behold, beat vcube I did - my fully-symmetric tables had an edge over nxopt’s ones, and the optimization tricks I learned in the last few years were almost on par with vcube’s. For some time my solver was one the fastest optimal Rubik’s cube solvers - that is, solvers capable of finding the shortest possible solution for any given cube configuration. To my knowledge, the only faster solver was cubeopt by Chen Shuang , which is a better-optimized implementation of my method; this program was about 2x faster than mine . cubeopt is not open source, but you can find a WASM build in this repository . But if the GRH can’t stand the AI tsunami, what chances does a hobbyist programmer’s toy project have? Arhan’s egg-solver is, once again, a better implementation of my optimal solver. A much, much faster implementation: in my benchmarks , it beats mine by factors of 5x to 9x, depending on the use case. The solver made some small improvements to the method I used - one of them I tried to implement, but got lost in details and gave up; the other I think I have simply missed. But most importantly, egg-solver takes full advantage of micro-threading , a technique I partially implemented and talked about in my last post . In practice, the recursive DFS search is broken up into tasks that are then processed iteratively. Each task yields back to the caller after a fetch-from-memory instruction, so that other tasks can continue while the data it needs is being retrieved from memory. Conceptually this is not particularly hard, but the implementation details can be tricky. Oh, and while it was analyzing my solver, the LLM also found a bug in my code. It was a silly error (stopping a loop one cycle too early), but it led to concrete failures . This piece of software is truly impressive. It also has a functional web version , go check it out if you are interested! I guess from a scientific point of view, this is all pretty cool. I am happy that my idea - in particular the fully-symmetric pruning tables - proved once again to be very effective, and it is cool to see that we now have software that can take an idea, refine it, perfect it and implement it. Am I scared of “AI taking my job”? No. First of all, nobody stops me from working on my hobby projects with my slow, mushy brain, even if “AI” can do it faster. Secondly, I may be wrong, but I don’t think LLMs can come up with new ideas the way we do. In the example we saw in this post, the ideas were already there, they just needed some refinement; and I think the same is true for the recent advances in Mathematics. And if it turns out I am wrong and software developers become redundant, I can always find something else to do. Worst case scenario I’ll be a rat hunter in my local post-singularity community, I think I can be pretty good at that.

0 views
Simon Willison 6 days ago

Ladybird's first alpha release

Ladybird is an astonishingly ambitious project: a new browser, in 2026, with its own implementation of most of the key components - HTML parsing, CSS engine, layout, JavaScript, even WebAssembly. It still uses a few external components - things like HarfBuzz for text shaping, Skia for 2D graphics, ffmpeg for video, and SQLite for the things you do with SQLite. Everything else is part of Ladybird, or code brought in from Ladybird's even more ambitious predecessor project SerenityOS . This morning the Ladybird project released their first alpha , which means you can now install the browser (on macOS or Linux) without having to compile it yourself! I've been trying it out today, and it's very impressive. It feels fast, the UI is lightweight and intuitive, and most of the websites I've tried to load in it have worked as they should. It looks like this (showing my video-compressor tool): Here's the process tree after I opened six tabs in one window and another tab in a second window (generated by this script , thanks Claude): Ladybird runs different tabs in different processes, an isolation mechanism used by most browsers (well, technically Chrome uses a process-per-site). I tried Ladybird against several of my more advanced tool examples - like the video-compressor shown above, which runs ffmpeg compiled to WebAssembly. I had it resize its own screenshot using my image-resize tool . It happily runs my Pyodide REPL (Python compiled to WebAssembly) too. The one thing I tried that didn't work was Datasette Lite , which runs Pyodide in a complicated arrangement of service workers and web workers. Attempting to start Datasette Lite displays this error: I filed an issue about this , then found a FIXME annotation in the source code. The project has been leaning heavily into coding agents this year. On February 23, 2026 Andreas Kling published Ladybird adopts Rust, with help from AI , describing how they ported parts of their LibJS JavaScript engine from C++ to 25,000 lines of Rust in two weeks using Claude Code and Codex. Here's the GitHub contributions chart for Ladybird over the past twelve months: That uptick in October corresponds to the landing of a wealth of big improvements. This Month in Ladybird — October 2026 describes what happened. In addition to moving style and layout to their own thread, landing a new JavaScript JIT, and replacing their C++ with Cranelift WebAssembly engine with new code that achieved a 7x boost on the JetStream 3 WASM benchmark , they gained 75,650 new passes on the ~2.25 million subtest web-platform-tests suite, beating Safari! How did they do that? Coding agents: Most of that gain came in five days, from about 2.12 million on October 22 to about 2.18 million on October 27. We pointed AI coding agents at WPT and asked them to fill in missing functionality. They made lots of small fixes, and those added up. Our biggest gains for the month were about 30,000 in and 10,000 in . I'm interested in what models they are using here - I know Andreas uses Codex and Claude Code, but I haven't seen him talk about specific model versions. Claude Opus 5.5 came out on September 22, 2026 and Claude Fable 5.2 on November 9, 2026 (after that window). I'd love to know what they were using for that huge leap in the last week of October. Here's what Andreas says about Ladybird's suitability for use as a daily browser: This is an alpha, so some websites won’t work, and it will crash sometimes. When that happens, tell us! You can report a broken site from inside the browser. After a crash, you can read the crash report and decide whether to send it. Our privacy policy has the details. We want security nerds to hack it! A new browser gets hacked, over and over, and that’s part of the process, so we make no promises about security today. When you pwn us, please tell us how so we can harden Ladybird! Given how hard it is to secure a web browser, and the hostility of the environment they operate in, I won't be using Ladybird to sign into GitHub or Gmail or any of my other sensitive accounts. I'm going to keep it around for anonymous browsing though, partly to participate in the testing efforts but mainly because it gives me a glimmer of optimism to see a promising new entrant in the stagnant browser engine market start to grow its wings. You are only seeing the long-form articles from my blog. Subscribe to /atom/everything/ to get all of my posts, or take a look at my other subscription options .

0 views
Uros Popovic 6 days ago

Build like a Google engineer: modern Bazel with modules, Go and Typst

A hands-on guide to modern Bazel with the module system: pinned toolchains, third-party Go libraries, images rendered with Typst, a custom rule backed by a Go tool, and a Go server with everything embedded, all built with one command.

0 views
Unsung 6 days ago

If a feature falls in a forest, pt. 2

In every file system, and in every notetaking app, each entry has two dates. One when it was created – this one never changes – and one when it was last edited. Here they are in Finder: = 2x) and (width >= 700px)" srcset="https://unsung.aresluna.org/_media/if-a-feature-falls-in-a-forest-pt-2/1.2096w.avif" type="image/avif"> = 3x) or (width >= 700px)" srcset="https://unsung.aresluna.org/_media/if-a-feature-falls-in-a-forest-pt-2/1.1600w.avif" type="image/avif"> And here they are in Bear: = 2x) and (width >= 700px)" srcset="https://unsung.aresluna.org/_media/if-a-feature-falls-in-a-forest-pt-2/2.2096w.avif" type="image/avif"> = 3x) or (width >= 700px)" srcset="https://unsung.aresluna.org/_media/if-a-feature-falls-in-a-forest-pt-2/2.1600w.avif" type="image/avif"> It is the same for Apple Notes, which I use for publishing Unsung. In most cases, the last-edited time is the right one for this scenario, but Notes thoughtfully allows you sort by either – this is useful for e.g. journaling, where spotting a typo or fixing a small things months later won’t see the note jump all the way to the top. (Here’s an example of a note started in February, but modified recently.) But that’s just the sidebar. In the note itself, only the last-edited note is shown: = 2x) and (width >= 700px)" srcset="https://unsung.aresluna.org/_media/if-a-feature-falls-in-a-forest-pt-2/5.2096w.avif" type="image/avif"> = 3x) or (width >= 700px)" srcset="https://unsung.aresluna.org/_media/if-a-feature-falls-in-a-forest-pt-2/5.1600w.avif" type="image/avif"> This can feel frustrating. You know the data is there, you see it in the left pane, part of the software recognizes and supports it, but there seems to be no way to summon it in a place you want. I looked through the context (right click) menus, and through the main menu. I couldn’t find anything, and I assumed that possibility just wasn’t there. Then recently, years on, I accidentally clicked on the timestamp, and this happened: That click was what I needed all along. Clicking alternates between “created” and “edited” timestamps. It even puts a little prefix not just before the other date, but before both . Yet… there is really no way to know this functionality is there. I don’t necessarily mean that Notes had to do something like what Finder or Bear do, and expose that data all the time – that kind of stuff can feel heavy. But I think it’s important to make sure all actions have their entry points somewhere where you can discover them. Maybe it’s the main menu, maybe it’s the right-click menu. I’m a fan of command palettes in part because that’s where more esoteric options can go without overloading other surfaces. I think I can imagine how this feature came to be. It was perhaps a “cheap” solution from someone on the team. The text was already there, the click was there, what’s the damage? You could wire it within half an hour. But clicking on a text label without any affordance – note that the cursor doesn’t even change – is not a standard gesture, and we all know the classic saying: “a feature is only as good as its entry point.” This has more of a scent of an easter egg: easter eggs are not to be found easily, and they usually hide behind nonstandard interactions. This is sometimes how the allure of “MVP,” minimal viable product, can work against quality. To you, the user problem is solved. You feel good about it. The bug can be closed, the hunger to do something is gone. But to the user, nothing changed. The team’s perception of the usability of the product is now disconnected from the user’s reality. Perhaps this suggests a principle: Beware of any feature you want to launch that feels like an easter egg.

0 views

Fast JSON and MessagePack in Zig

My first Zig project ever was msgpack.zig . I had just started rewriting the AcoustID index in Zig, and I needed a binary format for it. In C++, I used to use protobuf, but I didn’t want to generate Zig code from a schema. Zig already has a good way to describe data: its own structs. So I settled on MessagePack , with the protocol defined by Zig types. I still wanted some control over how things are serialized, though. In particular, I wanted protobuf-style numbered fields, so that messages could be compact without losing forward compatibility. JSON came later. I prefer a text format for my internal services, so I didn’t want to use msgpack there. From other languages, I was also used to JSON serialization being faster than I would expect. That was not the case with , so I started applying the lessons I learned from msgpack.zig to JSON and that resulted in json.zig . Both libraries ended up with the same basic design. They only work with statically known Zig types, and customization is done through options on those types rather than custom parsing code. This makes them less flexible than a general-purpose parser, but also lets them do much less work. To explain what I mean by that, I’ll start with how works. can decode directly into your types, with , without a generic in between. But everything still goes through a tokenizer. The turns the input into a stream of tokens, and the typed parser consumes those tokens. When it’s decoding a struct, it reads the next key as a string token, and then compares it against each field name, one by one, until it finds a match. Then it recursively parses the value, again from tokens. This makes it slow, because every key and every value passes through the token layer, and the parser can’t use what it knows about the type to skip any of that work. It also makes customization hard. The token stream is the only interface, so if you want anything that doesn’t map 1:1 to your struct, you have to write a function that consumes tokens and rebuilds the struct by hand. Renaming a single field means writing the parser and the serializer for the whole struct. My libraries don’t have a tokenizer. The function that decodes a struct is generated at compile time from that struct’s fields, and it reads the bytes straight into the result. You define a struct, and that’s your schema: The msgpack version looks the same, just with instead of . Encoding writes to a , and decoding reads from a , so they work against sockets and files, not just buffers in memory. The decoder also doesn’t need the whole document in its buffer; it streams. A larger buffer will obviously perform better, but a 1 MB string can still be decoded through a 64-byte buffer. There is no type. If you don’t know the schema, use . But for APIs with strict schemas, which is most of what I do, knowing the type up front is what allows the decoder to be fast. Since the code is generated from the types anyway, a type can declare how it wants to look on the wire, and the generated code takes that into account. Renaming fields is the most common case. Most APIs use camelCase, and I don’t want to use camelCase in Zig: By default, optional fields that are are left out of the output, which is what I normally want for APIs. If you need the , set . Unknown fields are an error by default, but you can skip them with , either on the type or on the whole decode. Because these options belong to the type, they apply wherever the type ends up nested, which is not the case with , where the options apply to the whole call. Tagged unions are the other common case. By default, a union is encoded as a one-member object, , but most real-world APIs put a discriminator field next to the data, and json.zig supports that directly: The tag has to be the first member. Otherwise, the decoder would have to buffer the whole object before knowing which variant to build, and that’s not compatible with streaming. In msgpack.zig, the options are more about compactness. Struct keys can be field names, field indexes, or your own numeric keys. The numeric keys are what I wanted from protobuf: you can rename and reorder fields without breaking existing data. With , old consumers can also read messages from newer producers that added fields. Most of the speed comes from simply doing less work. Keys are matched against field names known at compile time, numbers are parsed in the same pass that finds their end, and strings are copied straight into the result. In the GLD serializer benchmark , which compares Zig libraries, json.zig decodes 2-4x faster than , depending on the use case, and msgpack.zig is ahead of the other Zig msgpack libraries. I also have my own benchmark against the best C++ and Rust libraries, but comparing across languages is hard, so I haven’t published it yet. Allocation alone can make a 2x difference. My libraries decode into an arena, while C++ and Rust libraries typically allocate every string separately. When I account for that, both libraries are comparable to glaze, simdjson and sonic-rs. Currently, floating-point numbers are the main weak spot of my JSON library. Both libraries work with Zig 0.16 and 0.17: msgpack.zig has been used in production for a while now. json.zig is newer and hasn’t seen production traffic yet. There are use cases I haven’t run into myself, so if something doesn’t work for you, open an issue on GitHub.

0 views