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
Unsung Today

My Golden Gate welcoming committee

The first thing that welcomed me after my jump from macOS Sequoia to Golden Gate was a cavalcade of scary notifications on the right from various apps that worked before, but suddenly required new permissions. There was no welcome screen, no cute animation , no onboarding, no announcement of a new-in-this-context Liquid Glass. Instead, a wall of notifications taller than my display, thrown onscreen all at once as if I just entered a busy subway station in a dystopian movie. Second thing? My folders in Finder were now ugly: = 2x) and (width >= 700px)" srcset="https://unsung.aresluna.org/_media/my-golden-gate-welcoming-committee/1.2096w.avif" type="image/avif"> = 3x) or (width >= 700px)" srcset="https://unsung.aresluna.org/_media/my-golden-gate-welcoming-committee/1.1600w.avif" type="image/avif"> Finder’s new design started tinting the colors of each folder depending on its label – not a bad idea in and of itself – but that had a few side effects. One of those was that my folders were no longer blue, but graphite-tinted (graphite is my go-to system theme), feeling sad and inactive. Okay, “ugly” is sometimes in the eye of the beholder, and I heard before that there was a new option to customize the folder color. I found it quickly in System Settings: None of these default colors looked good to me, alas, feeling garish and clashing with the tinting coming from my beloved labels. Luckily, there was an overflow leading to a new interface: Little did I know I’d spend half of the following hour fighting with it. Spoiler alert: This is bad UI, both in its design and its execution. It is wild to me how bad it is, especially for a just-added feature. I want to show you some of the moments I experienced then, and how I tried to wrap my head around it all in real time. First moment: Why is the icon refreshing so janky? Then: Why does it offer grabbing a color from elsewhere, but then seemingly samples a wrong color? Why does it often feel the second slider does nothing at all? Or why is it sometimes completely white? How am I supposed to understand this situation? Why isn’t this reusing the default color panel, or allow me to fall back to it? = 2x) and (width >= 700px)" srcset="https://unsung.aresluna.org/_media/my-golden-gate-welcoming-committee/9.2096w.avif" type="image/avif"> = 3x) or (width >= 700px)" srcset="https://unsung.aresluna.org/_media/my-golden-gate-welcoming-committee/9.1600w.avif" type="image/avif"> Why do the two sliders look different than system sliders (just compare with the ones above), and don’t behave like real sliders – for example, ignoring dragging from the elevator that has been supported for decades? Why was this designed as a strange combination of two pop-ups replacing each other in the same place – a pretty bad IA pattern – rather than, for example, an extensible pane? Why does one say “Automatic” and the other “Use Theme Colour”? Why is it sometimes wide and sometimes narrow? And why does it crash – spectacularly, animating itself into oblivion, then taking the entire System Settings pane with it – whenever I touch it in the wrong place? In a .2 release? Eventually, with a lot of struggle and frustration, I found a passable color. = 2x) and (width >= 700px)" srcset="https://unsung.aresluna.org/_media/my-golden-gate-welcoming-committee/14.2096w.avif" type="image/avif"> = 3x) or (width >= 700px)" srcset="https://unsung.aresluna.org/_media/my-golden-gate-welcoming-committee/14.1600w.avif" type="image/avif"> It’s a color. I understand colors. But I no longer know how I got to it, and I am afraid to touch the whole thing again. I know I’m fixating on this UI component, but it is macOS that forced me to get to know it so well. In a good and just world, this should be the fun part of settings! It should be delightful – making the new operating system feel like yours , having it match your identity, or offer an opportunity to entertain a new one. This should feel like putting a sticker at the back of your laptop’s lid or choosing a case for the phone. Colors are fun . It’s okay to spend an hour twiddling with color sliders, trying to find one that will make you happy. But not like that. Even without any clicking, this whole pane, just look at it: = 2x) and (width >= 700px)" srcset="https://unsung.aresluna.org/_media/my-golden-gate-welcoming-committee/15.2096w.avif" type="image/avif"> = 3x) or (width >= 700px)" srcset="https://unsung.aresluna.org/_media/my-golden-gate-welcoming-committee/15.1600w.avif" type="image/avif"> It’s bad overall, with scant visual rhythm or hierarchy, and multiple mismatched types of previews. Things seemed to have just been piled on every year without paying off any design debt, thrown into a framework ill-equipped to hold them starting from day one. I have now spent a few weeks with Golden Gate, and I wish I could say this is an exception. I still see many bugs from Sequoia, and I see some new ones, too. Both Finder and System Settings feel positively cobwebbed. Siri has been crowbarred into places, creating new patterns not consistently applied elsewhere. Shortcuts continues to work half of the time. Apple’s promise was that Golden Gate was a Snow Leopard- or Mountain Lion-like release that focused on bug fixing. The word on the street was that the damage from Tahoe – which I personally skipped on my primary machine – was fixed, with things back to normal. This was what motivated me to switch. But now I feel we all graded macOS on a curve. It’s entirely possible that bug fixing was the focus of this release. But it wasn’t successful. It seems the slide from WWDC was less of a tip of the iceberg and more just the whole iceberg. Maybe not enough people were assigned to the project. Maybe not enough time given. Maybe the bug prioritization was off. I do not know. I don’t understand the near abandonment of settings . I don’t get how Apple can be so passive-aggressively angry at the web and React, and then ship a color picker that feels like a cargo-culted, shitty web interface. I don’t agree with macOS being held to very different visual and interaction standards than iOS. In the end, this is how Golden Gate welcomed me: no gentle onboarding, no “what’s new in this version of macOS”, no “we changed how your folders look, but here’s a new fun option for you to take ownership of it.” No. Only a torrent of notifications that stressed me out so much I forgot to screenshot them – and then a janky, inconsistent, seemingly vibe-coded interface put together as an afterthought. Welcome to Jank City, population: you. I keep souring on Apple’s software in recent weeks . There are some good moments , of course. And I love the Duo animation as much as the next person. I think it hits all the rare trifecta: it’s helpful, beautiful, and technically impressive. But a good design culture is where attention and care aren’t just reserved for marquee keynote and advertisement moments. It’s a place where you practice a healthy diet, where you pay attention to other things, where you don’t allow “unsexy” moments to be forgotten or taken for granted, where you reward hard work with the right incentives. The problem with interfaces that are an afterthought is that they make your user feel like an afterthought, too. (PS I eventually rebooted the system a week after its first run, and only then I got a welcome screen. It felt sad, perfunctory, and confusing; it admonished me for choosing not to sign into Apple ID, even though I’ve been signed in for years. The only interactive part was Liquid Glass’s slider I already adjusted. It made the whole macOS feel old and tired . I wonder now: Is this what Mac OS 8 felt like, before the whole thing imploded and needed to be rebuilt from scratch?)

0 views
Unsung Today

The Bug of Revelation

I have a strange soft spot for innocuous bugs that happen to disclose the inner workings of things. Here’s a video a friend sent to me: If you can’t immediately see what’s going on – computer, enhance and apologize: Yeah, if you don’t do front-end for living, you might not know that the loading rotators are not animated like an old Disney movie, but they’re just one visual element actually rotating in place. (Or perhaps this was obvious to everyone but me.) If the middle point of the rotation is just a fraction of a pixel off, it’s going to start feeling like a small moon pulling its huge planet slightly off its center. Now that you are aware, you will spot a lot of wobbly rotators everywhere; this one is just a particularly egregious – and hilarious – case. This is how it’s supposed to look, by the way: Another example is Cabel Sasser posting this a while back: for some reason it really bothers me that when you click and drag this dumb guy in slack, it drags out a sprite sheet 🫠 This is almost the opposite, almost like a more traditional animation technique – here, realized in a more modern form of a sprite. It’s yet another bug you can actually learn from. The first response to the post is a Slack developer fixing the bug. I have to say that it made me a bit sad to see it gone.

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
Giles's blog Yesterday

The Shaving of Yaks is a difficult matter

If you read many blogs, you'll have seen the pattern before. The author proudly posts about some milestone, promises new posts soon, and then goes quiet for a year or two. I posted just over two weeks ago celebrating 20 years of writing here, and I wanted to reassure those who are eagerly awaiting the next article that I ATEN'T DEAD -- I'm simply deep in yak-shaving . What happened was that I started poking into the logit lens , an LLM interpretability technique. It was clear to me that to make the point I wanted to make, I would need two LLMs -- one with weight tying , and one without, but otherwise both as similar as I could make them. However, I hadn't trained a weight-tied model since March and I've made a bunch of changes to my training setup since then. So I started training a new one. As it turns out, weight-tied models are trickier to train than models that have an independent output head, and digging into that was interesting. So the logit lens post was put on hold while I investigated, so that I could write up some findings about training weight-tied models. Then I spotted something odd -- when a model training run failed, it was failing in what looked like an impossible way. The weights all got updated to non-finite values in a single step, which I felt should be hard given that I'm using AMP, which -- as I understood it -- filters out non-finite gradients. I believe I've worked out what's going on there, and want to write that up. So hopefully that will be the lowest level of this diversion and it won't turn out to be yaks all the way down . We shall see.

0 views
Kev Quirk Yesterday

2026-11-28 17:00: I've watched the (4 hour!) #Musk documentary over the last few days. It's done nothing...

I've watched the (4 hour!) #Musk documentary over the last few days. It's done nothing but strengthen my resolve that he is an utter, utter, twat. Why people support this moron is a mystery to me. 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 Yesterday

“Something a step above AAA”

An argument from Victoria Zeller on Bluesky that made me pause: I’ve been trying to identify the exact reason GTA6 feels like such a revelation and honestly, I think it’s that it keeps the promises almost all AAA games flake on. You actually do feel the quality, the budget, the time, the massive team. It’s well-optimized, smooth, polished in every way. I know Rockstar makes something a step above AAA, this game is an impossibly massive monocultural event, no other game can possibly hope to compete with their level of resources… …but if you’re gonna have that many resources, it’s your job to make something perfect. And they’ve done it. I think this pokes at something really interesting. I haven’t played the game, but by all accounts Rockstar built something near perfection . And in the other corner, I see Adobe and Google – companies with a larger market cap, and arguably more experience shipping software – being so careless that they gave up on such simple things like proper capitalization of menu options (which has not, to my knowledge, ever happened before): = 2x) and (width >= 700px)" srcset="https://unsung.aresluna.org/_media/something-a-step-above-aaa/1.2096w.avif" type="image/avif"> = 3x) or (width >= 700px)" srcset="https://unsung.aresluna.org/_media/something-a-step-above-aaa/1.1600w.avif" type="image/avif"> = 2x) and (width >= 700px)" srcset="https://unsung.aresluna.org/_media/something-a-step-above-aaa/2.2096w.avif" type="image/avif"> = 3x) or (width >= 700px)" srcset="https://unsung.aresluna.org/_media/something-a-step-above-aaa/2.1600w.avif" type="image/avif"> I know mine is a simplistic and naïve take, but sometimes keeping things basic helps. It has always been perplexing that the lists for well-made apps and best app updates are dominated by indie products, but Rockstar is far from its humble 1990s Dundee roots , and shows that doesn’t have to be the case.

0 views
Unsung Yesterday

Claude’s reversed psychology

A pattern I spotted in Claude’s document viewer interface: = 2x) and (width >= 700px)" srcset="https://unsung.aresluna.org/_media/claudes-reversed-psychology/1.2096w.avif" type="image/avif"> = 3x) or (width >= 700px)" srcset="https://unsung.aresluna.org/_media/claudes-reversed-psychology/1.1600w.avif" type="image/avif"> = 2x) and (width >= 700px)" srcset="https://unsung.aresluna.org/_media/claudes-reversed-psychology/2.2096w.avif" type="image/avif"> = 3x) or (width >= 700px)" srcset="https://unsung.aresluna.org/_media/claudes-reversed-psychology/2.1600w.avif" type="image/avif"> It’s clunky in practice and it’s hard to imagine it scaling to more options, but it is an interesting reversal: instead of doing the standard “let’s disable the item by grayscaling it,” where you never see any explanation why it’s disabled , the interface allows you to toggle the option on – but then simply tells you why it’s not taking any effect in this configuration. (A nice challenge would be to try to compact the string into one line .)

0 views
Kev Quirk Yesterday

2026-11-28 08:24: There's very few cases of more intelligent things being controlled by less intelligent things. Once...

There's very few cases of more intelligent things being controlled by less intelligent things. Once AI is a lot smarter than us, I don't think they'll put up with that. -- Geoffrey Hinton Well that's not worrying at all. 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
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
Max Woolf 2 days ago

Opus 5.5 and Fable 5.2 made my overoptimized Rust code even more overoptimized

I like fast software. I like very fast software. A couple months ago, I published a blog post titled Writing Rust code that’s faster than state-of-the-art libraries by asking agents to make the code faster in which I listed techniques for using agentic LLMs to speed up the runtime execution of Rust software—of course, with extensive checks and balances to ensure good code quality, avoid regressions, and mitigate cheating by the LLMs. After enough iterations, the resulting Rust libraries are faster than existing state-of-the-art implementations with the same or better capabilities, even against those already written in Rust. The main bottlenecks for me open-sourcing the resulting Rust crates are a) doing comprehensive real-world testing to ensure the code works as advertised and b) I don’t want to release the code and then have another model release immediately find another 2x-or-more speed boost because that would be embarrassing. I’m not satisfied with my code merely being faster than state-of-the-art: I want my code to push against hardware limits even for “fun” software that may not require maximum throughput. I don’t want my benchmarks to be measured in milliseconds, I want them measured in microseconds , dammit. Who knows if some application in the future will require submillisecond word clouds or submillisecond ASCII art generations? In that blog post, I mostly used OpenAI’s GPT models for this agentic iteration pipeline. The day after publication, Anthropic announced Claude Opus 5.5 , which was met with skepticism as Opus 5 was underwhelming…and then it quickly turned out that Opus 5.5 was a step-change increase in the capability of agents with the ability to complete difficult technical tasks that neither OpenAI’s nor Anthropic’s other models could complete. I spent the $20/mo to try out Opus 5.5 on my agentic iteration pipeline after observing the hype…and after only two days, the results were impressive enough that I paid the $100/mo to get more usage quota. Through more testing over the past couple months, I can confidently say Opus 5.5 and its subsequent Fable 5.2 sibling did in fact result in significant performance breakthroughs that indeed push my Rust software to its limits. Lest people think that this post is an undisclosed #ad for Anthropic, I had grievances with Claude Code prior to Opus 5.5 which were the primary reasons I switched to OpenAI’s Codex . One such example is Claude ignoring AGENTS.md in favor of CLAUDE.md ( until very recently ), which was honestly petty enough to tip the scales. The main grievance with using Claude Code is deciding which harness to use—or, rather, the lack of decision. Although I was fine with using Claude Code in the terminal back in the halcyon days of Opus 4.5, Codex’s ability to use any harness, such as Zed Agent which allows using the Codex subscription natively, made it more convenient to keep everything in one place. In contrast, Claude Code infamously blocks third-party harnesses and has closed workarounds used to access it regardless. Therefore, I had to consider workarounds for using Opus 5.5 in a way that doesn’t require significant changes to my agentic iteration pipeline. Zed Agent has a workaround to use Claude Code by following the Agent Client Protocol , but there was a problem due to how Claude operates: Opus 5.5 loves spinning up background tasks and working asynchronously, and Zed Agent had poor support for background tasks so I had little idea what the agent was actually doing. This was made worse by Opus 5.5 never editing code files using Edit tools; instead, Opus 5.5 likes to write Python files which surgically find/replace the code. I tried using the Claude Code terminal application again but that made the ergonomic issues above even more difficult to manage. Claude editing a Rust file by writing a Python script. That said, the async nature can save time when spinning up subagents (in this case Haiku 5.5) to review the changes made, as the main Opus 5.5 agent can write code or run long benchmarks while the subagents simultaneously do their nonblocking review work. Therefore, my main harness for my Opus 5.5 work was the standard desktop Claude app —which will likely eliminate all my AI engineering street cred, but it is what it is. In addition to clearly listing background tasks in progress, the native app also lists current session and weekly usage which was a pain to constantly check when using Zed Agent or CLIs. Background task sidebar in the Claude Code desktop app. There are also two more usability perks of using Claude Code within the desktop app: images always appear inline when the agent reads them so I can tell specifically what the agent is reading, and Remote Control is unexpectedly useful for letting hours-long prompts run while I’m doing other things such as job hunting and touching grass (but failing because I really wanted to know how well the code is running). At first, I fed Opus 5.5 my updated Ur-Prompt for agentic iteration—typically a prompt with an explicit directive to improve the speed at which the benchmarks run by at least a specified amount without either causing regressions or cheating the benchmark results. With this new model (and a few tweaks to my AGENTS.md to address some peculiarities with Claude), that approach indeed worked, and in a single pass, Opus 5.5 achieved 1.2x - 1.5x speedups on multiple distinct projects which had already been optimized with GPT 6.1 Astra. That said, there are a few quirks with how Opus 5.5 works such as prompt queueing: with Codex/Zed Agent, I could queue a prompt such as such that it would only be sent to the agent after it was done with the current prompt (important as it is deliberately asymmetric information as telling someone to do a breakthrough while they are still working is counterproductive), but with Claude Code it will send any queued message when idle, e.g. while it’s waiting on background tasks such as benchmarks and subagents. My silly workaround to this behavior was to put in a Markdown file in another folder outside of the current environment (so Claude can’t accidentally find it when it examines the environment), then add to the prompt: This works, and Opus 5.5 indeed does not cheat by reading ahead of time, and the breakthrough commands do result in actual breakthroughs. One issue I have with Opus 5.5 is that it definitely writes more lines of code than the GPT models: in the case of Rust that’s not necessarily bad performance-wise since it’s a compiled language but it adds more technical debt than I would like. For example, many of my Rust projects rely on PNG image encoding and decoding through Rust’s png crate. However, when Opus 5.5 was instructed to make improvements on benchmarks where PNG processing is on the hot path, it consistently creates its own bespoke PNG module from scratch (with parallelism/streaming better-aligned to how the base code processes the data) that does achieve the desired 1.2x - 1.5x speedups without causing any regressions, so I’ll begrudgingly accept it. I very frequently run maintenance passes and even then it struggles to do so. Another issue with agentic iteration work specifically is that Claude Code obfuscates how it runs benchmarks. When running benchmarks with criterion , instead of displaying the benchmark results as they come in, they’re piped to a temporary file so I can’t view intermediate progress. It also doesn’t return results from the benchmarks until after they’ve concluded, despite my prompting explicitly asking it to, so I have to twiddle my thumbs a bit (again, good for attempting to touch grass). Agentic LLMs have mostly become homogenized in terms of how they work through their turns, with the difference between certain LLMs coming down to benchmarks which may be gamed, or worse— vibes . Overall, I have to give more trust to Opus 5.5, which I have mixed feelings about. That said, the trust has been rewarded, particularly with new approaches I found where Opus 5.5 excels where GPT models did not. In my prompts, I always added a suggestion about leveraging process profiling that the GPT models mostly ignored: Opus 5.5, in contrast, is extremely eager about profiling with samply to find the areas where code spends most of its time executing and will often do so as its first task, including reprofiling after each change to find changed hot paths for further improvements. Opus 5.5 profiling a Rust crate with a somewhat inscrutable command. Opus 5.5 also spends more time running experiments whereas GPT models edit the code first then ask questions later; both approaches have their merit but I think Opus 5.5 is more productive at it. While working on making my Rust software super-fast, I never put much thought into how much system memory it utilized. I figured it was unnecessary since a) Rust is already extremely memory efficient and b) writing to RAM beyond what is needed causes wasted system overhead which would inevitably be caught by the existing prompts to make the software faster. I was wrong. Very wrong. If I could get a ~20% reduction in peak memory without much code complexity change, then maybe it’s worth pursuing. Therefore I gave Opus 5.5 a simpler-than-usual prompt because I was too apathetic to prompt engineer it: The results on a couple projects: Memory decreases on my Rust HDBSCAN /clustering crate after the prompt. Memory decreases on my Rust text search project (in-memory, not CLI). I immediately used the same prompt on all my projects and achieved similar significant peak memory reductions (doing a second pass with resulted in even stronger reductions). In general, it achieved this through the traditional tricks used to explicitly manage memory such as streaming data and smarter specification of sizes. That said, I had hoped that this approach would result in speed improvements (i.e. the agent discovers an algorithm has no viable memory improvements and therefore it implements a better algorithm) but significant speed improvements were rare. Another hyped aspect of Opus 5.5 is its ability to better handle visual design and avoid the typical “AI Slop” aesthetic when designing web applications. This capability may not intuitively translate toward maximizing the speed of my Rust software, but it’s crucially important to balancing both speed and quality for my applications that rely on visual design, as visual design isn’t always subjective and “it looks ugly” can be a legitimate software regression. In my initial post about agentic iteration, I described implementing a UMAP algorithm with this approach, as UMAP is a useful-for-me dimensionality reduction algorithm (among many) that when used to project to 2D, it can automatically create intuitive visual clusters. Images of Digits clustered via umap-learn. via umap-learn docs In my original post, I noted that the Python bindings of my Rust UMAP algorithm beat umap-learn by 4x - 15x after several agentic iterations. Although it excelled at all the typical quantitative benchmark metrics, my UMAP algorithm apparently failed the most important benchmark: vibes. The visual clusters in cases such as the famous MNIST dataset of digit images were not semantically distinct compared to existing implementations such as umap-learn, PaCMAP , and TriMap : The Python bindings of my UMAP crate (top-left) are indeed ~12x faster than but that doesn’t matter if it produces indistinct clusters. So I asked Opus 5.5 iterate specifically to improve cluster distinctiveness compared against for the known good implementations while minimizing the speed tradeoff, along with making more apples-to-apples fairness tweaks: Download the video . Opus 5.5 also made the head-to-head video, which is unexpectedly hypnotic. The speedup relative to fell to about 4x, but cluster quality is very comparable now and 4x is still a good speedup. Another visual-oriented project I’ve been working on since Opus 4.5 is the fast and accurate automatic conversion of images from raster files to vector (SVG) files that can scale to any size. This isn’t a new concept: tools such as Inkscape that convert images to vectors/SVGs have been around for awhile. Rust itself has vtracer and img2svg , but I wanted to see if I could beat them not only in speed, but also a) visual fidelity between the vector and raster and b) output SVG file size, which requires deriving fewer and more efficient SVG Paths and Bézier curves . Take for example, this image of a pelican riding a bicycle. That is what everyone talks about with AI, right? A 393KB vector-art-style image generated with ChatGPT Images 2.5. Don’t think too hard about its left leg. This test case is deliberately tricky for raster-to-vector algorithms as pelicans are very curvy. Running the image through with default settings results in a 153KB SVG that’s unusably blocky. Prior to Opus 5.5, running the image through my Rust crate that went through the GPT agentic iterative optimization pipeline resulted in much better output than / for my crate, but still had enough errors such as color blotches and jagged “staircases” that were easily identifiable and would make the output vector SVG unusable, so I shelved the project entirely. Opus 5.5 in contrast is eager to zoom into the image, find staircases, construct comparison grids and image diffs, fix the underlying algorithms, and repeat until it’s fixed. Opus 5.5 iteratively examining output SVGs by creating comparison matrices of test outputs. With the guardrails and repeated Opus 5.5 iterations, my approach to raster-to-vector finally beats the existing options by considerable margins. For this pelican example, my crate beats both and in all of speed, size, and error. Here’s the pelican SVG output from the crate, reduced from the stated 25KB to 14KB after passing it through a separate SVG compression/refinement tool I also created and optimized with Opus 5.5 using similar techniques: It’s not 100% perfect but you really need to zoom in to see the defects. This pipeline has worked well with my other test images, but it still needs more real-world tests before I will release it. Yes, we’re going there. The release of Opus 5.5 specifically led to a new age of reverse engineering software using LLMs, from Reverse Engineering Anything allowing reverse engineering anything (duh), to drastically speeding up decompiling games . For my work making software as fast as possible, I didn’t read too much into it until I randomly saw one of my reasoning traces run objdump to try and figure out why a change did not result in an expected speed increase. So as an experiment, I gave this as a part of a dedicated variant Ur-Prompt in its own pass (since Opus 5.5 may avoid disassembly unless you specifically constrain it): The effectiveness of this approach legitimately surprised me…but don’t ask me to explain what’s happening. Speedup after a disassembly optimization for a Rust graph network crate. Speedup after a disassembly optimization for the Rust UMAP crate (w/ the visual constraints persisting). Somehow, Opus 5.5 is smart enough to make Rust code changes that propagate through LLVM to the resulting binary with fewer instructions without causing regressions—I would have called that impossible a year ago. One potential weakness of this approach is that it may overfit to specific hardware (my M3 MacBook Pro / ARM architecture) but the diffs appear to be more architecture agnostic. At the very least, it intentionally doesn’t write custom CPU instructions in Rust itself because doing so requires . You may have noticed I haven’t talked about Fable 5.2 yet despite giving it equal billing with Opus 5.5 in the headline. Fable 5.2 was released a couple weeks ago and its benchmarks were…ok. Not much better than Opus 5.5 on paper especially below effort, but much more expensive. I had spare quota, so why not put Fable 5.2 (on effort) through the same paces I did for Opus 5.5? I fed it the Ur-Prompt (and bumped the research subagents to Opus 5.5), and Fable 5.2 did not achieve the 1.2x - 1.5x speedup consistent with each successive model release. Fable 5.2 instead achieved a 1.5x - 2.0x speedup on many of my projects. Massive speedups for my word cloud project in both text parsing and generation. Given the benchmark results, I don’t get it but I am very much not complaining. One tool I’ve been experimenting with (particularly in this very post) but never talked about due to potential accusations of heresy is a next-generation grep replacement that is faster than the beloved ripgrep , but with additional features; this new Rust crate named byteseek . ripgrep, itself written in Rust and optimized for over a decade, is tough to beat speedwise without shenanigans, however Fable 5.2 was able to find massive speedups on synthetic benchmarks in-memory. Also massive speedups for byteseek; this is after I told Fable 5.2 to . ripgrep itself uses real-world datasets to benchmark (Linux source tree and English+Russian OpenSubtitles; Russian tests UTF-8) and does the benchmarks via the CLI which has significant overhead from opening files for scanning not present with in-memory benchmarks, so I ran an apples-to-apples CLI benchmarks comparing the two on both synthetic and real data: byteseek particularly excels at alternation/multiple query terms and case-insensitive searches. BTW I am also developing a new scientific data visualization library in Rust and wanted an excuse to dogfood it. Given the likely skepticism about its performance, I am officially open-sourcing byteseek on GitHub early as a research preview to demonstrate just what this type of overoptimized Rust code looks like. Since I have the speed headroom to do so, I also added more features such as pretty-printing output for humans, jq -like JSON searching (plus YAML/TOML), fuzzy and predicate matching, and Python bindings which unexpectedly beat the optimized pyahocorasick and orjson . A ripgrep-like output with but with more information and more pretty . In all, this is my new agentic iteration pipeline: The Opus 5.5 pass Typically done using my updated Ur-Prompt , with various constraints tweaked depending on the problem. (e.g. the target metrics for optimization and regression mitigation) The Opus 5.5 peak memory reduction pass Simple prompt, if there is a significant speed increase that implies performance has not converged. The Opus 5.5 disassembly pass Done with a dedicated variant Ur-Prompt , if there is a significant memory reduction. The Fable 5.2 pass Same as the Opus 5.5 pass, although I bump the subagents to Opus 5.5 to better match the model’s power. The (optional) Fable 5.2 disassembly pass …if I have Claude Code quota to spare: Fable only being able to be used for half of the Claude Code weekly quota is a bummer. My Rust software that I had already optimized with GPT-6.1 Astra now achieves a cumulative 4x speedup on average with much lower memory utilization, and this was reproducible across multiple projects. My word cloud generator—where I was overly excited about hitting 1 millisecond generation—now generates in 374 microseconds. This also generalizes to projects where speed is more meaningful, such as my Rust statistical modeling library and my Rust data visualization library. Per Opus 5.5, the performance for most of my Rust projects have now have hit theoretical hardware limits. Therefore I have little reason to continue procrastinating as new models likely won’t make the code meaningfully faster, so I should hopefully be shipping more quickly. That said, marketing the Rust projects has become increasingly difficult since my original post for a number of reasons, but that’s a discussion for another blog post. In the meantime, I should learn how compiler optimization in Rust actually works as there are likely more significant code speedup opportunities there… The Opus 5.5 pass Typically done using my updated Ur-Prompt , with various constraints tweaked depending on the problem. (e.g. the target metrics for optimization and regression mitigation) The Opus 5.5 peak memory reduction pass Simple prompt, if there is a significant speed increase that implies performance has not converged. The Opus 5.5 disassembly pass Done with a dedicated variant Ur-Prompt , if there is a significant memory reduction. The Fable 5.2 pass Same as the Opus 5.5 pass, although I bump the subagents to Opus 5.5 to better match the model’s power. The (optional) Fable 5.2 disassembly pass …if I have Claude Code quota to spare: Fable only being able to be used for half of the Claude Code weekly quota is a bummer.

0 views
Farid Zakaria 2 days ago

Your phone is a Kubernetes node

tl;dr tabernetes turns browser tabs into real Kubernetes nodes. Open tabernet.es on your phone to join my live cluster: the scheduler assigns your tab a pod, and it runs on a Linux kernel booted inside the browser . Ever since I came across @_pi0_ ’s work on unkernel.dev , it’s been a chaotic brain-gasm of ideas about running Linux in unconventional places now that it’s economical and practical enough to do even on a phone. 1 In my last post I introduced tabc , a container runtime that runs each container in a browser tab. Feedback to the project and the post were a mix of curiosity and a surprising amount of skepticism about whether this could actually be useful. What can you do with a container runtime that treats every browser tab as a potential host? How about create a massive botnet Kubernetes cluster out of people’s browsers? The genesis of the idea came from that flag in . It made me realize that any browser that opens a link could effectively become a host for a container. If you could coordinate multiple browsers, you could orchestrate them like a real cluster. By default that URL is only bound to localhost, so it’s meant for your own browser. Nothing in actually cares where the browser lives, though: put a reverse proxy or tunnel in front of it, send the link to a friend, and their laptop runs your container. If any browser can run a container just by opening a link, then any browser can become a node in “a cluster”. The one thing missing is a way to coordinate them all: a scheduler like Kubernetes . The end result is tabernet.es , a Kubernetes cluster made out of people’s browsers, phones included! Ready to join? 🧑‍🍳 Go ahead and scan it (or open tabernet.es/join ) and your browser will join my live cluster: That is a real k3s cluster, 2 and is just the phone in my hand with a browser tab open. 🤯 The cluster at the moment is configured with two services: one counting visits and another rendering Mandelbrot tiles. Once you join, your tab displays your pod’s live logs and you can even start a shell. Hit “Send a request” or “Render a picture” on the dashboard a few times and watch the tab start churning with activity. 3 As far as Kubernetes is concerned, a node is really just two things: a object in the API server advertising some capacity ( 1 CPU, 256 MiB of RAM, Ready ), and a that keeps renewing its lease and starts whatever pods the scheduler binds to it. There is no rule saying the kubelet has to run on the same physical machine as the workload it manages. 4 is a small Go agent sitting next to the API server that acts as a kubelet for every connected browser tab at once . On the Kubernetes side, a pod only needs a single line to land on a browser. Everything else is standard pod YAML: The agent also labels each with whatever the browser reports about itself: the OS platform, browser name, and device model when available. That means you can target specific devices with a normal : That pod will only run on Android phones. Swap in and you have the world’s first Kubernetes workload with a blue-bubble requirement. 5 In order to facilitate migrating workloads between the browser and the host, the pod is effectively split in two. The browser tab supplies the CPU and RAM. Everything else: the container image and volumes, stays on the server. This is the magic that makes it possible to migrate a stateful service like Redis between different phones without losing its state. 6 Did this further exploration change any of those eye-rolls from earlier? Obviously this is not how you should run production but it does make me think of leveraging possibly the world’s largest pool of disposable compute: people’s phones. 7 I continue to be fascinated with exploring what new possibilities arise when running the bedrock component, Linux, in the browser makes possible. It’s wild that a single URL is now enough to turn almost any device on earth into a sandboxed Linux compute node in a couple of seconds. Go join the cluster at tabernet.es , or check out the README if you want to spin up your own. Sometimes you build the ridiculous version just to see how far the abstraction actually bends. trynix.dev is another project of mine exploring Linux in the browser, which inspired some of my thinking here.  ↩ I chose to run k3s because it is a lightweight Kubernetes distribution and I’m running this on a small exe.dev instance.  ↩ Please be kind to the server. It is running on a tiny instance with 2 vCPUs and 8 GB of RAM.  ↩ Virtual Kubelet has been doing this for years to make managed cloud container services look like a single giant node.  ↩ I actually cringed making this joke.  ↩ unkernel.dev can actually snapshot a running Linux guest, serialize its memory, and resume it in a completely different browser tab but that requires a graceful shutdown.  ↩ This is reminiscent of distributed computing projects like Folding@home , where people’s personal devices contribute to a larger computational effort.  ↩ trynix.dev is another project of mine exploring Linux in the browser, which inspired some of my thinking here.  ↩ I chose to run k3s because it is a lightweight Kubernetes distribution and I’m running this on a small exe.dev instance.  ↩ Please be kind to the server. It is running on a tiny instance with 2 vCPUs and 8 GB of RAM.  ↩ Virtual Kubelet has been doing this for years to make managed cloud container services look like a single giant node.  ↩ I actually cringed making this joke.  ↩ unkernel.dev can actually snapshot a running Linux guest, serialize its memory, and resume it in a completely different browser tab but that requires a graceful shutdown.  ↩ This is reminiscent of distributed computing projects like Folding@home , where people’s personal devices contribute to a larger computational effort.  ↩

0 views

Protect Your Web Forms Against Spam Bots

The comments form that appears at the bottom of every article in this blog is under constant abuse by spam bots. I added a CAPTCHA to it a few years ago and at the time it seemed to help some, but spammers have now figured out how to bypass them. As a result, my comments inbox has been getting out of control lately. In this article I'm going to share a solution that I built to help me reduce spam on this blog from 30-40 messages per day to just about 2-3 per month. It is based on the " proof of work " concept, and unlike CAPTCHAs, it does not rely on third-party services. It is also better for users, because it does not require them to solve silly puzzles or even know that they are being verified. I have implemented the solution in Python and Flask, because that is what this blog runs on, but once you understand how it works you should have no trouble porting it to other languages or frameworks.

0 views
Unsung 2 days ago

“This message has been on the screen for almost two hours now.”

IBM’s mainframe computers in the 1970s sported particularly distinctive red power buttons: = 2x) and (width >= 700px)" srcset="https://unsung.aresluna.org/_media/this-message-has-been-on-the-screen-for-almost-two-hours-now/1.2096w.avif" type="image/avif"> = 3x) or (width >= 700px)" srcset="https://unsung.aresluna.org/_media/this-message-has-been-on-the-screen-for-almost-two-hours-now/1.1600w.avif" type="image/avif"> = 2x) and (width >= 700px)" srcset="https://unsung.aresluna.org/_media/this-message-has-been-on-the-screen-for-almost-two-hours-now/2.2096w.avif" type="image/avif"> = 3x) or (width >= 700px)" srcset="https://unsung.aresluna.org/_media/this-message-has-been-on-the-screen-for-almost-two-hours-now/2.1600w.avif" type="image/avif"> = 2x) and (width >= 700px)" srcset="https://unsung.aresluna.org/_media/this-message-has-been-on-the-screen-for-almost-two-hours-now/3.2096w.avif" type="image/avif"> = 3x) or (width >= 700px)" srcset="https://unsung.aresluna.org/_media/this-message-has-been-on-the-screen-for-almost-two-hours-now/3.1600w.avif" type="image/avif"> These were rooted in computers still occasionally being close to industrial machinery – high vacuum, high voltages, memory tanks filled filled to the brim with mercury, punch cards flying through the system with astonishing speeds – but at some point, as we domesticated the machines and put them on our office and home desks, those power toggles became more of a branding element than anything else: = 2x) and (width >= 700px)" srcset="https://unsung.aresluna.org/_media/this-message-has-been-on-the-screen-for-almost-two-hours-now/4.2096w.avif" type="image/avif"> = 3x) or (width >= 700px)" srcset="https://unsung.aresluna.org/_media/this-message-has-been-on-the-screen-for-almost-two-hours-now/4.1600w.avif" type="image/avif"> = 2x) and (width >= 700px)" srcset="https://unsung.aresluna.org/_media/this-message-has-been-on-the-screen-for-almost-two-hours-now/5.2096w.avif" type="image/avif"> = 3x) or (width >= 700px)" srcset="https://unsung.aresluna.org/_media/this-message-has-been-on-the-screen-for-almost-two-hours-now/5.1600w.avif" type="image/avif"> = 2x) and (width >= 700px)" srcset="https://unsung.aresluna.org/_media/this-message-has-been-on-the-screen-for-almost-two-hours-now/6.2096w.avif" type="image/avif"> = 3x) or (width >= 700px)" srcset="https://unsung.aresluna.org/_media/this-message-has-been-on-the-screen-for-almost-two-hours-now/6.1600w.avif" type="image/avif"> A physical power switch has a problem, however – it cuts off the power immediately and indiscriminately, without giving the system time to cleanly shut everything down, write everything to disk, park its drive heads, and so on. So, computers slowly migrated to “power- by-wire ,” if you will. Just like pressing the keys on the keyboard was no longer physically moving the typebars and only sending signals to the CPU, the power button was now also sending just a simple signal, allowing the computer to get ready for the night. It was only after all the necessary clean up that the computer would talk to the power supply and shut itself down to a minimal power state, where the only energy it would be spending was checking for the power button to be pressed again for next morning’s wake up. = 2x) and (width >= 700px)" srcset="https://unsung.aresluna.org/_media/this-message-has-been-on-the-screen-for-almost-two-hours-now/7.2096w.avif" type="image/avif"> = 3x) or (width >= 700px)" srcset="https://unsung.aresluna.org/_media/this-message-has-been-on-the-screen-for-almost-two-hours-now/7.1600w.avif" type="image/avif"> Shutting down was now just as much software as it was previously hardware, and we know software has problems. So there had to be a failsafe, and the failsafe was designed this way: if you held the power button for 4 seconds, the machine would just shut down at that point. This was still software, but software directly on your motherboard, which was a lot more resilient: it could not fail and ignore your power button the same way Windows could when it was preoccupied dealing with some blue screen or another problem. I believe that delay grew over time to be about 10 seconds. But more recently, a new state appeared: = 2x) and (width >= 700px)" srcset="https://unsung.aresluna.org/_media/this-message-has-been-on-the-screen-for-almost-two-hours-now/8.2096w.avif" type="image/avif"> = 3x) or (width >= 700px)" srcset="https://unsung.aresluna.org/_media/this-message-has-been-on-the-screen-for-almost-two-hours-now/8.1600w.avif" type="image/avif"> In case you cannot read it, it says “Please release the power button. We just need a few more seconds to shut down.” This is how I understand it: Windows now gets a signal whenever the user holds the power button. It knows that after 10 or however many seconds, the power will be cut off, no negotiation. So if it knows it won’t finish its jobs by ten seconds, it pleads with the user to stop pressing the button. I have seen different explanations for it – some people say it’s only on some machines, or only for developers, to save enough debugging information and perform a clean shutdown. I’m not sure, because I have also seen a new failure mode : My Microsoft Laptop is displaying an error that says, “Please release the power button. We need a few more seconds to shut down. 0% complete.” I was attempting a hard reboot because the keyboard wasn’t functioning. That typically resolves the issue, but I couldn’t get it to shut down. I must have held the power button down and then received that message. This message has been on the screen for almost two hours now. How can I resolve this? The answer is: do not listen to your computer, and keep holding. I am not sure if I have a point here. I just thought it was a fascinating example of a growing complexity of what once was a simple thing. I also found the machine saying “please release the power button” to be a wild user interface string. You can find all sorts of photos online of this state – they cannot be screenshots at this point – and they have this positively haunting, almost horror-like quality: = 2x) and (width >= 700px)" srcset="https://unsung.aresluna.org/_media/this-message-has-been-on-the-screen-for-almost-two-hours-now/9.2096w.avif" type="image/avif"> = 3x) or (width >= 700px)" srcset="https://unsung.aresluna.org/_media/this-message-has-been-on-the-screen-for-almost-two-hours-now/9.1600w.avif" type="image/avif"> = 2x) and (width >= 700px)" srcset="https://unsung.aresluna.org/_media/this-message-has-been-on-the-screen-for-almost-two-hours-now/10.2096w.avif" type="image/avif"> = 3x) or (width >= 700px)" srcset="https://unsung.aresluna.org/_media/this-message-has-been-on-the-screen-for-almost-two-hours-now/10.1600w.avif" type="image/avif"> = 2x) and (width >= 700px)" srcset="https://unsung.aresluna.org/_media/this-message-has-been-on-the-screen-for-almost-two-hours-now/11.2096w.avif" type="image/avif"> = 3x) or (width >= 700px)" srcset="https://unsung.aresluna.org/_media/this-message-has-been-on-the-screen-for-almost-two-hours-now/11.1600w.avif" type="image/avif"> Maybe a potential lesson in here: If at some point you have to add a “please release the power button” function, perhaps it is time to step back and re-think the whole idea. Personally? I prefer my machines to go the other way .

0 views
Manuel Moreale 2 days ago

Let people know

As I’m reading this post by Tim, I cannot help but feel that we’re spending so much time thinking and arguing about AI, about mainstream and federated social media, about protocols and tech solutions, while ignoring the most important factor of this marvellous creation that is the web: the humans. I wrote about this a million times ant I’ll keep repeating it till the day I’ll be so burned out that I’ll delete this blog: go tell the people behind the sites you read that you exist and you enjoy their art. It takes so little time to write them an email of appreciation and costs you nothing. You’ll make their day better, and I’d bet you’ll also feel better about yourself, for having done something nice. And no, clicking a like or +1 button doesn’t count. That’s not the same. Actually take the time and write them something. Email is still the most important tool we have out there to connect in a way that feels meaningful. Thank you for using and believing in RSS. You're awesome. Send me an email :: Sign my guestbook :: Become a supporter

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
Jeff Geerling 2 days ago

Remotely unplugging a USB device on my Mac, without touching it

Tonight I was remote debugging a USB-C device with custom firmware, which was plugged into my Mac Studio at work. I was accessing it over a WireGuard VPN tunnel. Part of the debugging process involves flashing firmware to the device using MIDI SysEx messages , and while handy, this technique can also be flaky, leaving the device in a partially-flashed state that needs a physical re-plug to recover from.

0 views