Posts in Shell (20 found)

Obituaries

Listen to this post: Dearly beloved, we are gathered here today to get through this thing called life. ―  Prince Jensen Huang resigned as CEO of Nvidia on Thursday, November 12, 2026. He had been CEO of the company ever since he founded it on April 5, 1993. Nvidia started out as a graphics card company; Huang’s exit — nominally because of affairs with a buyer who may or may not have been a Chinese spy, as well as at least two company employees — was ultimately because Nvidia was, by the powers that be, considered a defense contractor, and Huang never adjusted. In this, Huang was the ultimate victim of his own success. Nvidia’s first graphics cards simply translated triangles into pixels. The 2001 GeForce 3 introduced a programmable pixel shader, which meant a video card’s functionality was no longer pre-defined. The killer move, however — which almost killed the company — was the 2006 introduction of CUDA, which was an API for programming those shaders. For much of the next 16 years Huang sold the gospel of CUDA , convinced it was the platform for a future of accelerated computing; then, in 2022, came ChatGPT. ChatGPT made clear what GPUs were most useful for: large language models, and Nvidia made the best GPUs. More than that, Huang had realized that the future of accelerated computing was not just chips, but rather systems; that drove the purchase of Mellanox in 2019, which provided the technology for Nvidia to scale out from chips, setting it down the road to being the best option for the sort of large scale training that made large language models possible. For this Nvidia charged very high prices, with margins exceeding 70%, because they could: they had the platform, the technology, and, over the past few years as others sought to make their own chips, the supply chain. Huang’s impact on the Asian supply chain in particular cannot be overstated. Byrne Hobart, in his book Boom: Bubbles and the End of Stagnation , notes that one of the benefits of bubbles is that they provide a coordination function, as the fear of missing out incentivizes multiple entities with interlocking dependencies to all commit to building at the same time; Huang was, in many respects, a one-person coordination function. Huang gave multiple keynotes a year, which he explained as how he communicated with the ecosystem broadly, and was famous for eating and drinking his way across Asia in particular, convincing reluctant suppliers that the AI boom was real, and locking up the lion’s share of their output for Nvidia and its stunning commitment to a yearly release cycle. Huang, who had toiled for decades in relative obscurity, known primarily to gamers, and only barely to the tech industry, became a rock star, swarmed wherever he went, always in his black leather jacket. He also, to his ultimate detriment, became a political figure. Nvidia had long had no presence in either Washington D.C. or Beijing , and was blindsided by the Biden administration’s imposition of chip controls in 2022. Nvidia’s immediate reaction to those initial controls, which restricted exports based on interconnect speed, was to immediately release the A800 in China, which was an A100 with a third of its interconnects disabled. That set the tone for the conflict that I believe was the true cause of Huang’s downfall: Huang strenuously disagreed with the various iterations of the chip ban, and Nvidia only bothered to do the bare minimum to abide by the letter of the law, never the spirit. That approach, in all likelihood, extended to Nvidia’s oversight (or lack thereof) of Singaporean entities that were alleged to be fronts for chips for China. Some of these were legal: Chinese companies are allowed to access cloud computing facilities outside of China that house leading edge Nvidia chips, although chip control advocates are seeking to close that loophole; some were not legal, in that the chips were ultimately ferried to China. Megaspeed, whose executive, Alice Huang, was the first person Huang was alleged to have an affair with, was officially in the former business, and alleged to actually be in the latter. There are whispers that Megaspeed’s ultimate customer was not, or not just, Alibaba, but also the Chinese military. These are whispers, to be clear; it was the affairs that were enough, at least publicly, to lead to Huang’s resignation. Nvidia’s durability — at least that of their margins — was already an open question. Start with CUDA: when the market was software written for GPUs, a platform — including not just an API but a huge set of libraries targeting every conceivable market for accelerated computing — was a nearly impenetrable moat. That is why LLMs like GPT were written using CUDA. LLMs, though, both brought Nvidia its incredible success, and also seeded its greatest risks. The first is that the vast majority of developer energy moved up the stack, using the LLM’s API as a platform; for most companies, CUDA didn’t matter. The second is that Anthropic, which found funding from Amazon and Google, originally also-rans to the Microsoft-OpenAI partnership, had to learn how to use Trainium chips from Amazon and TPUs from Google; this was difficult, but ultimately meant that the leading LLM did not have any Nvidia dependency at all (Anthropic runs on Nvidia chips, because they learned how to run on anything). The third is the most devastating: LLMs are so effective at writing software that any software-based moat will inevitably dry up. Nvidia’s second moat, its networking and systems approach, is more durable, although challenged by Google (and by extension, Anthropic) in particular. Nvidia’s systems approach is also the easy answer for enterprises and governments seeking to own their own hardware, and neoclouds seeking to build data centers that are independent of the hyperscalers. The latter market rents chips to both hyperscalers and frontier labs, as well as individual companies, but is challenged as obvious sources of power and political permission disappear. They also need money to afford Nvidia’s systems, which has increasingly come from Nvidia itself. Nvidia’s third moat is its mastery of the supply chain, and this is the moat that suddenly looks much more tenuous. Huang has bragged about the fact that he has never signed a contract with TSMC over their three decades of partnership; it’s a relationship built on a handshake and mutual trust with Huang specifically. This is, per the point above, a very Asian way of doing business, and Huang was the master of that. It’s questionable whether or not that trust and willingness to commit will persist when the handshake is no longer there. Nvidia’s most important moat, however, was the degree to which it was not a normal company. Huang organized Nvidia as an exoskeleton around one man: himself. There is very little management at Nvidia — Huang famously has 60 direct reports — for the same reason that there was no succession plan: Nvidia could move so quickly and so aggressively because the company still behaved as if it were a startup. Indeed, lots of established companies — including those still led by founders — claim to still be a startup, but only one, Nvidia, really was organized that way. That paid off with all of those successful bets; it also created an environment where there were no checks on Huang. And, now that he is gone, the exoskeleton is much more poised to collapse than you might expect. The first part of the AI buildout was funded by free cash flow, particularly from the hyperscalers. Then, during the second half of last year, nearly everyone started turning to debt. Now — starting with Google this past summer — the primary funding mechanism is equity. In the long run, this should come full circle, and future build-outs will once again be funded by free cash flow, generated from the infrastructure that is being built now. The problem for Nvidia is that the companies most able to navigate this progression are the hyperscalers, which have the resources to challenge Nvidia’s hold on the chip market. To that end, Nvidia has been very eager to ensure that it is selling not only to the hyperscalers, but to other would-be competitors, like the neoclouds; there will likely, at some point, be serious questions raised about exactly how Nvidia went about allocating compute in pursuit of this goal. The neoclouds, however, are at a meaningful disadvantage when it comes to funding. First, their debt is significantly more expensive, given that their only business is renting GPUs (as opposed to, say, running the most valuable advertising businesses in the world, or the world’s largest e-commerce platform, or dominating enterprise software). Second, their equity is increasingly worthless, given the significant risks attached to that credit. If a neocloud can’t pay, it’s the equity holders that get wiped out first. This led to what I termed Nvidia’s Risky Business : Nvidia increasingly used its cash flow and credit rating to backstop and fund the companies who were buying its chips. Bears called this circular financing; bulls called it a necessary bridge to a future where AI revenue paid down these companies’ debt and drove massive upside. What is undoubtedly true is that this was the sort of risky business that is uniquely possible for a multi-trillion dollar company that is completely controlled by one man, who has made an entire career of pushing the limits and making risky bets — and seeing them pay off. It’s also a series of bets that are unlikely to continue. The neoclouds should be very nervous about losing their patron, along with their creditors and equity holders. The other problem is that the revenue necessary to make all of this build-out work is something on the order of a trillion dollars industry-wide, and it needs to materialize sooner rather than later; if it falls short, it’s the hyperscalers who will prioritize their own compute first, and they will likely be seen as a safe haven for everyone committing to spending. In that world, Nvidia’s neocloud hedge — absent Huang’s willingness to shore the ecosystem up — is liable to turn into a millstone, with their assets flooding the market even as the supply chain ramp-up brings ever more supply to market. Perhaps because he had been preaching the gospel of accelerated computing for so long, Huang was the leading figure pushing back against the doomer narrative surrounding AI. Yes, AI was a massive business opportunity, but it was still normal technology; the safety issues presented were engineering challenges to be solved. What required consideration was not just the next five years, but the next fifty. It’s a view that I am, in full disclosure, generally aligned with. Many others are not. On one hand there are the aforementioned doomers, certain that fast takeoff is imminent — or has already started — as AI increasingly builds better AI in a recursive loop. The end state is an AI that is massively more capable than humans, and uncontrollable by them; the only hope is to ensure that AI is aligned with humanity, by which adherents to this viewpoint mean aligned with them and their view of the world. This contingent is, broadly speaking, represented by Anthropic. And, in this view, actively working to enable and accelerate uncontrollable open weights models is a threat to humanity. On the other hand there are the China hawks, who view AI as a national security issue, and the key to U.S. military dominance in a world where China owns the means of production of most militarily relevant hardware. In this world giving China access to chips is effectively treason against the United States. For both of these groups, Huang was public enemy number one, because of his determination to do what was best for Nvidia’s business, which was to sell chips to China. This made sense for Nvidia for multiple reasons: This last point is worth dwelling on. The chief objection that China hawks in particular make to the idea that it is a good idea to sell China chips in order to prevent them from surpassing the U.S. is that China is already heavily invested in building their own ecosystem. This is certainly true, but I think it underplays the complexity of chips and what is necessary to actually compete with the West. Specifically, the Chinese government can only control the supply side, by spending money and making top-down imperatives; building an ecosystem, however, whether that be for AI specifically, or semiconductors broadly, requires demand as well. Progress in models and systems and chips depends on a feedback loop between the user and the developer, or the customer and the manufacturer. The demand side, however, is much more short-term oriented than the Chinese government might prefer. The model companies’ concern is the other model companies: that means if they are distilling, we must distill too. If they are using Nvidia chips, then we must too. This matters up and down the stack, just as it has always mattered in technology, which really is different in this regard from almost every other industry. A useful analogy is to consider the Internet. Why is it that country after country can profess a desire to have an indigenous alternative to the American tech giants, yet miserably fail in every attempt to generate it? It’s because the tech giants are only a click away! In this regard, China’s Great Firewall was one of the most brilliant geostrategic moves ever: by virtue of cutting off access to the American tech companies, China created the demand that pulled China’s own tech giants into existence. You need demand, not just desire. This is why China itself is currently banning the import of Nvidia’s two-generations-behind H20 chips, after the Trump administration foolishly banned their import, only to reverse themselves while bragging about the reason to do so — i.e. keep China addicted to Nvidia. China is replaying the Great Firewall playbook: force its internal demand to use its much worse alternatives, because that is the only way those alternatives become better. And, in the long run, those alternatives, and the entire ecosystem that supports them, will flood the world. Huang was, to be perfectly clear, talking his book when it came to his insistence on selling chips to China, or, in the case of the current controversy, allegedly turning a blind eye towards nominally legal buyers who were intent on violating the chip ban; that doesn’t mean, however, that he was wrong about the long-term effects, at least if AI is a normal technology (and I haven’t gotten to the risks this imposes on the Taiwan Strait ). What is clear now, however, is that the doomers and the hawks have won: AI, at least in terms of policy, will be treated as anything but normal, and in the fullness of time, it is the U.S. chip ecosystem that will pay the ultimate price. The birth date for the last obituary was the invention of the transistor; the birth date for this one is the founding of Intel. Robert Noyce and co-founders had spent the last decade at Fairchild Semiconductor, but were constrained by their parent company’s fundamental conservatism and chafed at their lack of upside. Arthur Rock effectively created the venture capital industry in Silicon Valley through his financing of Intel; Noyce created the concept of the commercial-market-led technology company that made it up in volume. At that time the largest single purchaser of chips was the U.S. government; Noyce realized that the fastest way to progress was to make chips for everyone, including the government, and on his terms, not theirs. From that point on, tech as an industry operated with the assumption that the world was its customer, and that their own executives defined the route to progress. Government was free to buy their products, but not to define them, and if they wanted the best products, then they best not restrict who they could sell them to either. That’s how important volume was, and, over time, it became clear how powerful and essential ecosystems were. Other industries operate differently; I thought this article in the Financial Times was striking, and not just because of the headline: Bessent says Nvidia needs ‘shake-up’ with external CEO : Bessent said that it is important “to examine whether Nvidia had a culture of compliance around the US export restrictions” and whether its top executives knew they were being skirted. “Was it a low-level fail? Was it in the middle, or was it up in the C-suite? And who knew? These shell companies were obvious, they were being investigated, and did Nvidia use them as a workaround to sell chips to the Chinese?” he said. “Were they pressing these seemingly illicit sales to goose their revenues and their earnings?” The Treasury secretary added that Nvidia needs to provide answers within a matter of days: “I think we need answers in the next 10 days from the board and from the outside counsel”. He added that “we will see if Nvidia intentionally ignored the warning signs of these shell companies, many of them in Singapore”. Bessent has pointed the spotlight on Howard Lutnick’s commerce department for failing to ban exports of Nvidia’s chips to Megaspeed, the Singaporean company linked to the alleged Chinese spy who had an affair with Huang. US authorities have been investigating whether Megaspeed, which builds AI data centres in Asia, has been involved in smuggling high-end Nvidia chips, which are powering the AI boom, into China. Bessent has blamed the commerce department more than once this week for failing to ban exports of Nvidia’s chips to Megaspeed. Commerce delayed efforts to add Megaspeed to Washington’s blacklist of companies the US considers a risk to national security. “Many other departments were pushing for this, and commerce had the pen,” Bessent repeated on Sunday. “We have all the rules we need. We just need them enforced.” Lutnick is under mounting pressure from within the administration and from Congress, which has demanded that he explain how he allowed chips to be exported to a company linked to an alleged Chinese spy. US lawmakers are also accelerating efforts to crack down on advanced AI chips reaching China. If Nvidia “were a bank and they hadn’t complied like this, the [Treasury’s Office of the Comptroller of the Currency] would be in there right now, and a lot of the executives would be removed”, Bessent said. Scott Bessent is the Treasury Secretary, which is to say that he operates an apparatus that is arguably just as, if not more, powerful than the U.S. military. Treasury controls the flow of money around the world, and its soldiers are the banks; if Treasury has sanctioned an entity, then it is up to banks to ensure those sanctions are enforced. They need to know their customers, and they need to analyze every dollar flowing through their systems; if they do not, they are breaking the law. Ignorance is not a defense. Ignorance, on the other hand, has been tech’s defense basically forever. Yes, there are bad people in the world, which means that if the whole world is using your products, they will be used to do bad things. That was considered an acceptable trade-off, however, because most people are good and the benefits that come from scale — and an avoidance of the friction that comes from trying to track the activities of billions of people — were worth the risk. This was certainly what Huang believed, and, to his detriment, he aggressively belittled anyone who dared disagree (the extent to which Huang is despised in Washington D.C., as evidenced by the giddiness and bloodlust online last week, is extraordinary). In Huang’s view, as long as the Commerce Department said that it was ok to sell to Megaspeed, then it was ok to sell to Megaspeed — and to sleep with one of its executives. Bessent views the matter entirely differently: he thinks that Nvidia should operate like a bank. It’s not just their job to abide by the letter of the law, but the spirit of it. It’s not the government’s job to enforce the chip ban, but the company’s. An attestation from a Singaporean customer that chips aren’t going to China isn’t worth anything; actually putting boots on the ground and ensuring compliance is the only way Nvidia cannot be in violation of the U.S. government’s dictates. Again, for tech, this is extraordinary, even if it is normal in banking. Extraordinary enough, in fact, that Huang is being labeled by many — not just in Washington, but also in the finance world — as a traitor. Huang, in my estimation, is just a businessman who cares about nothing else other than Nvidia; that worked out great when he made GPUs for gaming that no one in government cared about or understood. That’s just a normal technology; when AI was deemed to be anything but normal, however, business as usual wasn’t just over: it was a crime, and it cost Huang his job — and maybe more. It’s worth pointing out that while this episode was shocking, I should not, in retrospect, have been surprised. Earlier this year, when Anthropic faced off against the U.S. government, I wrote in Anthropic and Alignment : At the same time, what is the standard by which it should be decided what is allowed and not allowed if not laws, which are passed by an elected Congress? Anthropic’s position is that Amodei — who I am using as a stand-in for Anthropic’s management and its board — ought to decide what its models are used for, despite the fact that Amodei is not elected and not accountable to the public. And, on the second point, who decides when and in what way American military capabilities are used? That is the responsibility of the Department of War, which ultimately answers to the President, who also is elected. Once again, however, Anthropic’s position is that an unaccountable Amodei can unilaterally restrict what its models are used for. My point in that Article was that if AI is as exceptional as claimed, then the government will demand a say in how it is used, whether or not private company executives agree; moreover, that was a good thing, or at least a least-bad thing. The same analysis applies to Nvidia and Huang: Huang may have fundamentally disagreed with the chip ban, but at the end of the day, it was his duty to accept that it was the law of the land. To the extent he did not do so is ultimately his responsibility. Perhaps the most tragic aspect of the Huang affair is the extent to which he was the personification of The American Dream. Huang was sent to America as a nine year old who didn’t speak a lick of English, and somehow ended up at a boarding school in rural Kentucky for misbehaving youth, where he would trade help on homework for protection from bullies. From there he went to a state school in Oregon, became an engineer, before famously ending up at a Denny’s diner where he and his co-founders decided to start Nvidia. Then, over the following 33 years, he took risk after risk, created innovation after innovation, until he became a hero not just in the United States, but across the world. And then, you might say, he flew too close to the sun. Certainly he did so in his private life: it’s not just the affairs, which may be par for the course for rich and powerful men; rather, it’s notable just how reckless the affairs were. The ones that were revealed last week were with a customer and potential Chinese spy, and two of his own employees; both are fireable offenses. Meanwhile, the way in which Huang treated his opponents — including actively seeking to get people fired who he felt stood in the way of getting his way — bore the marks of a man who has constructed a life, and a company, where no one can or will stand up to him. That is a recipe for disaster, and here we are. At the same time, it really does bum me out that what ultimately doomed Huang was a set of rules that really are a big departure from the status quo — and, in my opinion, misguided. Huang’s actions — or lack of actions, in terms of enforcing compliance with the chip ban — are treated as if they are an obvious crime, when in fact this is a dramatic shift in expectations from a short time ago (although there is certainly a callback to previous controversies around selling advanced computing to adversaries). Huang should have adjusted and accepted the new reality, make no mistake; I’m sympathetic to the fact he couldn’t, and recognize the failure in not having structures in place that could have warned him about the dangerous road he was embarking on, even as I realize Huang’s willingness to navigate dangerous roads is precisely why he was an American success story. Beyond Huang, however, there is the question of how we compete with China, and I am disappointed, although not surprised, that we are pursuing the route of bans and forced compliance, instead of innovation and openness. Make no mistake, I am no China dove, and I have been very early to the argument that we erred greatly in willingly exporting entire industries to the communist state. That, however, makes it even more imperative that we sprint in the opposite direction of China, towards more freedom in a bet on inventing new industries, not more control and a focus on gatekeeping what we have. I get the logic, particularly in the case of AI, which is extraordinary; I lament the implications of what it says about our belief in ourselves and our ability to stay ahead. Presented by As AI models improve, you might expect the market will consolidate around a handful of providers. But user data tells a different story. Among OpenRouter customers spending at least $100 a month, the median number of AI model families in use has doubled over the past year , from three to six. Even as AI models become more capable, businesses are using more models, not fewer. This makes sense when you consider that intelligence isn’t one-dimensional. A model that’s exceptional at writing code may not be the fastest at answering customer questions, or the most economical at processing millions of documents. The question is shifting from “which AI model should we build on?” to “which model should handle each task?” The answer, increasingly, is ‘it depends.’ Which is great for flexibility, less great for simplicity. OpenRouter, which recently joined Stripe , allows businesses to access and govern hundreds of models with the flexibility to optimize for cost, performance, and reliability as the market evolves. Learn more at openrouter.ai . The first and most obvious reason is that it is good for a company to be able to sell to everyone, including the second largest market in the world (China has traditionally made up about a quarter of Nvidia’s sales, long before AI was even a thing). The second is that China is a large enough market, with sufficiently motivated and capable developers, that it can actually create a meaningful CUDA alternative; furthermore, such an alternative would, in the long run, not be constrained to China, but rather compete with Nvidia all over the world. The third is that China’s AI ecosystem, unconstrained as it is by such niceties as terms of service, distills frontier lab models and releases them as open weights models; those models, meanwhile, are tuned to run on Nvidia chips. These models give Nvidia leverage versus the frontier labs all over the world, including in the West. The fourth is that China is uniquely positioned to create a fundamentally different approach to systems design using optical interconnects to scale out training clusters. This is much more inefficient in terms of power usage than Nvidia’s more elegant designs, but China is also much more capable of manufacturing excess amounts of power to make it work. The fifth is that, in the very long run, China can create an entire alternative supply chain for semiconductors broadly, rendering Nvidia’s mastery of the Western-aligned supply chain much less important.

0 views
Farid Zakaria 2 days ago

beer.drv.drv.drv

Have you heard about dynamic derivations ? They are an experimental-feature in Nix that lets a derivation produce other derivations as its output. Why ? This lets you dynamically create your build graph, instead of having to know it all at evaluation time. It’s Nix’s answer to try and match the build speed of other build systems like Bazel or buck2 . There is not much written about dynamic derivations, and the documentation is sparse. I have written a few posts about them, so I sometimes get questions about them. Recently, I got a DM from Evan Porter over LinkedIn , the ultimate bug triaging network, about whether it is possible to query the deriver of a dynamic derivation to get the initial derivation. For dynamic derivations let’s say I have a .drv.drv file. This file outputs a derivation. Is it usually possible to query deriver the output derivation to obtain the initial derivation? They had tried it and got this: That should work. 🤨 Every path a build registers carries a , the that produced it, and a that came out of a build is still a path a build registered. When I tried it, it worked. 🤷 You will need in your to drive the samples in this post. Turns out, there is a case where you do get if you set on the producer. If the producer is content-addressed, its output path is not known until after the build, and Nix does not fill in the of a path that already exists. I filed NixOS/nix#16823 . The question though made me wonder how far back you can walk the chain of dynamic derivations. I had to try it. 😈 Let’s pick a fun example to see how far we can go. Here is a derivation that imitates the classic song 99 bottles of beer by producing a chain of derivations, each one outputting the next verse. 1 Tip A derivation whose output is a must set . In our example we are using a content-addressed derivation, but the same idea works with an input-addressed one, but it’s more work to compute the output path in the shell, unless you are using to do it for you with recursive Nix. The Nix side builds the first derivation and then follows once per bottle. While working through this example, I hit a bug in Nix that made me set on the top derivation. That is not necessary for a derivation that outputs a , but it works around the bug. I filed NixOS/nix#16830 . You might notice that we limit the number of beers to 50. Why 50 and not 99? Well, 50 is the most that fits in a store path. The maximum length of a store path is 211 characters . A derivation’s store path must include the suffix, and every in a chain adds four characters. The top derivation is named and if you add 51 s we get 208 characters. No room for any more beer. 🍻 Let’s build sing it. Fifty-one builds, one after another 2 . Evaluation knows about only the first one. Nix discovers each of the other 50 by building the one before it. 🍺 Back to the original question: can we query the deriver of the output derivation to get the initial derivation? Yes, we can. Let’s put in a loop that walks from the result all the way back to the top. We have the result plus 51 derivations. 💪 Since every derivation in the chain was built, every one has a build log, and you can ask any of them to sing its verse again. I’m very excited for the future of dynamic derivations. tomberek is leading a working-group to finalize the feature and are currently meeting weekly. With dynamic derivations, Nix will be able to compete with other build systems in terms of speed and flexibility and take over the world . Nix the world. The builder writes the next derivation by hand in ATerm , so there is no recursive Nix and no involved.  ↩ A single trivial build takes about 1.5 seconds on my laptop, so the cost of building 51 derivations is about 75 seconds largely due to substituter lookups. If you disable substituters , the builds take about 1.3 seconds in total.  ↩ The builder writes the next derivation by hand in ATerm , so there is no recursive Nix and no involved.  ↩ A single trivial build takes about 1.5 seconds on my laptop, so the cost of building 51 derivations is about 75 seconds largely due to substituter lookups. If you disable substituters , the builds take about 1.3 seconds in total.  ↩

0 views

Jensen's Bizarre Adventure

If you liked this piece, you should subscribe to my premium newsletter, and you can subscribe on the following links: $70 a year , $18 a quarter , or $7 a month . In return, you get a weekly premium newsletter that dives deep into the finances of the AI bubble. Over the past few months, I’ve published a two part guide to the world of AI debt, an analysis of the (dubious) impact of generative AI on the global economy , deep analyses of the biggest players in the AI infrastructure space like NVIDIA (part one and two ) and Oracle (part one and two ), and the role private credit is playing in funding AI data centers , and how private equity, reeling from years of successive failed software acquisitions, is doubling down on the AI bubble .  Friday’s premium newsletter will be a continuation of this story. We’ve got a lot to say about NVIDIA, Megaspeed, and the illicit flow of AI GPUs into China. You won’t want to miss it. If you want to get in touch — and especially if you have any juicy information about Anthropic, OpenAI, or any other companies in the AI bubble — hit me up on Signal at ezitron.76. I’m also on IB on your Bloomberg Terminal.  As you’ve probably read by now, Jensen Huang, CEO of NVIDIA, has admitted to having an affair with what appears to be a Chinese spy called Alice Huang (no relation), CEO of a company called Megaspeed, and who also goes by the name of Huang Le. Though far from a household name (though mentioned in an earlier newsletter) , Megaspeed is NVIDIA’s largest Southeast Asian customer, per Culper Research, which announced it had taken out a short position on the company in May of this year, citing its belief that NVIDIA’s indirect sales to Mainland China account for significant proportion of its revenue.  Culper Research’s excellent short report focuses heavily on Megaspeed, a firm with an unusual history and near-empty office in Singapore that, somehow, bought billions of dollars of GPUs in a short amount of time. Said company also has, as I’ll get into, an identical website to a Chinese neocloud that claims to have multiple data centers with advanced NVIDIA chips.  This was all revealed mere days after NVIDIA’s spokespeople dismissed allegations and called the relationship “ completely normal and not unusual ” after a New York Times article reported that (Jensen) Huang had been targeted by (Alice) Huang. President Trump had been briefed on the matter around a year ago, but had taken no action as he had, and I quote, “...been wary of disrupting Nvidia’s chip sales, which are helping to drive the economy and the stock market.” The commerce department, per the Wall Street Journal , had been investigating Megaspeed as a potential chip smuggler since late 2024, with the investigation stalling once it was handed to the Justice Department (which I’ll get to later). It appears, per the Journal, that the goal was to persuade Huang to use his influence with the highest echelons of American political power to get them to loosen chip export restrictions — though I’ll argue today that the other part of the plan was to use him to funnel sanctioned GPUs directly to China, irrespective of any policy changes in Washington.  Per The Journal: Huang has now admitted to the affair, though he left out that he’d hired a PR firm known for handling sex scandals around October 2025 ( per WIRED ): Additionally, NVIDIA has launched an “ independent investigation with a committee of independent directors, assisted by outside independent counsel ,” but has “no reason to believe that either national security or NVIDIA secrets were compromised.”  As I’m about to explain, NVIDIA’s “investigations” don’t carry very much weight.  As I alluded to earlier, regular Where’s Your Ed At readers heard a little about the strange tale of Megaspeed back in March — a Singapore-based outfit that, according to Bloomberg in December 2025, was a “once-obscure spinoff of a Chinese gaming enterprise [that] evolved into the single largest Southeast Asian buyer of NVIDIA chips,”  and exhibited odd signs that suggest it might be operating as a front for China. Per Bloomberg, Megaspeed imported goods “worth more than a thousand times its cash balance in 2023,” with two-thirds of its imports being NVIDIA products.  From what I can piece together — and I’ll get into some detail later in the piece — Megaspeed was originally a Singaporean-registered mobile app developer called 7Road International that rebranded to Megaspeed in March 2023, after it was acquired by Huang Le Limited, making Alice Huang its managing director. At some point it launched a subsidiary called SpeedMatrix which was somehow able to buy about $4.8 billion worth of NVIDIA GPUs . Per the Strait Times , Megaspeed pays for an expensive office space in Singapore where effectively nobody works.   Anyway, the investigation got weirder when Bloomberg tried to track down specific circuit boards that NVIDIA had told the US government were in specific sites, only to find that most of the circuit boards attached to the various GPUs were gone.  While the US government couldn’t account for the boards themselves, an NVIDIA investigation confirmed that they were at a different warehouse that NVIDIA had seen. Oh okay, if you say so! Thanks also for specifying that you confirmed the circuit boards — which were removed from the full chip for some reason! — had not been sent to China. No need to give us any further information! Bloomberg would also identify a Chinese company called “Shanghai Shuoyao” having a near-identical website and investor deck (as mentioned) to Megaspeed. In Megaspeed’s version, the company discussed several “specific area computing clusters” in unnamed locations in “East South Asia”.  In Shanghai Shuoyao’s version of the website, these clusters were in China — specifically, the cities of Beijing, Shanghai, Shenzhen, and Wuhu. Per Bloomberg: And that’s how we get to the mysterious Ms. Huang — who appears to go by Huang Le, Alice Huang and Huang Xiaole, depending on the company, as I wrote in March: Various Twitter posters have unearthed both photos and videos of Jensen and Alice Huang (again, unrelated), but none of them feel more devastating than this : The full arm across the back and around the neck. The confident smile. Oh yeah, they fuckin’!  Seriously, I wish I had seen this photo back in March. Ladies, if you see a photo of another woman with their arm around a guy’s back like this, you are in the danger zone.   While we can’t say for sure, it appears that Ms. Huang was diverting chips to China, possibly to multiple Chinese data centers with at least one paid for by Tencent, and Jensen may have known about it in the literal and biblical sense. Per Trip Mickle of the New York Times on CNN last night, Alice could summon Jensen in the space of a few minutes . And it appears that NVIDIA was both aware of the Huang tryst and worked diligently to block the US government from investigating Megaspeed further, all to sustain a relationship that was clearly in violation of US Commerce Department export restrictions. So, from what I can piece together, it appears that Megaspeed ran its operation through a Malaysian subsidiary called Speedmatrix, and there’s very little else out there about the company. Anyway, in case you needed more proof that something was wrong, Alice Huang was also detained by the Singaporean police in the middle of 2025, seemingly as part of a probe into Megaspeed, Per Bloomberg : And if you’re wondering whether NVIDIA knew about any of this, you’ll be shocked to hear both that it did and hounded the US commerce department about it, eventually killing an investigation into Megaspeed in the process. According to the New York Times , the US commerce department was “deep into a monthslong investigation” of Megaspeed late last year, only to see it “abruptly transferred to the Justice Department” after getting an email from NVIDIA’s general counsel: Per Bloomberg , NVIDIA used its influence with the Trump administration to “muzzle” Kessler’s team investigating Megaspeed, and specifically wanted to know about Alice Huang’s detainment by the Singaporean authorities. Wow! How completely and utterly corrupt. I sure hope that the general counsel of the largest company on the stock market didn’t somehow interfere with an investigation… So, yeah, no problem everyone, nothing weird going on here. All that happened was that NVIDIA used its influence with the US government to suppress an investigation into a company very likely funnelling sanctioned NVIDIA GPUs to China. Very normal. It should go without saying that the California State Bar should sit down with Tim Teter and have a chat about this whole affair, especially given the following from The Financial Times ’ reporting that the FBI was now investigating the Huang Affair. The only reason I’m not outright bringing up the California State Bar’s Rule 4.1 around Truthful Statements To Others is that it’s unclear where Teter made these comments. Nevertheless, this is deeply ugly.  In any case, let’s be clear about how blatant this scam was. Per The Financial Times , Alice Huang raised hundreds of millions of dollars in funding for a data center, promising that she had “no problem securing GPUs” in early 2025, and no, she wasn't referring to Huawei’s ascend chips : According to documents viewed by the FT, Megaspeed borrowed money from Alibaba via a subsidiary in Singapore called Apex Enterprise Solutions.  Megaspeed offered its entire business as collateral , and Alibaba became its largest client… which is how NVIDIA got introduced to Megaspeed in the first place: How strange! The company that appears to have smuggled NVIDIA GPUs also features China’s largest tech conglomerate as its largest client.  This relationship is also discussed in Culper’s short report . Emphasis mine (from page 3): While I intend to go into much more detail on this in this week’s premium, I need to directly call out one big allegation of Culper Research’s short report on NVIDIA — that 20% of its FY 2026 revenues came from China , or around $43.18 billion. Per Bloomberg , Megaspeed also imported 50,000 more GPUs than NVIDIA originally reported to the US government.  I trust Culper’s reporting, and think everybody needs to truly digest what this means. This is an extremely bad situation, and I honestly wish I had hammered on it earlier and more emphatically. NVIDIA should be in front of a congressional panel. They should put it on the television. Somebody should be arrested and humiliatingly perp-walked into a courthouse in full display to a waiting throng of reporters and cameramen.  In any case, Culper directly alleges that this revenue is going away:  So, it’s very easy to smush together two parts of this story — the Chinese honeypot and her obvious association with Megaspeed — and miss the most obvious part of the story: that NVIDIA has inflated its earnings by more than $4.8 billion using sales to what appears to be a passthrough entity for customers in Mainland China.  And that’s just for one company. The true scale may be far, far greater — and Culper Research believes, as mentioned, the total volume of kit going to Chinese customers amounts to 20 percent of the company’s revenues for FY 2026.  In addition to getting his shit rocked crazy style, Jensen Huang — along with collaborators at NVIDIA including its general counsel — has deliberately and repeatedly violated US commerce law . As much fun as it is to laugh at Jensen’s Bizarre Adventure, it’s very clear that both Huangs have collaborated to profit off of breaking the law, all in service of NVIDIA’s perpetual growth.  And it’s also blatantly obvious that this isn’t the only Chinese (or otherwise sanctioned nation) firm acquiring or buying NVIDIA’s Blackwell chips.  Back in November 2023, JustDario collated a list of NVIDIA’s “ Elite Partners ” — companies that NVIDIA claims “represent the deepest level of partnership with the company” — featuring multiple different “ phantom distributors ” like FongCon Co Ltd, which appears to be run out of an apartment above a wine shop in Taiwan, and a “preferred partner” in Russia with an address that leads to a creepy shed of some sort . This story cuts strangely with the New York Times’ recent reporting that the US Commerce Department cleared GPU sales to several firms that may or may not exist: Back in August 2024, The Information reported that an electric appliance company in China managed to buy $120 million of NVIDIA’s H100 GPUs that were explicitly barred from sale using a shell company in Malaysia — much like Megaspeed did with its chips.  In August 2025, Steve Burke of GamersNexus ran an incredible video about the black market for smuggled NVIDIA GPUs , explaining in detail how A) easy it is to get these chips and B) how little NVIDIA appears to be doing to stop it. I love Steve, and think he’s one of the greatest journalists of our generation, but also think it’s impossible to argue based on this video that the US government or NVIDIA is unaware or incapable of solving this problem. On November 20, 2025 — a day after NVIDIA’s Q3 Fiscal Year 2026 earnings — Reuters reported that the US Justice Department was charging four people “...in a scheme to illegally export NVIDIA AI chips to China.” Said earnings had an exciting new addition — per Kakashii , Jensen Huang and NVIDIA changed how it reported its earnings, changing from reporting revenue from the location of the sale to the billing location of the company:  This meant that NVIDIA could now, say, sell GPUs to a company with a billing address in America or Taiwan, only for the chips to actually go to Singapore, or China, or the fucking moon, and basically every business and finance journalist missed it. Then there’s the obvious, blatant, shameless case of Supermicro (a major vendor for AI servers) founder Wally Liaw, who ( as I also discussed in March ) was arrested along with several co-conspirators for selling hundreds of millions of dollars’ worth of GPUs to China , using hair dryers ( per Tom's Hardware ) to transfer serial numbers from real servers to dummy servers to thwart government inspectors.  Liaw was both very, very dodgy and very much connected to NVIDIA, Jensen Huang, and the greater AI industry. As I wrote back in March: Mere days before the arrest, Wally posed for a photo at NVIDIA’s GTC 2026 conference with the Supermicro team as Jensen and CEO Charles Liang shook hands barely two feet away. It is completely insane that nothing else happened here. Supermicro continued to go about its business despite a cofounder and member of its board of directors being arrested by the Department of Justice for selling chips to the Chinese. Imagine if this happened at Dell! Imagine if former CEO of Accenture Bill Green , a member of Dell’s board, had been secretly using a hair dryer to move serial numbers off of Dell servers to sell to China! We’d have a fucking media blitz about it! It would be a huge scandal! There’s also a direct connection between the Supermicro scandal and the Megaspeed scandal, per Culper’s short report , emphasis mine: Late last night, Bloomberg also reported that Chinese AI lab Moonshot had rented 32 Supermicro servers equipped with B300 GPUs according to online documents they reviewed, all of which were based in China.  From Bloomberg, emphasis mine: How do Supermicro servers keep making it to China? I thought we already arrested Wally Liaw!  These GPU smuggling stories have been around for years , and are left totally-unmentioned in any coverage of NVIDIA’s parabolic growth, despite the fact that it’s very clear that a not-insignificant part of that growth is flowing through illegal sales to China. The New York Times reported on both Megaspeed and Alice Huang in October 2025 , including definitive proof of Megaspeed receiving restricted H800 chips. Yet across the Times’ coverage of NVIDIA’s Q4 (Calendar Year) 2025 , Q1 2026 and Q2 2026 earnings , the Grey Lady neglects to mention anything about the smuggling story. If anything, it actively counters its own reporting. And I quote from its coverage of the Q4 2025 earnings, written by Tripp Mickle, who was one of the four reporters on the Megaspeed story: Apparently a story that convincingly argued that NVIDIA was in fact selling chips to China was irrelevant to a larger discussion of NVIDIA not making any money from selling chips to China.    Half-hearted attempts to criticize NVIDIA’s massive circular financing operation have mostly failed to do anything other than provide marketing for what is ultimately a legal con, framing it as a “ potential vulnerability ” that is otherwise “ unusual ” without ever really saying “this is bad, and it’s a sign that NVIDIA is desperate to generate more revenue so that it can show investors perpetual growth.”  It is not a problem that NVIDIA funds its customers , its customers’ third party compute partners , its customers’ data center leases , its customers’ customers (and competitors ), its customers’ customers’ leases , its customers’ chips , its customers’ landlords , its customers that are on the brink of death , its customers’ customers on the brink of death , and its customers’ customers that can quite literally not afford to pay for compute without its money . As long as it’s “legal,” it’s all “above board,” even when it’s blatantly obvious that NVIDIA has deployed over $100 billion ( per The Information ) as a means of keeping the industry afloat by making sure that everybody has the justification and means to buy and/or rent out its GPUs. NVIDIA is an aggressively and unashamedly dodgy company that has done everything and anything necessary to sustain its growth, deploying about half of its Fiscal Year 2026 revenue to plugging holes in an ecosystem to make everybody ignore one horrible detail: that buying NVIDIA GPUs is a shitty deal for anybody other than Jensen Huang. If it wasn’t, hyperscalers would be screaming about the incredible, actual revenues from their $1.4 trillion or so in capital expenditures. If it wasn’t, CoreWeave wouldn’t be an ever-expanding timebomb that requires a few billion dollars every two months or so, nor would it have to hand billions to IREN , Firmus , Nscale , Lambda , and every other neocloud to buy its chips, or have to agree to rent said chips back from Firmus , Lambda , CoreWeave , or have to backstop Nscale’s lease with Anthropic . These are the actions of a company actively manipulating the marketplace by operating on the fringes of finance law, knowing that the media and the markets will back whatever Jensen Huang says as long as the numbers keep going up and he, well, doesn’t actually break the law.   And remember: NVIDIA also loves lying. Last year the company claimed it had shipped six million Blackwell chips , even though any comparison with its actual revenues would show that wasn’t possible. In the end, it turns out that NVIDIA had changed the definition of what “GPU” meant, per Benzinga:  Anybody saying that this “isn’t lying” because “NVIDIA had a footnote somewhere” as if the media wouldn’t report the six million number as gospel, and the company made no effort to correct them, knowing that braindead analysts and gormless retail investors would read the big, huge, beautiful number and say “wow, Jensen Huang is the best! ”  And then there’s the outright lies , per Thomas Thornton, about how NVIDIA was making effectively no revenue from China. As noted by Shakeel Hashim of Transformer , NVIDIA’s spokespeople have lied repeatedly about the Megaspeed situation, which is par for the course — after all, very few have had the interest or courage to actually push back against their narratives, and the Megaspeed story sat inert for over a year outside of Bloomberg and the New York Times’ reporting, as did Culver’s short sell report that I’ll dig into more in this week’s premium. This is what happens when you fail to push back on the powerful. Mainstream journalism has failed to hold NVIDIA to account, failed to warn investors of the risks, failed to push the powerful for clarity, failed to speak directly about the manipulative, suspicious and outright crooked way that this company runs, and done so all under the banner of perpetual growth and the larger Rot Economy .  Any defense using the word “objectivity” is utterly cowardly — you can use words like “allegedly” or “or “suspicious” or “obfuscative” for any and all of the things I’ve described — they are objective statements, because NVIDIA has acted suspiciously, and taken great pains to mislead the public about its growth, both in its dealings with Chinese shell corporations and how much of its revenue comes from neoclouds effectively handing it back its own money. It’s also fucking laughable how much everybody talks about the “dangers of China getting access to powerful AI.” It already happened! China has NVIDIA GPUs! They’ve had them for years!  The Information reported in December 2025 that DeepSeek trained its latest models using Blackwell GPUs! It’s been happening for years, it’s been reported multiple times, in gratuitous detail, and somehow none of it was relevant to NVIDIA’s earnings or the world at large until it turned out that Jensen had had an affair. When you remove the “Chinese government” and “Whatever Sounds Jensen Makes In The Bedroom,” nearly the entire Megaspeed story has been thoroughly reported! It’s all been out there! And to make matters worse, there were members of the media who said it wasn’t a big deal! Culver’s short report came out in May 2026 and explained in arduous detail — including the Alibaba/Apex deal! — exactly what was going on. Everybody wants this to be a localized story about a horny CEO and a dastardly Chinese spy, but what it actually is is a coordinated, multi-layered conspiracy to dodgy US export controls that may very well have been totally ignored if it wasn’t for the espionage angle. In writing out everything that happened, it’s become alarmingly clear how badly the entire media missed on this, because most of the information is old. I also see little to no discussion of how much of NVIDIA’s revenue was generated through these illicit sales. As I mentioned previously : Could those all be above-board American businesses? Sure! But NVIDIA’s deliberate obfuscation of the final destination of its GPU sales now makes its obfuscative revenue disclosures an issue of national security (depending on how you feel about LLMs). It’s impossible to argue that NVIDIA is not selling GPUs to China through a web of proxies and shell corporations — and now the only real questions are how much, to whom, and when. I do not expect the Trump administration to do very much about this, though perhaps I’ll be proven wrong given the “China” of it all, and how brazenly NVIDIA has acted. In any case, one has to ask — why did Jensen Huang blow up his life?  The Wall Street Journal reports that he met Alice Huang sometime in “early 2024” at an NVIDIA event — likely referring to GTC 2024 in March — and then met again in June 2024 at Computex Taipei: The fact that Alice Huang — the CEO of a barely-existent “Singaporean” neocloud — was at a party seated next to the CEO of NVIDIA and senior executives from Gigabyte (a huge NVIDIA partner) is in and of itself indicative of their closeness and (I’d guess) an attempt by Jensen to impress her. Every guy has, at some point, desperately fallen for a girl and overcompensated when trying to impress her, and while everybody will try and frame this as simply business and sex, I suggest something very, very different: Jensen Huang actually liked this woman, and dare I say it, I think she made him happy. The average Jensen photo has a cold sternness — and, I hate to say it, he doesn’t look particularly happy when photographed with his wife Lori, who is a victim of a horny, greedy man who got taken in by the world’s most obvious honeypot. Even when becoming visibly frustrated with Dwarkesh Patel and saying that he (Jensen) wasn’t “somebody that woke up a loser ” — all while emphatically arguing that NVIDIA should ship GPUs to China — Jensen remains relatively stone-faced. Now, let’s take a look at his face when he’s next to Alice Huang:  This big, strong, powerful man, dare I say it, being himself after goofily falling for someone that turned out to be a Chinese spy, a fact that Jensen may or may not have been aware of. I have looked at an alarming amount of photos of Jensen Huang for this piece, and I can find no other examples of him looking this happy.  And, like many powerful men, Jensen Huang is too much of a fucking coward to do the work to either cut off the relationship before the cheating, or file for divorce before doing so. I’m not condoning anything he’s done, but time after time guys refuse to make the tough decisions, opting instead for a continually-compounding chain of easy yet dangerous choices that ultimately blew up in their faces. Most will describe this relationship in terms of sex and a greater con, and they may indeed be right. Perhaps there’s a world where Jensen found a kind of thrill from giving it to a foreign agent “Feynman style,” all while helping her acquire billions of dollars’ worth of GPUs. Perhaps he had no idea, but that would make him one of the stupidest men alive. I think the reality is a little sadder — Jensen has (or had) genuine feelings for Alice, she made him feel alive , and he, like so many other men, chose to make boneheaded choice after boneheaded choice to impress her, engaging in some of the single-worst examples of OpSec ( by which I mean being repeatedly photographed and videoed with her, and also selling her billions of dollars’ worth of GPUs ) in the history of modern society.  This man is worth $150 billion and would have likely been swindled by Bugs Bunny in drag .  Despite claiming he didn’t wake up a loser , all that money and power couldn’t protect the man from his heart or his hog, and apparently Jensen’s parallel processing was insufficient to stop the dastardly Chinese from running the most obvious honeypot in history.   No amount of money or power can stop an insecure man from refusing to take responsibility for his feelings or frustrations. Huang believed that he could have whatever he wanted under whatever terms he wanted, and in walking that line got burned, thinking he was smart enough to outrun consequence. He didn’t care about his wife, his company, national security, or really anything other than what he was doing to or with Ms. (Alice) Huang. And like every big, stupid dickhead, he assumed that nothing bad would ever happen, that nobody would find out, and that the way that NVIDIA obfuscates its customers’ locations would keep his tryst and Megaspeed’s sales hidden. When Megaspeed came to light, I would bet he assumed the media and the Trump administration would simply leave it alone, which was true right up until Alice Huang was revealed to be a Chinese agent. In some ways he was correct. As I’ve repeatedly said, the Megaspeed story has been publicly-known for more than a year , explained in exhaustive detail in both Bloomberg and the New York Times in late 2025, my own coverage in March 2026 and Culper’s short report in May — shit, I even mentioned Megaspeed seven minutes into my interview with Jon Stewart on October 28 2026 — and sweet fuck all happened until the news broke of Ms. Huang’s job with the Chinese intelligence services.  The media happily continued reporting on every billion dollar stimulus that NVIDIA issued to random AI companies and neoclouds without a single mention of the obvious, blatant GPU smuggling operation going on in broad daylight, reported at length with pictures and proof, mostly because NVIDIA refused to admit it.   Even now, as Huang’s dirty business is on display for all and sundry, NVIDIA has yet to discuss — or be asked — about Megaspeed itself in any interview I can find. Jim Cramer , Emily Chiang , and anyone else who sat in front of Jensen without asking about this directly should be ashamed of themselves. Anyone attempting to claim that this has “nothing to do” with NVIDIA’s overall business is a fucking mark. We have compelling evidence that NVIDIA has been inflating its revenues using Chinese smuggling operations — and have done so for years — that were likely known at the highest levels of the company.  In a sane society, outside of an AI bubble, this would have led to the immediate resignation of both Jensen Huang and general counsel Tim Teter.  And let’s be clear about something. Jensen Huang is not an “ incredible human .” He’s a liar, likely a crook, a manipulator, and based on all the reports I’ve read should already be in handcuffs. Jensen has acted like a coward and a loser, and what he's done outright sucks — for national security reasons, for how brazen it is, and how much embarrassment and humiliation he’s brought his family, especially his wife of 40 years.  It is a tremendously shitty thing to do before you get to how Jensen Huang likely violated US sanctions around selling NVIDIA GPUs to China. He is not a “great guy” or “a good human,” he’s a horrible, avaricious toad that got too horny and greedy. He wanted to have sex, he wanted to sell more GPUs, and he ran them in parallel, “Grace Blackwell style.” It is not a “mistake” to fuck another woman decades into your marriage, nor is it a “mistake” to sell that woman’s company billions of dollars of GPUs, nor is it a mistake to repeatedly have your comms people lie, nor is it a mistake to use your general counsel to intimidate the commerce department into looking away from your obvious misdeeds.  Jensen Huang is, aside from everything else, a genuinely embarrassing example of what it means to be a man. As the CEO of the largest company on the American stock market and the bedrock of the entire AI bubble, all he had to do was keep selling GPUs and simply sell Alice Huang some GPUs without any of that messy romance — but his worthless, cowardly, weak-willed ass couldn’t help himself.  If you are a guy who feels compelled to defend Jensen Huang because of any allegiance to the AI industry or men in general, you are a colossal loser and have the mindset of a peasant.  The tech industry should outright reject weak-willed and morally-corrupt losers like Jensen Huang. As one of the richest and most-powerful people in the world, we should hold NVIDIA’s CEO to the highest standards imaginable both legally and socially, and that includes crucifying him for embarrassing his wife, his family, his company and his country. From the circular finance to the infidelity to the lies to the intimidation to the fucking brazen nature of all of the above, everything Huang has done is utterly repulsive, and should be treated as such. And let’s not forget that he has forced billions of dollars’ worth of GPUs on hyperscalers months before they need them , massively inflating the price of RAM and all consumer electronics as a result , all as a means of creating perpetual growth for NVIDIA — a truly horrifying and immoral act that made billions of people’s lives worse so that a company could hit its quarterly revenue estimates. Those defending this practice too have the minds of peasants, and crave the abusive control of a feudal lord with their entire being.  NVIDIA should fire Jensen Huang immediately, along with its general counsel. The US government should immediately start a criminal investigation into Megaspeed and all connected counterparties, as well as anyone at NVIDIA who oversaw any smuggling operations. The SEC should thoroughly investigate NVIDIA’s revenue recognition standards, and the US government should create regulatory standards that make its tactics illegal.  If you disagree, you are advocating for the corrupt and deceitful to profit at any cost. Men like Jensen Huang are the reason that the tech industry sucks, and until it purges these morally-repugnant oafs, our entire society will suffer.  If you liked this piece, you should subscribe to my premium newsletter, and you can subscribe on the following links: $70 a year , $18 a quarter , or $7 a month . Friday’s premium newsletter will be a continuation of this story. We’ve got a lot to say about NVIDIA, Megaspeed, and the illicit flow of AI GPUs into China. You won’t want to miss it.  If you want to get in touch — and especially if you have any juicy information about Anthropic, OpenAI, or any other companies in the AI bubble — hit me up on Signal at ezitron.76. I’m also on IB on your Bloomberg Terminal.  It means that 20% of the largest company on the stock market’s revenue comes from illicit sales to China. If that’s even half true — and I believe it, given everything else you’ve read today — that revenue is either going away or is long gone depending on how stupid NVIDIA has been. It’s reasonable to assume that somebody is going to jail based on the sheer scale of the operation. It’s also reasonable to assume that Megaspeed is, as Culper’s source said, the tip of the iceberg, as its orders only added up to around $4.8 billion.

0 views
Fredrik Meyer 1 weeks ago

AI tools I use (2026)

Over a year ago I wrote the post All the ways I use AI . A lot has happened in the AI space since then, so in this post I will summarize how I use AI now, in November 2026. For context, I am a software developer, these days mostly coding in Kotlin and Next.js (same as last year). (I did not use AI to write this post. I did ask AI for typos and suggestions, but all words are my own.) In rough order, from most used to least used, here are the tools I use these days: At work we’re currently only allowed to use AI models through GitHub Copilot (which includes both OpenAI’s models and Anthropic models). I mostly use it sandboxed with , a sandbox for running agents in. How I do AI coding deserves its own post, so I’ll just list some bullet points of usages I like, coding-wise: I don’t like having AI write documentation. Reading AI-written text is somehow very demanding. It invents phrases, and over-uses some other ones (“gate”, “not this, but that”, and so on). Lately I’ve been also using it through agent-shell , a really well-designed Emacs package, which lets one use agents directly in Emacs (since one can specify the command to start the ACP server, it can still run in the sandbox). (actually - with the help of AI, configuring Emacs has gotten so much easier!) It is very handy for help in everything from cooking (“I have these ingredients, suggestions for what to make?”) to helping me buy a new computer (“I am considering a home server, what do I need?”). I have admittedly asked it a few health questions, but then I always ask it to back up its claims with peer-reviewed sources. Some sample conversations I’ve had: I still use Raycast as a Spotlight replacement (though I am considering replacing it with tinycast , a smaller open source alternative). If I have a very quick question I can press ⌥+SPACE TAB , and read the answer there 1 . So I basically just use it for small chats. I really disliked Google pushing AI search results on people before, but this has actually turned out quite good. For quick searches, it is often faster to just talk to the search result. The biggest downside is that it very often lists Facebook posts and Instagram videos as sources of its claims, so don’t trust it immediately. AI can be problematic for many reasons, and I think practicing intentional use will be extremely important onwards (just as with social media). We will have to learn to fight the urge to have an agent solve every problem - sometimes our understanding is the goal (more than a quick solution). It is probably not healthy to outsource thinking and problem solving. Skills and knowledge will atrophy if not used 2 . Personally I try to avoid AI on hobby projects, mostly because the fun and learning go away (though I do have a fully vibe-coded hobby project). When text is so cheap, we end up producing a lot of it. It is scary to think about a future where almost all text is produced and read by AI. Where do humans fit in the picture? I have not tried tools like OpenClaw to automate everything in my life, but I assume I will at some point (when they are sufficiently reliable, maybe). It would be interesting to experiment with having an always-on agent. At work, it could be useful for reacting to things happening in production, or reacting to review comments, for example. Finally, I am excited about how the AI landscape look in a year’s time (and are any of them profitable yet ?) I still haven’t installed Raycast v2, which supposedly has a lot of changes.  ↩ This piece by Addy Osmani is a nice read.  ↩ Map out codebases, point out holes in documentation, point out bugs. Write tests (though models tend to write very verbose - often trivial - tests, so be vigilant). Reproduce bugs, fix them with a failing test. At Nav, where I work, agents can read logs and traces, which can be very helpful when debugging. They have a skill for this. Write code, of course. Help me choose a hanging chair for my balcony Salad ideas, suggestions for burger fillings What Linux OS to use for gaming Help me solve traffic in Cities: Skylines I still haven’t installed Raycast v2, which supposedly has a lot of changes.  ↩ This piece by Addy Osmani is a nice read.  ↩

0 views
Blog System/5 1 weeks ago

Unattended reboots with encrypted disks

Do you run a small home server or NAS holding your precious photos and sensitive documents? If so, I suppose the drives are encrypted, right? But then… can you reboot the machine without manually entering a passphrase before being able to access your files again? If you answered yes to the questions above—which is common for convenience—that implies the encryption keys live in the machine which… kinda defeats the purpose of disk encryption, doesn’t it? A thief can break into your house, lift the whole box (they are small these days, huh), plug it in elsewhere, and gain free rein over your files. So, which one is it? Simplicity and reliability by allowing automatic reboots or data protection by keeping the key in your head? With ZKeys—a little new project I’m launching today—you can have your cake and eat it too. TL;DR ZKeys is a managed service that stores encryption passphrases off-site. Client machines fetch the encryption keys from the service and keep those keys alive (unlocked) via periodic keepalive messages. If the server stops receiving those messages for a long period of time (e.g. because it has been unplugged as part of theft), access to the key is automatically locked. You get automatic, passwordless reboots while keeping your data protected against real incidents. Did you know that, by subscribing to Blog System/5, you support the creation of this content and this software? About a year ago, I was reinstalling my FreeBSD home server to act as my NAS after a short stint with a Synology box . During that process, I decided to enable encryption for the ZFS data pool. But as I did that, I faced the question: how do I allow the machine to automatically serve my data after a reboot? I could put the key in a local file, which FreeBSD supports via the ZFS option, but that would render disk encryption pretty much useless. So I had an idea: what if I put the key on a different machine away from my house? I could then make the NAS fetch the key to mount the drives. And if someone stole the server, I could wipe the remote key and make the data unreadable before they could plug it back in. I did post this to Twitter and there was some interest in the idea: But… did you notice the problem with what I said above? Wiping the key by hand after noticing something is wrong is problematic because the gap between those two events may be large. What if I’m on a long vacation and I have no means of noticing that the machine has been stolen? Game over. So I refined the idea: what if I had a service that stored the key remotely and required the consuming machine to send it frequent pings to keep the key unlocked? This way, if the machine were stolen, it’d likely be offline for more than a few minutes and the service could automatically determine that something is wrong and lock the key from future accesses. And that’s precisely what ZKeys does. Before getting into details, it’s important to get something out of the way early on: ZKeys is designed so that a compromise of the server is insufficient to retrieve or reconstruct your keys. This is done in two ways: Split keys: The ZKeys server only stores half of the passphrase used to unlock a volume. The other half remains on the client machine. The client program combines both halves to produce the whole passphrase. Encryption at rest: The keys are encrypted at rest with a password that the client must supply for retrieval and which is securely transmitted over HTTPS. The password only lives in the server’s memory for a brief period of time. The tradeoff is, simply, that you MUST back up the full encryption keys in a third location of your own (a paper in a safe, a password manager, you name it). If ZKeys goes down or you lose your remote key password, there is absolutely nothing I can do to help you. You have been warned. The setup instructions later on will instruct you how to back the key up. The ZKeys service is available at https://zkeys.jmmv.dev/ and the open-source client—along with system integrations for FreeBSD and Fedora—is in my jmmv/zkeys repository. Disclaimer: ZKeys is offered to you for free. I make no promises about its reliability, availability, or anything else. I am giving you access because I expect that supporting a handful of extra users won’t be a big issue. But if support becomes a burden, or if load becomes unmanageable, I’ll have to re-evaluate my choices here. Which means that, for now, you have to use the limited code to get started! The basic idea to set ZKeys up is the following: Install the client CLI tool. Create a service account. Create a new key (or onboard an existing key). Configure the keep-alive service on the target machine. Change or add the filesystem encryption key to be the one stored in ZKeys. Configure the auto-mount service on the target machine. That’s all it takes, but the steps are quite manual at the moment because no upstream OSes provide packages. The service documentation covers several scenarios in detail for FreeBSD and Fedora, so I’m not going to repeat them here. Demo of the integration between ZKeys and Fedora 44 with a fully encrypted root volume: the video starts by showing a fully unattended boot, followed by a manual lock of a key that causes Fedora to refuse to reboot on its own, and finishes with another automatic reboot after the key has been unlocked again. Now for the nerdy details, because that’s what you’re here for: The CLI is Rust, of course, but it has to come with a bunch of shell scripts to integrate with FreeBSD’s rc.d system and Fedora’s systemd and dracut. These integration points are the trickiest part of the client package and the hardest to validate automatically, which is why I only provide support for the two systems I use on a daily basis. It should be possible to integrate ZKeys with any other Unix-like OS, though. The CLI package is a frankenmonster made up of Cargo and GNU Automake/Autoconf because of the above. I believe system-level tools should abide by de facto standard tooling even if such standard tooling is deficient, so GNU Autotools it is. I run two non-replicated instances of the service: one in US West and one in EU West, because I have machines in both locations and both rely on encryption. I strongly suggest you use the US instance as I’m seeing frequent power hiccups in my EU deployment. The frontend uses Bootstrap, straight from the 2010s. Does it look ugly? Maybe, but I kinda like it and, most importantly, it’s functional . Of course I could have asked AI to produce yet-another-dull-site full of gradients and slop, but I did not want to do that, so I stuck to what I already knew how to do by hand from previous services. The admin page is an SPA, yes. This is an intentional design choice that forces a very clear separation between the backend APIs and the frontend. Whatever the current web frontend can do any other client can do as well. For example: the current CLI tool does not offer administrative operations but it could trivially be made to support them, because the APIs are right there. The backend is built on my own III-IV framework which I’ve been building up over the last few years while implementing a couple of other services. I’ve had to add a lot more features to it to make this possible though. Oops, I know that’s the name of a different effort , but you really need to encrypt your local drives. With computers becoming smaller and lighter every day, it’s easier than ever to steal them, and unfortunately home break-ins are common in some parts of the world. Block-level encryption is cheap in CPU terms, so do it. ZKeys just makes this process less cumbersome for headless servers. Once again, head to: https://zkeys.jmmv.dev/ to get started and use code to create an account! And if you are interested in helping out, I’d appreciate the creation of packages for FreeBSD and Fedora, and integration scripts for other systems. TL;DR ZKeys is a managed service that stores encryption passphrases off-site. Client machines fetch the encryption keys from the service and keep those keys alive (unlocked) via periodic keepalive messages. If the server stops receiving those messages for a long period of time (e.g. because it has been unplugged as part of theft), access to the key is automatically locked. You get automatic, passwordless reboots while keeping your data protected against real incidents. Did you know that, by subscribing to Blog System/5, you support the creation of this content and this software? Storytime About a year ago, I was reinstalling my FreeBSD home server to act as my NAS after a short stint with a Synology box . During that process, I decided to enable encryption for the ZFS data pool. But as I did that, I faced the question: how do I allow the machine to automatically serve my data after a reboot? I could put the key in a local file, which FreeBSD supports via the ZFS option, but that would render disk encryption pretty much useless. So I had an idea: what if I put the key on a different machine away from my house? I could then make the NAS fetch the key to mount the drives. And if someone stole the server, I could wipe the remote key and make the data unreadable before they could plug it back in. I did post this to Twitter and there was some interest in the idea: But… did you notice the problem with what I said above? Wiping the key by hand after noticing something is wrong is problematic because the gap between those two events may be large. What if I’m on a long vacation and I have no means of noticing that the machine has been stolen? Game over. So I refined the idea: what if I had a service that stored the key remotely and required the consuming machine to send it frequent pings to keep the key unlocked? This way, if the machine were stolen, it’d likely be offline for more than a few minutes and the service could automatically determine that something is wrong and lock the key from future accesses. And that’s precisely what ZKeys does. Zero-knowledge protection Before getting into details, it’s important to get something out of the way early on: ZKeys is designed so that a compromise of the server is insufficient to retrieve or reconstruct your keys. This is done in two ways: Split keys: The ZKeys server only stores half of the passphrase used to unlock a volume. The other half remains on the client machine. The client program combines both halves to produce the whole passphrase. Encryption at rest: The keys are encrypted at rest with a password that the client must supply for retrieval and which is securely transmitted over HTTPS. The password only lives in the server’s memory for a brief period of time. Install the client CLI tool. Create a service account. Create a new key (or onboard an existing key). Configure the keep-alive service on the target machine. Change or add the filesystem encryption key to be the one stored in ZKeys. Configure the auto-mount service on the target machine. The CLI is Rust, of course, but it has to come with a bunch of shell scripts to integrate with FreeBSD’s rc.d system and Fedora’s systemd and dracut. These integration points are the trickiest part of the client package and the hardest to validate automatically, which is why I only provide support for the two systems I use on a daily basis. It should be possible to integrate ZKeys with any other Unix-like OS, though. The CLI package is a frankenmonster made up of Cargo and GNU Automake/Autoconf because of the above. I believe system-level tools should abide by de facto standard tooling even if such standard tooling is deficient, so GNU Autotools it is. I run two non-replicated instances of the service: one in US West and one in EU West, because I have machines in both locations and both rely on encryption. I strongly suggest you use the US instance as I’m seeing frequent power hiccups in my EU deployment. The frontend uses Bootstrap, straight from the 2010s. Does it look ugly? Maybe, but I kinda like it and, most importantly, it’s functional . Of course I could have asked AI to produce yet-another-dull-site full of gradients and slop, but I did not want to do that, so I stuck to what I already knew how to do by hand from previous services. The admin page is an SPA, yes. This is an intentional design choice that forces a very clear separation between the backend APIs and the frontend. Whatever the current web frontend can do any other client can do as well. For example: the current CLI tool does not offer administrative operations but it could trivially be made to support them, because the APIs are right there. The backend is built on my own III-IV framework which I’ve been building up over the last few years while implementing a couple of other services. I’ve had to add a lot more features to it to make this possible though.

0 views
Hugo 2 weeks ago

PaaS, Coolify, Terraform and AI: How to Manage Your Infrastructure in 2026 When Launching a Startup

I created my first company which went well 14 years ago and I was able to grow that company from 0 to over 700 employees. You can imagine that the constraints when starting, the working methods, the tools, are very different from what you might encounter in most companies you know. You don't work the same way at 0 and at 700. You need to be fast, you need to build an application that people want to use without burning mountains of money you haven't earned yet and it's for all these reasons that I chose not to take care of the entire software infrastructure part at the beginning. What I call infrastructure is the servers, databases, backups, everything that's invisible to most people but essential for an application to function. It's essential, but overall everyone doesn't care about it. It's not that which allows you to sell a product. Good infrastructure but with a bad application doesn't work. And if you spend too much time on infrastructure, you don't make a good product. Obviously it still needs to work but you can delegate it, I would even say you should delegate it. Infrastructure should be a non-issue for several years when you start. So back then I chose to use a PAAS, a platform as a service, which precisely allows you to delegate all the infrastructure to people whose job it is. And whenever I saw people starting companies but starting to tell me about Kubernetes or Docker, I would systematically tell them it was far too early to talk about that. I always saw that as a bad signal whenever someone spent their time explaining to me how they were making their product, not what product they were making. The nuance is important. Now, I'm changing my mind. Except for Kube. I just launched a new product, Kula , the world has changed, company creation has changed and it might be time to reconsider some choices. So we're going to talk about PAAS, coolify, dokploy, easypanel, terraform, AI and how we can deploy applications in today's world. In 2014 I wrote an article on exactly this subject (in french). Because in 2014 we were leaving Heroku, our PAAS at the time to go to an OVH server. A PAAS is, in very simplified terms, an execution environment that allows you to run your applications. A PAAS manages for you web servers, databases, backups. It should allow you to collect and analyze errors that occur, alert you if you're running out of memory or CPU. We left Heroku because in 2014 we were starting to hit the limits of what PAAS could offer. Among the important limitations I could mention: In 2014 with Malt we needed precisely to be able to route Web requests to several different applications. For example the /search page was a separate application from the one that served the /profil page. Despite everything, in hindsight, it was a dangerous choice. The company was only 2 years old and I had to do a lot of ops to reproduce a satisfying developer experience on OVH. That's time I didn't spend elsewhere. Fortunately I already had experience on the subject and good mastery of certain automation tools like Ansible which limited the damage. But it was also an economic choice. A PAAS could quickly become expensive. Each resource (a database, a server, a process) is billed independently. And in 2014 at Malt, I can tell you we counted every euro spent very carefully. Okay, but I'm talking about Malt in 2014. Then the company grew well, we doubled in size every year. In 2017 we hired our first ops. We started doing OVH Cloud. In 2018 we went to GCP and we were no longer off by 100 euros. But that's not today's subject. What interests me is the startup phase. Since 2024 I left Malt and started creating products again. I love doing that. I find the first steps exciting. You have to know how to deal with constraints, be creative. I first launched Broadcast in 2024, a newsletter sending service for static blogs. Then Pulse in 2025 while I was living in Japan, an analytics service for blogs. Connect in 2026, a comment as a service (like Disqus). Writizzy in 2026 as well, a blogging and newsletter platform, a competitor to Substack or Beehiiv. Until now, it was the most ambitious and largest project. And for all these projects I used a new range of tools that I discovered in 2024, self hosted PAAS. They are PAAS, but they are PAAS that you can host yourself. I chose Coolify, which I already talked about in an old article . First of all, obviously, that changes the price. Today I run Coolify on two machines, with all my applications, all my databases. That represents more than thirty resources and it costs me 45 euros per month. Remember, I'm back in startup mode, so with very little money and it's therefore a heavyweight argument. No commercial PAAS can allow me to run all these resources for that amount. It would be at minimum between 300 and 1000 euros per month. I lose time on it, I have had some cold sweats with system updates, connection losses, machines that break down. But the fact of using a PAAS, so software that takes care of all deployment, monitoring, logs is a significant gain. Even if I need to understand how it works, I'm not obligated to spend as much time on it as if I had to manage everything manually and dive into the workings of Kubernetes for example. But, with more than 30 managed resources, I started to feel some limitations and especially, I realized that maybe, maybe I was going in the wrong direction. What if AI could become an excellent ops for me? I love Coolify, but there are still important limitations: This last point, if you have only one application, it's not very serious. But I already have too many applications. If I need to bring up an entire server, I'll have to reconfigure everything and I really don't want to. I'm exaggerating, Coolify's database itself is backed up in snapshot mode but it's a bit more painful and it doesn't allow me to easily migrate to another service, like Dokploy or EasyPanel. So I tested something else. I asked AI… Yes, ops takes time, it can be complex and you can't mess up. But writing code that allows you to automate your infrastructure, your network topology, your backups, your observability, that remains an excellent idea, much better than making dozens hundreds of clicks on an interface. Because code can be versioned. And I'm telling you that, I've already done Ansible, Capistrano and shell batches, so I'm not discovering that in 2026. But I also know that writing code is long and once again, it's time you don't spend on the product. Except… if AI writes it. In October 2026 I decided to take advantage of the experience I acquired on Writizzy and Broadcast around email sending to launch another product: Kula . Kula is a marketing and transactional email sending tool. I manage sequences, segmentation, analytics tracking, deliverability management and it's now the email sending backend for Writizzy and Broadcast. If you're already a customer of sendgrid, mailjet, brevo, or resend, don't hesitate to test. Plus I'm generally cheaper . Except this time I didn't want to use Coolify again for Kula. So I used AI to create Terraform scripts to control my infrastructure (at Hetzner, Bunny.net and AWS). I added continuous deployment, rolling upgrades with Caddy , incremental backups with WAL , logs collected in dozzle . And all that took me less than 1 hour to set up. I can bring up my entire infrastructure more easily, I manage and version my secrets with Sops, I lowered my RPO from several hours to 1 minute (RPO is the maximum possible data loss) and I can control everything from my code, by running scripts. Finally, my LLM can control everything. Now, if you didn't understand RPO, Sops, WAL, rolling upgrade and overall what I just said seems as clear as Chinese to you, it's because I may have misled you… In reality I haven't totally changed my mind. I still believe you should delay ops as late as possible but with much more nuance than before. You do ops anyway, even with a PAAS, but a large part is simplified, pre-digested for you. Except that precisely, you delegate choices to people who know how to do it without always understanding the compromises they made for you. You hadn't necessarily understood before now that your backups were imperfect. You hadn't perhaps realized that your secret management was a mess before I mentioned it to you. Creating IT projects is constantly making compromises between costs, risks and gains. And you can't maximize all three. Low risks and many gains requires a lot of budget. Low budget to get many gains, it's necessarily because you're taking risks. Etc… It's not a problem to solve, these are choices to make. So if you lack general knowledge, if you decide to do everything directly with AI, it might send you crashing into a wall because you won't understand the compromises that were made. It's true, there's no longer as much argument about loss of time as before. You can go very fast. But going fast into a wall isn't necessarily an advantage. In my case, I wasn't starting from scratch, far from it. So I knew where to go. I was already doing ops by choosing to use Coolify in self-hosted mode and then I had some experience, including in much larger companies. I understand the compromises I'm making. When I say that I launch a new company using terraform, I'm taking a shortcut. I've been launching products since 2011. And since leaving Malt, I have 2 years under my belt with Hakanai, Writizzy and Kula. When I say I took 1 hour to set everything up. It's true, but I took 25 years to learn to set it up in 1 hour. So let me rephrase. If you have no knowledge or experience of ops, infrastructure, take a PAAS. A very simple PAAS that you don't host yourself (Clever Cloud, Scalingo, Sevalla for example). The cost will remain acceptable and you'll have the opportunity to learn on a stack that's managed for you. (I came across koyeb too while writing the article but I'm having trouble positioning it between PAAS and IAAS, don't hesitate to give me info if you know) If you have knowledge but you're still in prototyping phase with still few applications to manage, choose a market PAAS or a self hosted PAAS, Coolify, Dokploy or EasyPanel. Here you'll prioritize cost and flexibility. If you're really knowledgeable, you can go to dedicated servers controlled with terraform. It's the advanced version of the previous option, focused on cost and flexibility. As soon as you have volume, and several applications, some architectural complexity and a budget to finance it, then you can start looking at IAAS (infrastructure as a service), DBAAS etc… I recommend Scaleway or Hetzner. In short, it's hard to launch a company. It's even harder to learn all the necessary trades at once. Even with AI. Don't waste time on what you don't yet know how to do. However, as soon as you've gained the experience, tell yourself that many things that were very time-consuming before is now much more accessible. Revisit your preconceived ideas on the subject and test. You might be surprised. There was no notion of private network. A private network is what allows your application to communicate with a database without going back through the internet. So the database is only accessible within your network. Most PAAS offerings didn't provide that. There was no notion of web frontend. A web frontend is a server that we place in front of one or more applications. This allows, among other things, to have different applications that are used for different parts of a website. Coolify doesn't allow multiple nodes of the same application There's no secret management. All environment variables are in plain text. You have to use a service like infisical . Monitoring exists but remains quite light. Backups are only in snapshot mode. That is to say you take photos of the database at regular intervals but in case of a crash, you lose all information since the last backup. it's clickodrome. You can hardly automate the fact of rebuilding resources, especially since the api is limited.

0 views
Brain Baking 2 weeks ago

Twenty Years of Retronauts (And Me)

Episode 800 of the Retronauts podcasts released recently , celebrating twenty years of floating around in the podcast-o-sphere. Twenty years of making podcasts and eight hundred episodes, not counting the ones Jeremy and co. did for 1UP ! That’s a remarkable achievement considering most other podcasts I listen(ed) to only record one, perhaps two to three seasons and that’s it. I don’t think I need to advertise Retronauts or the work of Jeremy Parish and his merry band of co-hosts. So why this write-up? Because, like Jeremy mentioned in the episode, after Nadia says that games keep on getting older: That means I have something in common with [these] games. Given that I am of the more or less same vintage year of birth as most people in the show, that fact stings and lingers here as well. Time and life marches on, I write a few silly quips on a yearly basis on my birthday , and that’s it. But now and then, triggered by these special events, the sudden weight of forty-plus reappears. Not necessarily in a bad and depressing way—although that perhaps as well—but in a surprising way that I didn’t consider before. It’s hard to explain. I’ve been with Retronauts since day one. Actually, since day minus one. I fondly remember downloading the latest 1UP Show on Friday evening which took a while considering the 2005 internet connection speeds. I would try to make up an excuse to race to my bedroom as quickly as possible after dinner to go watch the show accompanied by a can of Pepsi Twist, where my hero Jeremy would defend the weird Nintendo DS titles everyone else discarded in favour of the big AAA titles. Evidence of that can, including very modern flatron CRT and generic beige ergonomic keyboard, is immortalised in a photo on the My Workspaces blog post . Unfortunately those magical moments didn’t last long as Ziff Davis sold 1UP to UGO, effectively ending the show vodcast/podcast publications as well. And then there was the IGN crisis and then in 2013 the whole thing came crashing down. A year later, Retronauts emerged from the ashes, thanks to a Kickstarter to cover bootstrapping costs and Patreon to keep the show independent ever since. Never sell your business unless you want to take the money and run with it. Oh hi EA, how’s BioWare going lately? Another graveyard? Oh. Here’s Jeremy in episode 4 of The 1UP Show (Oct 2005) discussing Mario Kart DS outside the office with then news editor Jane Pinckard. Conclusion? This one’s better than Double Dash . Remember when people brought their DSes out in the open to race against each other? Remember when mobile gaming was still mobile? The Switch (2) and Steam Deck aren’t exactly pocketable nowadays. Two people holding a DS in front of a corporate building signalling 'hey, you can play these games outside!' Jeremy: I really hate the new blue shell which flies towards you. Jane: Why do you hate it? Jeremy: Because it then drops on you and explodes and then flips you over and there’s no way to dodge it. The most annoying power-up since its inception in this DS installment. Depending on the person you’d ask, Mario Kart DS —and to an extend, most DS games—were already “retro” when they got released. I’m so glad Jeremy kept digging himself deeper into the retro gaming scene, resulting in the invention of the word “metroidvania”, the very successful Retronauts podcast, his recent work at Limited Run Games, and of course the YouTube “[platform] Works” series where he discusses the history and context of each and every retro game on multiple platforms, such as his last video posted only 22 hours ago on Haunted Castle for NES Works : The older we get, the more ground there is to cover in the world of retro gaming! The original Castlevania celebrated its fortieth birthday earlier this year. Perhaps all these dates and events are related in some way? I just can’t believe that twenty years later, I am still playing these games, listening to these shows, following the new old related news. Yet so much has changed: marriage 1 , children, jobs, houses. So too did Retronauts evolve yet consistently kept on delivering retro gaming goodness to our ears. In the 800rd episode, they discuss its history and gradual movement from in-person recording in the San Francisco Bay Area—when gaming journalism was still a viable option there—to everyone moving out and primarily recording online, further necessitated by a certain global pandemic. The celebration of Twenty years of Retronauts for me triggers questions such as have I made the right decisions in these last twenty years? and will I be privileged to still be here after the next twenty years? I am no longer that Pepsi Twist gulper that wastes most of his time playing games and tinkering with the Linux kernel. I sometimes miss that person. I wonder what he wanted to get out of life. The answer is probably nothing because at that age you don’t ask yourself stupid questions like that. If you are reading this and you are in your twenties, please do yourself a favour and do ask yourself these questions. 2005 was also the year I started working on a site called Jefklak’s Codex , the fourth attempt at creating a gaming-related site. The most popular article was the my experimental DS DOOM port on the DS Xtreme card. Thank you ToastyFrog and co., for your perseverance on all things obscure pixels. You were and are a beacon of inspiration; here’s to another 800. I hope by then my retro cartridge collection isn’t disintegrated in some way. I hope by then I myself am not disintegrated in some way. Other than the unstoppable ravaging effects of another twenty years of time added to the clock, that is. In 2005, my wife was my girlfriend; I think we hooked up in 2001? We’re together for more than half of our lives!  ↩︎ Related topics: / podcasts / nostalgia / By Wouter Groeneveld on 29 October 2026.  Reply via email . In 2005, my wife was my girlfriend; I think we hooked up in 2001? We’re together for more than half of our lives!  ↩︎

0 views
Martin Alderson 2 weeks ago

Making agents fast - what I've learnt over the last 12 months

I've spent a lot of my career optimising websites and apps to run faster, and it's been interesting to apply some of those principles to agentic workflows. I'll run over some of my key learnings - there's many more I want to get written down at some point, but for brevity I think this is my rough mental model of tackling this. The obvious thing to start with is inference speed. This has two key components, which will be familiar if you have done any backend API optimisation. The first is TTFT (time to first token). This is analogous to TTFB (time to first byte) in web servers, namely how quickly does the first token come after you've done a request. This includes prefill (input token processing), so this scales with how many tokens the agent is sending to the inference provider too - so you should expect to see (potentially significant) variance on this number, much like you'd expect TTFB to be higher on an endpoint that e.g. has to do more database calls to prepare the response. A lower TTFT is better. Prompt caching is, of course, absolutely vital to this. Cached tokens are much faster (and cheaper!) to serve. Most agent harnesses handle this well these days - it's been a while since I've ever seen issues with this. Obviously worth keeping an eye on, but it matters less than I predicted in real world experience. The second is tok/s (tokens per second), which measures how quickly tokens come back once the response starts. This is closer to bandwidth on application servers, where a higher value is better. How relatively important each are depends on what kind of responses you're expecting back from the LLM provider. For example, if you are sending back and forth lots of short responses between turns in your agentic workflow, TTFT is likely to comparatively be of greater importance than tok/s. Equally, if you are having the LLM output longer responses (say, code or documents), then TTFT is likely to be less important than tok/s. Illustrative numbers. TTFT is network, queueing and prefill - the wait before anything comes back. Tok/s is how fast it streams once it starts. Knowing which number you need faster is important when comparing models and inference providers. Smaller models are generally faster than big ones. But between providers of the same model [1] , there is an enormous delta in speed. OpenRouter does provide public data on inference providers, but keep in mind this is an aggregate that may only roughly match your real world use. The main issue that tends to crop up is that providers also tend to vary in speed a lot depending on the time of day and how much load they are under. Big leaps in TTFT (for similar length prompts) can indicate queuing on the provider side, but can also mean your requests are being allocated to slower hardware or more users competing for prefill compute. Equally, slowdowns in tok/s can mean slower underlying hardware or higher batch sizes at the provider. Either way, there is a serious "noisy neighbour" [2] factor on many inference providers. Of course, many providers offer different tiers of service. For example, OpenAI offers a 'flex' tier alongside their standard and 'fast' tiers. These allow you to trade speed for cost. But don't overlook the impact of thinking budgets. A "fast" tier model with thinking set to maximum or xhigh will be vastly slower than a "slow" tier model with low or medium thinking. I'm guilty of constantly overlooking thinking budgets when looking at this stuff, but it makes an enormous difference. It's easy to be drawn to the quantitative tok/s and TTFT values when in reality reducing thinking can completely dwarf it - if suitable for your task. While having fast(er) inference never hurts, it's worth noting that it's often not the biggest part of the speeding up agents, and can be expensive to speed up (paying for faster tiers), or painful to move inference providers (if you have committed spend or contractual requirements). Rough numbers again, but halving inference time only takes 20% off the task when provisioning, tools and suspend/resume stay the same. It's good to start looking at your tool calls in more detail. This is much more classic performance optimisation work. But I've noticed things being slow that are not usually slow. A classic example is an agent running over large amounts of files, which causes hundreds of thousands of new process invocations. This can be painfully slow, especially on sandboxed environments. So while classic software performance engineering applies as per normal to agent tool calls, you need to investigate tool call traces to see what the agent does. It will often chain a bunch of bash commands together to achieve a result and it can be not obvious to see which part is causing slowness. is helpful here, but not ideal to run all the time as it itself has a performance overhead. Tool output size matters too. While most agent harnesses are pretty strict at stopping -style commands from blowing up your context window, as mentioned before uncached input tokens directly impact TTFT. SQL-style data sources have a big advantage if you can give your agent access to these - as it can request exactly what it needs without risk of a broad returning thousands of tokens of unrequired data. Equally, given many agents start a new shell on every command things in your that are not usually an issue can become a real issue. Be careful about what a shell needs to launch - especially if you have nvm or similar in that. Before you know it you can be spending dramatically more time starting the shell than running the command. Building on from the obvious "make this command faster", I think the next step is to think hard about what tooling your agent needs, but is having to "work around". For example, if you have it doing a lot of over markdown files over and over, it is potentially better for that data to be in a database it can call with full text search. This is where things differ a little in my mental model of software optimisation. Usually you look at a request, look at what it's doing, and try and make each part faster, and rinse and repeat. With agentic workflows, you can often just observe what the agent does, and deduce what would work better. So purely looking at tool call traces can be misleading. I've found that open weights models have a massive advantage here as you can read their thinking traces. While CoT traces are well used by the labs trying to work on safety and alignment, it turns out they are great for coming up with ideas to optimise the tools you give the agent. The way I've worked with this is getting a list of slow calls, and looking at the thinking blocks just before this. You'll usually get some blindingly obvious "hmm, could do x, but no y" style thoughts. And you can just give the agent what it wants, and see how things work out. The other thing that can make a big difference is treating loops with as a red flag. This is an indication that the agent wants to be notified of something but is instead having to poll for it. Often agents will poll for something that is quick but they tend to set a 10 or 20s minimum wait on the for loop. This can be solved with prompting sometimes, but often it can be an indication that (usually external) services need a async way to fire back task completion. Finally, parallelisation is a big help in cutting down speed of tool execution. Adding a simple "try and parallelise tool calls in $TASK" can work wonders, but especially with weaker models risks the agent making mistakes and undoing any efficiency gain. As such, providing tools (CLI or MCP) that do the parallel steps for the agent can be worthwhile. In my career, primarily driven by cloud computing platforms, I've often found the easiest quick fix is to just use faster hardware. And by faster hardware I do not mean a bigger AWS instance - dig into the underlying hardware your agents are running on. That means looking at the exact CPU core type you are using (the Zen 4c/5c cores can be much slower than the full sized ones), clock frequency and file IO speeds. This depends heavily on the tasks you're doing with your agents, but if they need to write a lot of custom code or doing a lot of data analysis, making sure the underlying hardware is fast can help a lot. For example, if your agent needs to do quite IO-heavy tasks, you may find a lot of your slowness is coming from networked disks. Having faster (local) NVMe disks may offer many, many orders of magnitude faster IO performance. This is often worse in many sandboxes. With things like copy on write and other snapshotting techniques, there can be a lot of overhead on file IO. Slow underlying IO just makes everything worse. I often see real speed issues with suspend and resume. Not every agentic workflow uses it, but if you (for example) allow agents to pause for a human in the loop approval, you need to be careful with optimising suspend and resume. MicroVMs can often resume on paper extremely quickly, but actually have pages streamed in on first access. So you need to measure not just what the MicroVM says but how quickly new inference requests are starting after resume. Being careful with memory management is the crucial thing here. While you don't want to starve your VMs of RAM and thus cause swap or OOMs, it's worth investigating what is using RAM during a suspend. If you have for example headless browser sessions active, it's almost certainly worth killing them before suspending, as is any running server processes the agent may have built. As always, the key thing is to measure and track RAM usage and break it down over time if you are using a lot of suspend/resume cycles. Finally, check the network. It's very common in my experience to have broken IPv6 in sandbox environments, and you end up with network timeouts while it does a AAAA lookup on DNS, which adds a small overhead to every request. Basic hygiene stuff like this adds up over the course of an agentic session. I think the key things I'd check on any agentic optimisation project are: As always, this space is also evolving fast. Keeping up to date with the field has always been my guiding north star in making sure you can keep stuff fast. I'd love to hear from you if you're working on making agents faster. I'm especially interested if you think I'm missing obvious factors here! Be aware that even the same model may have different quantisation (compression) depending on the provider. You need to compare apples to apples - if one provider serves FP8 and another INT4 (say), it will be faster but at the cost of quality. ↩︎ Noisy neighbour refers to shared compute getting slower when other users of the same hardware are pulling more resources. Typically you'd see this on VM providers with shared CPU resource - it may be fast a lot of the time, but when other customers are running high-load tasks, the hypervisor starts throttling each user. Unlike on VMs, where you can usually see this with 's column, it's very opaque at what load your inference provider is under. ↩︎ Inference speed is nuanced, and knowing what part of inference you rely on most for speed is important. Check thinking budgets! This is overwhelmingly the lowest hanging fruit Read traces, and if you are using open weight models read the CoT thinking traces. They often have so much valuable insight into what the agent is wanting to do Give the agent the tools it wants rather than what you think it needs Don't overlook the basic stuff. Faster hardware still matters, sandboxing and microVMs open a whole world of potential performance footguns, parallelisation helps and classic software performance optimisation is as relevant as ever. Be aware that even the same model may have different quantisation (compression) depending on the provider. You need to compare apples to apples - if one provider serves FP8 and another INT4 (say), it will be faster but at the cost of quality. ↩︎ Noisy neighbour refers to shared compute getting slower when other users of the same hardware are pulling more resources. Typically you'd see this on VM providers with shared CPU resource - it may be fast a lot of the time, but when other customers are running high-load tasks, the hypervisor starts throttling each user. Unlike on VMs, where you can usually see this with 's column, it's very opaque at what load your inference provider is under. ↩︎

0 views
Langur Monkey 3 weeks ago

Volumetric galaxy rendering

The Milky Way is an essential component in any 3D Universe software. Rendering a realistic (i.e. science-based) and visually appealing galaxy is paramount to the user experience, and to the cohesion of the simulated universe as a whole. Galaxies are made of gas and dust clouds, so they are volumetric in nature. In Gaia Sky we have been using particle-based representations for a long time, even though we have had the volumetric rendering infrastructure in place also for a while. This post describes the rendering technique we use in Gaia Sky 3.9.0 to render the volumetric Milky Way, and how we have constructed the dataset that enables it. Interested? Keep reading. The Milky Way galaxy in Gaia Sky A little bit of history The rendering of our and other galaxies has always been a topic I dreaded. I never felt that the solutions we found were good enough. I always knew that the right way to do it was with volume rendering, but the main issue was that we did not have the volumetric data. So, for a long time, we have used approximations to render the Milky Way, some more gracious than others. Enhanced flat image — Initially, we used a single two-faced billboard with the artist’s impression by Nick Risinger, coupled with a generated star field. This was featured in the September 26, 2016 Astronomy Picture of the Day, titled “Here comes the Sun” 1 . This is a very primitive galaxy, but it looks awesome from above and in still pictures due to Risinger’s image. Top Side Wide Textured billboard approach — After Gaia DR3 landed in 2022, the catalog data were used by Stefan Payne-Wardenaar 2 to produce a high-quality representation of the whole Galaxy 3 in Blender. At that time, I worked with Stefan to produce a particle-based version that would fit in the existing billboard systems in Gaia Sky. The first version was based on textured additive billboards and dithered depth buffer occlusion. The depth was correct, but the look of the galaxy was rather cartoonish and unrealistic. Additive blending was used for all channels except the dust, which was purely occlusive in a binary sense (no sorting, so no transparency), making use of dithering to simulate translucency. This version is the one that looks the worst of all. Using textured billboards is a bad move to simulate a volume of gas and dust. Also, the brightness blows out when seen edge-on. Top Side Wide Billboards with additive and subtractive blending — Later on, inspired by this article , the textured billboards were updated to rely on blobs and additive/subtractive blending. The main issue was that the emissive parts blended additively in a very unrealistic way, and the occlusion did not respect the depth order in the scene. Several attempts were made afterwards to implement Weighted Blended Order-Independent Transparency (WBOIT) 4 , as suggested by the article, but this was very difficult to tune and produced underwhelming results. Looks better than the previous textured-billboards version, but the behavior of light is unrealistic. The brightness is mostly gone when seen from the top, but blows out edge-on due to the additive blending. Top Side Wide All these issues finally tipped me into seriously consider approaching the project of converting the particle data to a volume and implementing a proper volume renderer with emission and occlusion. The first step is to convert the particle data to a volume in the form of a voxel grid. This step is crucial, as it can make or break the whole project. Having a good dataset is the difference between a bland-looking visual and an awesome one. The source is the same particle model we were already rendering. It is split into channels, each a gzipped text file with one particle per line: where the position is in galactic coordinates, is the particle’s weight and is the emission coefficient of the particle, in arbitrary units. The Milky Way is made of three of them: Gas (~15,000 particles), Bulge (~900) and ArmDust (~93,000). The stars and the HII regions of the model are not part of the volume: they are genuinely point-like, so they keep their billboards and a voxel grid would only blur them. Reading a few hundred thousand lines and painting them into a grid is not hard. What is hard is doing it in a way that does not depend on the resolution of the grid, so that a \(200^{3}\) volume and an \(800^{3}\) volume describe the same galaxy and differ only in how much detail they can hold. Most of the work below exists to enforce that. Every particle is a point with no extent, so the first operation is a scatter into the grid: each particle adds its weight to the voxel it falls in. That is the simplest possible splat, and it is what the shipped volumes use. It is also the one that keeps the property above, because a nearest-voxel scatter is the identity of the sampling: the same data always lands in the voxel the same ray will visit. Splatting Each particle adds its weight to the voxel it falls in, so a voxel ends up with the summed weight ρ and the weight-averaged color c; here its opacity is drawn proportional to ρ. The magnification shows the arithmetic for a voxel that receives two particles. There are two details here worth taking into account: The color accumulates with the same weight as the density , so dividing the accumulated color by the accumulated density yields a size-weighted mean color per voxel. Getting the weights inconsistent here is the classic way to end up with a volume whose large particles dominate the hue. The grid is galactic but the file is not. Voxels are dumped in C order, like this: $$ (W, H, D) = gal(X, Z, -Y) $$ This is because of the axis order the shader indexes a 3D texture with. The permutation is written into the metadata, in both orders, precisely so nobody has to infer it. A raw scatter of 15,000 points into a \(400^{3}\) grid is a swarm of dimensionless points, but we need a volume, so every channel is blurred with a Gaussian. The tempting choice, a fixed sigma in voxels, is exactly the one that breaks resolution independence: it smooths more of the galaxy at 200 than at 800, and the same data produces two different objects. Instead, the blur width is a length on the particles, in world units of the box: $$ \sigma = 0.85 \times \ell $$ where \(\ell\) is the median distance from a particle to its 4th nearest neighbor — the local inter-particle spacing, not the volume divided by the count. Note that this measure is the same for all particles in a channel, as \(\ell\) is derived from the median. We do not compute a different smoothing for each particle. That value measures the gaps that actually need filling, and it is nearly independent of resolution by construction, since it comes from the particle positions alone. A channel that is denser gets a narrower kernel for free, and the same particles written at 200, 400 and 800 get 4×, 2× and 1× that sigma in voxels , which is the correct behavior. The 0.85 is empirical. A blur width given by hand in world units, per channel, never generalised; this little proxy held up across channels and resolutions. Smoothing The kernel width is a length measured on the particles, σ = 0.85 ℓ with ℓ the median distance to the 4th neighbor, so the same blur is described by twice as many voxels on a grid of twice the resolution. The result is one continuous density field; a fixed sigma in voxels would instead give a \(200^{3}\) volume and an \(800^{3}\) volume two different galaxies. Two guards keep this sensible: The color is blurred with the density kernel, over the unblurred density, so the color spreads exactly as far as the density is about to. Blurring the color separately is how you get colored halos around black voxels. The particle colors are emission coefficients, not display colors. Gas averages about 0.02, so clipping to and multiplying by 255 rounds roughly 82% of the occupied voxels to zero and leaves the whole channel carried by about thirty distinct levels. Quantizing as-is gives a black galaxy. The fix is a single scalar gain , derived from the 99.9th percentile of the occupied voxels and applied to all three channels identically. One scalar is the important part: the gain preserves the chromaticity of every voxel, so the hue is still the data’s. Per-channel normalization would give each channel the full 0–255 range and wash everything toward gray, which defeats the point of storing a per-voxel color at all. The gain is baked into the bytes, and the shader consumes the stored color as-is. Density gets the same treatment, by its peak, and is stored in the alpha channel. Each channel is written as a raw heap of bytes, gzipped, next to a small text sidecar that declares the grid and the box: The byte count per voxel selects the format (1 byte per voxel is R8 density, 3 is color, 4 is color+density) and the loader takes it from the file length, not from the file name. The RGB channels carry the chromaticity, the alpha channel the brightness, and the emitted radiance is the product . An occluding volume uses the same layout, with alpha as the normalized density. The per-channel textures are then merged into two final volumes: one emissive (Gas at 0.7 + Bulge at 0.3) and one occlusive (ArmDust at 0.08). Merging is a post-process on the textures, so it needs neither the particle data nor a re-conversion, but it does have to be careful: A galaxy disk is 6.7 units wide and 0.67 thick, so a cubic box around it is nine tenths empty space: \(400^{3}\) of is 244 MiB, where the same voxel size laid out as \(400 \times 400 \times 40\) is 24 MiB. A factor of ten, spent on nothing. The fix is to flatten the grid and the box together , deriving the grid from the data-shaped box: the detail of an \(N^{3}\) grid without the empty axes. Flattening only the grid would make the voxels anisotropic; flattening both keeps them cubic. Nothing else has to change. It is still one texture and one step count, because the ray-march step \(rayLength \times |rayDir / extent|\) is invariant under a rescale of the box: flattening it does not change how many samples a ray takes. Here we go over the galaxy shader, which is in . It is a single-pass ray marcher, but it is drawn twice : once early as a depth-only pre-pass, and once late as the emission pass. But first, we need a piece of geometry that emits the pixels to the fragment shader were we do the work. Here, anything works, as long as the pixels reach the fragment. Since we need to render the galaxy also from the inside, we use a flipped cube at the position of the model. The transformations for the actual galaxy are done in the fragment shader, so rotating or scaling this box does nothing. It is essentially a vessel to emit pixels. The box The box is drawn with its front faces culled, so it never shows up as a surface: the ray crosses the near wall and every pixel it covers receives exactly one fragment on the far wall. The shader does not use that fragment as a surface, it only takes its world position as a direction from the camera. Since the near wall is never the one drawn, the camera can also sit inside the box and the screen is still full. We said we do an early depth pass and the emission pass at the end. Why is that? Well, the volume is rendered with additive blending so its own fragments cannot write a meaningful depth. Adding two semi-transparent layers is commutative; the depth buffer, which keeps a single number per pixel, is not. And the volume cannot be sorted per fragment, so any attempt to give it “the” depth in the color pass is wrong by construction. But the scene needs it. The stars of the catalog, and the whole rest of the universe, are drawn after the Milky Way volume, and if nothing writes depth they all shine through the dust lanes. A galaxy whose dust hides nothing looks like a galaxy with a bright smudge on it. So the depth is produced as a separate mask , in its own pass, before anything else is drawn: The pre-pass marches each ray only until it finds the first sample that is dense enough to occlude, writes that distance, and returns. The emission pass marches the same ray from the same origin and finds the same front, so both agree on where the dust starts. Stars are switched from “no depth test” to “depth test, no writes”: they are hidden by the dust but cannot overwrite its depth. The volume is not the only thing that is allowed to render small. The volumes of the other galaxies (gas, bulge and dust) go into the same reduced buffer, and so do the nebulae, which are evaluated analytically in their fragment shaders instead of being sampled from a texture. All of them share the property that makes this safe: their content has no detail at the scale of a pixel, so the upscale costs almost nothing visible, while the fill rate they give back is the expensive part of the frame. The depth is never reduced. Every one of those elements still writes depth at full resolution, in the pre-pass of the table above, and before the scene draws at the reduced scale that depth buffer is blitted onto the reduced one. That copy is what keeps the reduced pass honest. Everything depth-tested in it, the stars above all, reads the reduced depth buffer, which the full-resolution pre-pass never wrote. Bringing the full-resolution depth down first means those tests see the dust front exactly where the full-resolution pass put it: without it the stars would shine straight through the lanes, and lowering the render scale would change the image instead of only its sharpness. Not every volume should occlude. The gas is emissive, and its faint outermost haze is not opaque: letting it write depth would cut a hard, sharp-edged hole in the star field, perfectly matching the box. The dust, on the other hand, should hide what is behind its lanes. So each volume slot carries its own density threshold , and only samples above it count as occluding. We define, for every channel, the threshold density above which occlusion happens: disables occlusion for that slot: the gas renders, and hides nothing. The value for the dust is not arbitrary, it comes from the data. In the dust volume, the low tail of the density histogram is the blur we applied deliberately, not matter, so the threshold is set to keep the lanes and drop the tail. The constant is per texture and has to be re-tuned if the smoothing or the normalization changes. Both volumes are marched in one loop , at the same position along the ray. That is what makes the ordering correct: a dust lane and a dust glow are the same voxels, and only the order of emission and absorption within the step decides which one you get. A few things in there are worth pointing out: Two, both of them consequences of doing the depth in a cheap pre-pass: Neither is visible in practice, and both are one comparison per sample away from being fixed properly. The renderer is only half of it. The other half is being able to load a volume from a data pack and declare it in a scene, which turned out to be mostly about formats . A volume object is a regular with the archetype, so it accepts , , / , and everything else, plus the volume-specific attributes: has one value per quality preset (low, normal, high, and ultra, adjustable from the settings dialog), so the same scene degrades gracefully on a weak GPU. Up to four volumes can be declared per object, and all of them are marched and composited in the same pass. The loader ( ) does three things worth mentioning: None of this is Milky-Way-specific: any 3D tool that can write an grid can produce a volume for Gaia Sky. The format and the scene attributes are documented in the data format and the volumes section of the Gaia Sky documentation. Memory is the price: an 800-resolution grid is \(798 \times 80 \times 800\) , about 200 MB once decompressed, per volume . The default data pack therefore ships three resolutions and picks one by data quality setting: 200, 400 and 800 voxels on the longest side of the box: Thanks to gzip (and to how much of the box is empty) the download cost is trivial; it is the decompressed texture that decides whether a card can hold it. The question a resolution-independent conversion has to answer is whether the three grids really are the same galaxy. They are: the mean ray integral (the integral of the density along a sample of rays through the volume, the quantity that has to match if the object is the same) is within 1% of each other, with the same total mass and the same hues, so what changes between them is only detail. And detail is visible: at 200 the dust cannot be smoothed at all (its kernel is 0.31 voxels, so the point cloud shows through), at 400 it is 0.63 voxels, and only at 800 does it reach 1.25 voxels and become a continuous lane. This is why the dust is the channel that decides which resolution you actually want, and why the 800 volume is the one in the preview video below. Up to 800, the volume costs what the step count says, not what the grid says. Frame time for the Milky Way alone, at QHD (2560x1440) with the camera at about 34.5 kpc above the galactic disk, on an NVIDIA GTX 1070 (driver 580.178.04) on Arch Linux. I deliberately chose to use this very old card instead of my other RTX 5080 because it may be more representative of the graphics computing power present in common household PCs and laptops. Tests have been carried out with only the base dataset loaded. With that hardware the resolution is almost free: going from 200 to 800, sixty-four times the voxels, costs under a millisecond at every preset (3.5 → 4.3 ms at low, 4.6 → 5.2 at ultra). This is possibly because the ray march is per-pixel and the grid does not change how many steps a ray takes. That is why I also built a 1300 volume, which no shipped dataset uses: 274 times the voxels of 200, for 1.5 to 2.2 ms (3.5 → 5.0 ms at low, 4.6 → 6.8 at ultra). Even at that scale the cost stays far below the voxel count, but it is no longer invisible: 1300 is now the most expensive thing in the table, ahead of the preset. The step count is also interesting. Current presets are 50 at low against 110 at ultra, and even that only adds 0.9 ms at 800 and 1.8 ms at 1300. The slowest cell in the table is 6.8 ms (1300, ultra) at QHD, 41% of the 16.7 ms a 60 fps frame allows, so even that volume is not limited by frame time on this card. What the card does pay for is memory. These are the sizes as decompressed and uploaded to VRAM, at 4 bytes per voxel ( ), for the flattened, cropped boxes the loader actually builds: Even the 1300 volume fits in the 8 GB of a GTX 1070 with room to spare. That is the flattening earning its keep: the same resolution in a cubic box would be 8.8 GB, so the high-resolution row could not have been run at all. The stills below are where the argument becomes visible, each pair sharing a camera. The top view is where the billboards fall short, and for a reason that is easy to get backwards: seen face-on, so few billboards overlap along the line of sight that there is almost no galaxy left. Top view. With so few billboards along the line of sight the galaxy almost disappears; the volume still shows the disk and its dust lanes. Volume at 800 resolution. Edge-on, the billboards look plausible at first glance, but they blow out, while the volume rendering stays consistent. The same additive blending that was too faint from the top saturates here: the bulge becomes a flat white patch and the disk loses its internal structure. The volume stays a thin dark lane with its dust intact. It is also dimmer overall, which is expected, because there the light is absorbed rather than added. Edge view. The billboards saturate, the volume does not. Volume at 800 resolution. Dust is where the grid resolution shows. Three close-ups of the same lane, same camera, 110 iterations each: The same close-up at 200, 400 and 800, 110 iterations. At 200 the fog is grainy, because the dust kernel is thinner than a voxel and the point cloud shows through. 400 is already smooth and 800 is smoother still, but the two are hard to tell apart at this framing. The stars and HII regions look the same in all three: they are billboards and never go through the grid. The last comparison is the two ends of the preset range. Low is the 200 grid and 50 steps, ultra is the 800 grid and 110 steps, so both knobs move at once and this pair shows the worst case rather than the effect of either one alone. Preset: low Preset: ultra Top view preset comparison The low preset versus the ultra preset, top view. The low preset versus the ultra preset, from inside the disk, looking at the galactic center. Low uses the 200 galaxy resolution and 50 iterations. Ultra uses the 800 galaxy resolution and 110 iterations. Against ultra, the low preset is softer and hazier, and the dust has less contrast. That is intended: low is meant for modest hardware, and it still looks decent there. Below is a video I captured with the 800 galaxy running in Gaia Sky. Credits: The Gaia Sky Project, ESA/Gaia/DPAC. For a decade the Milky Way in Gaia Sky was a compromise between what the data said and what a rasterizer could do with a pile of billboards. The volume rendering path fixes this: the galaxy is now a medium that emits and absorbs. The dust lanes hide the stars behind them and not the ones in front, and it no longer blows out or fades to nothing depending on where the camera is. Two things made it work, and neither of them is in the shader itself. The first is the conversion: sizing the blur on the particles rather than on the grid is what makes all resolutions the same object at different levels of detail. Flattening the box to the shape of the data makes real savings in memory (256 vs 25 MB for the \(400^{3}\) box). This is what lets the unshipped 1300 grid fit in the 8 GB of a GTX 1070 and still draw a frame in under 7 ms. The second is the depth pre-pass: a volume cannot write meaningful depth in a blended pass. The rest of the scene has to know where the dust is, so the cheap early pass does the trick here. So far, all this work only affects one galaxy: our own. Gaia Sky can already generate galaxies procedurally, but in 3.9.0+ that system still produces billboard particles. The next step is to adapt it to produce and render volumes. Other than that, what is left are smaller fixes rather than architecture: Finally, all this work has been done assuming we start from a particle-based distribution, which is a weird place to start for such a project. Typically, one builds the volume from scratch via analytical distributions without going through a particle dataset. For DR4, due on December 2, we will build a volume directly from Stefan’s data, bypassing the particles altogether. Astronomy Picture of the Day: Here comes the Sun https://science.nasa.gov/image-article/apod-2016-september-26-gaia-here-comes-the-sun/   ↩︎ Stefan Payne-Wardenaar BlueSky profile https://bsky.app/profile/stefanpw.bsky.social   ↩︎ Gaia’s Milky Way map https://www.cosmos.esa.int/web/gaia/milky-way   ↩︎ Morgan McGuire and Louis Bavoil , Weighted Blended Order-Independent Transparency , Journal of Computer Graphics Techniques (JCGT), vol. 2, no. 2, 122-141, 2013. Available online: http://jcgt.org/published/0002/02/09/   ↩︎ Enhanced flat image — Initially, we used a single two-faced billboard with the artist’s impression by Nick Risinger, coupled with a generated star field. This was featured in the September 26, 2016 Astronomy Picture of the Day, titled “Here comes the Sun” 1 . This is a very primitive galaxy, but it looks awesome from above and in still pictures due to Risinger’s image. Top Side Wide Textured billboard approach — After Gaia DR3 landed in 2022, the catalog data were used by Stefan Payne-Wardenaar 2 to produce a high-quality representation of the whole Galaxy 3 in Blender. At that time, I worked with Stefan to produce a particle-based version that would fit in the existing billboard systems in Gaia Sky. The first version was based on textured additive billboards and dithered depth buffer occlusion. The depth was correct, but the look of the galaxy was rather cartoonish and unrealistic. Additive blending was used for all channels except the dust, which was purely occlusive in a binary sense (no sorting, so no transparency), making use of dithering to simulate translucency. This version is the one that looks the worst of all. Using textured billboards is a bad move to simulate a volume of gas and dust. Also, the brightness blows out when seen edge-on. Top Side Wide Billboards with additive and subtractive blending — Later on, inspired by this article , the textured billboards were updated to rely on blobs and additive/subtractive blending. The main issue was that the emissive parts blended additively in a very unrealistic way, and the occlusion did not respect the depth order in the scene. Several attempts were made afterwards to implement Weighted Blended Order-Independent Transparency (WBOIT) 4 , as suggested by the article, but this was very difficult to tune and produced underwhelming results. Looks better than the previous textured-billboards version, but the behavior of light is unrealistic. The brightness is mostly gone when seen from the top, but blows out edge-on due to the additive blending. Top Side Wide The color accumulates with the same weight as the density , so dividing the accumulated color by the accumulated density yields a size-weighted mean color per voxel. Getting the weights inconsistent here is the classic way to end up with a volume whose large particles dominate the hue. The grid is galactic but the file is not. Voxels are dumped in C order, like this: $$ (W, H, D) = gal(X, Z, -Y) $$ This is because of the axis order the shader indexes a 3D texture with. The permutation is written into the metadata, in both orders, precisely so nobody has to infer it. A cap at twice the channel’s own half-mass thickness , along galactic Z. Without it, a sparse channel (a few hundred particles whose “local spacing” is an artifact of sparsity) would be blurred into a slab. A smoothing scale per channel. Dust uses 0.4×, because a dust lane that is smoothed like the gas stops being a lane and becomes a haze. Densities add. The color is the density-weighted mean over the inputs that carry one, and each input’s baked gain is undone first, so the merge happens in emission space. Otherwise a channel normalized to a different peak would bias the hue of the result. The merge verifies alignment (same grid, same box to 1e-3, metadata grid consistent with the file length) rather than assuming it. Renormalizing the sum after the merge dims everything : at Gas+Bulge 1/1 the peak lands at 1.36 and the texture is scaled by 0.73. Whether to do it is a decision, not a detail. Empty brick skipping is the single biggest performance win. On load, the voxel grid is reduced to an occupancy grid with one texel per 4×4×4 brick, holding the maximum density of the brick. A zero texel then means every fetch inside that brick would have returned zero: no emission, no extinction, so skipping the whole brick cannot change the image. The shader does one nearest fetch instead of the dozens the brick would have cost, and advances the sample index rather than the step size, so the samples it does take sit on exactly the lattice it would have used anyway. On a galaxy volume, most of the march is empty space. The jitter decorrelates neighboring pixels so a step size in UVW does not show as concentric banding. The transfer function is \(density \times color \times step\), integrated front to back, with an exposure factor applied at the end. Density is peak-normalized and sparse, so the ramp parameter is \(log_2(1 + 255\cdot d)\). Without the log the whole volume lands in the first ramp stop and the ramp does nothing. The depth is written at the first sample above the threshold, not where the ray actually becomes optically thick. A thin lane therefore occludes as hard as a thick one. The distance is along the ray, while the log depth buffer wants view-space depth. They differ by \(cos \Theta\) away from the view axis, which is exact at the center of the screen and a few percent at the corners. It crops. The grid is cut down to the range of voxels that actually hold density, plus one voxel of padding, and the cropped grid is mapped onto the same box. Writing the empty shell into the file costs file size and load time only. It builds the occupancy grid described above, and binds it as a separate 3D texture. A slot without one gets a \(1 \times 1 \times 1\) volume of ones, which never skips. It derives the format from the bytes , not from the filename: 1, 3 or 4 bytes per voxel, with the grid from the metadata sidecar. Sizing the ray-march step from the grid resolution instead of the box, so a finer grid is actually sampled finer. Replacing the time-hashed jitter with a static one (the current float32 clock dies after about ten hours of uptime). Enabling scattering in the dust, which is already wired with a coefficient of zero. Tuning the occlusion threshold, which is currently a single constant for the whole volume and would probably be better as a curve. Astronomy Picture of the Day: Here comes the Sun https://science.nasa.gov/image-article/apod-2016-september-26-gaia-here-comes-the-sun/   ↩︎ Stefan Payne-Wardenaar BlueSky profile https://bsky.app/profile/stefanpw.bsky.social   ↩︎ Gaia’s Milky Way map https://www.cosmos.esa.int/web/gaia/milky-way   ↩︎ Morgan McGuire and Louis Bavoil , Weighted Blended Order-Independent Transparency , Journal of Computer Graphics Techniques (JCGT), vol. 2, no. 2, 122-141, 2013. Available online: http://jcgt.org/published/0002/02/09/   ↩︎

0 views
Michael Lynch 3 weeks ago

Refactoring English: Month 22

Hi, I’m Michael. I’m a software developer and founder of small, indie tech businesses. I’m currently working on a book called Refactoring English: Effective Writing for Software Developers . Every month, I publish a retrospective like this one to share how things are going with my book and my professional life overall. At the start of each month, I declare what I’d like to accomplish. Here’s how I did against those goals: This is finally complete! I got caught in a loop because there’s a one-week turnaround between ordering a print and getting to see what a physical copy looks like. So, I’d order a print and make some improvements while I was waiting. By the time I received the test print, I wanted to include the last week of improvements, so I had to order another test print and wait another week. And while I was waiting, I made more improvements… Finally, I had to decide that a version was good enough and that it was ready for customers, but I’m continuing to make small tweaks on a rolling release basis. I ended up spending a lot more time than I expected touching up the print version, so I had less time to pitch to podcasts. Both posts reached the front page of Hacker News, Lobsters, and /r/programming. I was happy with these results, especially because one of my selling points of the book is that writing helps customers find you. It was nice to prove that with blog posts that led readers to purchase the book. September was the second-best month of visitors for the book, though I didn’t directly cause it. Most visitors arrived because a reader submitted my “How to Write an Effective Software Design Document” post to both /r/programming and Hacker News, and the post took off in both places. The post’s success was surprising because the same article had been submitted to Hacker News nine times before and never took off. Tenth time’s the charm, as they say. And I’d submitted the post to /r/programming a few months ago, and it did take off, but I guess everyone forgot or was happy to read it again two months later . I normally cover the previous month in these retros, which would be September, but since I’m late and the October launch is fresh in my mind, I’ll cover it here. I officially launched my book! Launch week was October 4th to 11th. I offered a print version for the first time and offered a limited-time 30% discount on both the print and digital versions. Here were my launch week promotional activities, in decreasing order of impact on sales: Unique visitors to book site during launch week Here are some high-level metrics comparing launch week sales to the prior week for reference: I initially planned not to put much effort into the print version. The PDF version already looked pretty good, and customers have been buying it for over a year with no complaints about the design, so I wasn’t about to become a typography wonk over a print version. Then, a reader named Alexey Zubkov reached out to me with a few suggestions for my book and offered to help me with the typography. Once Alexey pointed out the issues, they felt like huge, glaring errors, even though I’d been staring at this book for years and never noticed them. One of my blind spots was that I wasn’t using my font’s pair-specific kerning. Without pair-specific kerning, Asciidoctor gives each letter a fixed slot of horizontal space regardless of which letter follows it. When it honors pair-specific kerning, Asciidoctor adjusts the horizontal spacing for certain combinations like “Yo”: Without kerning (top) vs. with kerning (bottom) Notice that with pair-specific kerning, part of the “o” appears directly under the “Y.” The two letters can share that space because the font designer knows the combination works, whereas if it was lowercase “yo,” the letters would collide. And that’s just one change! I made a little slideshow to show how a single page evolved over about 30 different typography improvements, and this still excludes many that had no impact on the example page: Add GOOD/BAD prefix and icons to examples Enable JavaScript to browse the remaining revisions. I’m selling the print copies of the book through Lulu, using a feature they recently added called Direct Buy Button. The basic idea is that you upload your book as a PDF, and they give you a link where people can buy a print version. Lulu offers print on demand, so they print a new copy for the customer and ship it directly to them. Lulu Direct Buy Button is significantly simpler than Shopify or WooCommerce, where you have to manage a whole ecommerce platform. Its closest parallel is Amazon Kindle Direct Publishing, though without the pain of dealing with the giant Amazon machine. My overall experience with Lulu has been okay. They deliver on the core promise, which is that they make it easy to sell a book through a link, but there are still a lot of rough edges. I wrote my book in Asciidoc because it was the only tool I could find that outputs to PDF, EPUB, and HTML. By the end, I got so tired of Asciidoc syntax that I spent a day writing (largely with AI) a Markdown to Asciidoc compiler so that I could stop writing in Asciidoc. Here’s an example of the difference. My book contains a lot of example callouts like this: Before, to render a callout like the above, I had to write gross Asciidoc that looked like this: The syntax above is especially annoying because most of that is boilerplate that appears in every example, but Asciidoc doesn’t support templates, so I have to repeat all the boilerplate every time. I wrote my own Markdown compiler that supports Hugo-style templates. Now, when I want to generate a bad example callout, I write this simpler and more readable shortcode: I also wrote an Asciidoctor plugin to improve the callouts to look like this instead of what I was limited to with native Asciidoctor: The example callouts were where the Markdown syntax was most obviously cleaner, but it also allowed me to stop thinking about Asciidoc’s confusing and inconsistent rules like when a straight quote becomes a curly quote . I’ve set it up so that I just write straight quotes everywhere, and my compiler worries about translating them to the right Asciidoc syntax for curly quotes. I’ve been meaning to try out Atuin for about a year. It’s a tool that collects your full terminal history and can sync it across machines. Every time I’m struggling to remember a command I typed a few days ago and I’ve lost it to bash’s confusing history management rules, I think, “I should really look into Atuin…” And then I keep putting it off. I finally set aside a few hours to set up Atuin, and it took me less than five minutes to install. I use NixOS, so a basic configuration just looked like this: The biggest decision I had to make was whether to let Atuin take over my up arrow. I didn’t realize Atuin took over the up arrow by default, so when it first started happening, I found it jarring. I couldn’t decide if Atuin’s up-arrow takeover was a worse workflow or if I just needed to adjust, but after about a week of trying to use it, I disabled Atuin from hijacking the up arrow. Now, the way I search my shell history is: I’m enjoying Atuin. It does exactly what it says. If I know that I’ve ever typed a command on the terminal, Atuin lets me find it quickly. My final Atuin config looks like this: Code a simple bug fix: 30 minutes. Get it code reviewed by the peer next to you: 5 hours… AI’s direct impact on this problem is minimal. Okay, so Claude can code it in 3 minutes instead of 30? That’s super, Claude, great work. Now you either get to spend 27 minutes reviewing the code yourself in a back-and-forth loop with the AI (this is actually kinda fun); or you save 27 minutes and submit unverified code to the code reviewer, who will still take 5 hours like before, but who will now be mad that you’re making them read the slop that you were too lazy to read yourself. Another participant said he was confused by two slides that seemed to contradict each other. I thanked him for showing the group how quickly men become hostile when asked to hold complexity. He said he wasn’t hostile. I asked everyone to notice that he had now interrupted a woman twice. He put his hand down. I said withdrawal is also a form of domination. He put it up again. We took an unscheduled break so I could regulate after what he had put me through. I launched my book and made lots of typography improvements to it. I’ve had mixed experiences with Lulu Direct Buy Button. I created a Markdown to Asciidoc compiler so I can stop writing in Asciidoc. Result : Launched the book (a week late) Result : Pitched to just one podcast Result : Published “Anti-Patterns in Software Blogging” and “Why are Agent Harnesses so Dumb?” during my book’s launch week Published “Anti-Patterns in Software Blogging” Went to #1 on Lobsters and /r/programming and peaked at #8 on Hacker News Published “Why are Agent Harnesses so Dumb?” It got a decent response on Hacker News and Lobsters Submitted an announcement to Hacker News Never made it to the front page Announced launch to my book email list Announced launch to my personal blog email list Fees are transparent and clear. Print quality is good. Lulu handles fulfillment, so the book goes straight from the printer to the customer. It’s easy to get up and running. The integration with Stripe Connect means authors don’t pay double fees for the sales platform and the payment platform. Customers haven’t reported any issues checking out. It’s print-on-demand, so you can order in any quantity, down to a single book. It’s easy to update the contents of the book, and the changes go live instantly for all future orders. There’s no programmatic way to see order information. Direct Buy Button doesn’t support webhooks or any kind of order query API. I reached out to support to see if I was missing something, and they said that the dev team intentionally designed Lulu Direct Buy Button as “a closed ecosystem” but did not elaborate on why anyone would want that. This is the biggest headache because it means I can’t programmatically react to purchases, like giving the customer access to the PDF version or the web version. Confusingly, there is an API for order status, but it only works for orders created through the API, so I’d have to reimplement all the server-side logic of Buy Button myself. There’s an undocumented GraphQL API for fetching the orders as a CSV, but Lulu invalidates sessions daily and makes every login go through a CAPTCHA, so it would be a pain to try to build automation on top of that API. Each product can have exactly one price. I wanted to offer a discounted price for customers who pre-ordered the ebook, but there’s no way to offer different prices or discount codes. As a workaround, I created a second, identical book with a lower price, but now any time I update the content of my book, I have to apply the change to two different products. There’s no built-in support for ordering a test print before releasing a version to customers. If I make a change to the book that could affect the print, I want to do a test print first. I can’t mark a draft as “not ready for customers.” As soon as I update a draft, that’s the draft that ships to customers. I worked around this by creating a third copy of the book that I use for test prints. Lulu’s CSV export omits important information. You can export order information as a CSV, but you have to do that manually. Bizarrely, the order export has no information about when the orders occurred. There’s no date or timestamp column. The CSV export also hides customer information like name and email unless the customer opted in to marketing. And I appreciate Lulu fighting spam, but it’s annoying that Lulu views these as Lulu customers rather than my customers. And Lulu exposes the customers’ information anyway in the dashboard, but you just can’t dump it in aggregate. You need to provide a return address even if you don’t accept returns. I ended up having to register a virtual mailbox, which is a whole other pain in the butt. I wish Lulu just offered a “recycle the book if you don’t want it” refund option. The current setup means customers have to ship a book to me across the country, but I’m just going to recycle it because I can’t do anything with a used copy of my book. Lulu makes it hard for authors to understand their earnings. They show “Revenue” in a lot of places, but my earnings dashboard said I’d earned $0 even after $2k in sales. I was able to calculate my earnings manually by downloading all my orders as a spreadsheet. Customer support is pretty bad. It took several days to respond to my questions, and the answers were unsatisfying. : Triggers , bash’s built-in search for the current session : Triggers Atuin to search over all commands across all sessions. Cryptic Comments on an NPR Spotify Show This is a recent episode of This American Life about a producer who found strange comments on an interview with author Elizabeth Gilbert. I read the transcript and then listened to the audio, but I wish I’d listened to the audio first because it was more fun that way. Spoiler: it’s the real-life manifestation of The Onion’s 2014-but-still-timely video: “Teens Migrating From Facebook To Comments Section Of Slow-Motion Deer Video.” Every layer of review makes you 10x slower This post is the best articulation I’ve found about the cognitive dissonance of the speedup I expect from AI vs. how much I experience in practice: Code a simple bug fix: 30 minutes. Get it code reviewed by the peer next to you: 5 hours… AI’s direct impact on this problem is minimal. Okay, so Claude can code it in 3 minutes instead of 30? That’s super, Claude, great work. Now you either get to spend 27 minutes reviewing the code yourself in a back-and-forth loop with the AI (this is actually kinda fun); or you save 27 minutes and submit unverified code to the code reviewer, who will still take 5 hours like before, but who will now be mad that you’re making them read the slop that you were too lazy to read yourself. A Marginal-Utility Case for Stealing My Grandmother’s Pain Pills This is a parody of LessWrong (popular rationalist site) that I thought was pretty funny. I saw JeffTK describe it as AI-written and thought it was too funny to be AI-generated. The only thing that makes me think it’s AI-written is the number of articles (68) that seem to have appeared out of nowhere. It also links to a Substack parody called Smugstack featuring gems like “I’m an Anti-Racist Educator. It’s Not My Job to Educate You” : Another participant said he was confused by two slides that seemed to contradict each other. I thanked him for showing the group how quickly men become hostile when asked to hold complexity. He said he wasn’t hostile. I asked everyone to notice that he had now interrupted a woman twice. He put his hand down. I said withdrawal is also a form of domination. He put it up again. We took an unscheduled break so I could regulate after what he had put me through. I don’t know what to make of the site because all the articles are like two or three orders of magnitude funnier than anything I’ve seen AI produce, which suggests human writing, but I can’t imagine this author was privately writing stuff this good for this long, and nobody noticed until now. My best guess is that the author has a good sense of humor and is injecting the core jokes but is using AI to flesh out the specifics. Officially launched my book. Improved a lot of design aspects of the book website, especially the purchase flow. Published “Anti-Patterns in Software Blogging” Published “Why are Agent Harnesses so Dumb?” Publishing print books is both harder and easier than I expected. It’s easier in that print on demand eliminates a lot of the hassle I anticipated of having to carry inventory and manage logistics. It’s harder in that selling a print copy means integrating with another sales platform, and the options are either complex platforms with lots of integration options or simple platforms with no integration options. Finish remaining typography improvements for the book. Publish one new blog post.

0 views
マリウス 1 months ago

Razer Basilisk V3 Pro 35K Phantom White Edition

In 2024 I replaced the Logitech MX Master 3 that I had been using since 2021 with a Razer Basilisk V3 Pro and Razer’s Mouse Dock Pro. The Basilisk did what the Logitech never managed to do, namely work without connection stutters, lags and dropouts. It also charged wirelessly on its dock and came with the same free-spinning scroll wheel that I had gotten used to on the MX Master, while being lighter and not covered in rubber that got quite disgusting to touch over time. Since then it has been my mouse at most desks , as well as on the road, where I bring it on almost every trip, even though my setup is mostly keyboard-driven. There was nothing wrong with the V3 Pro that I had. The main difference between it and the Basilisk V3 Pro 35K, which Razer released in October 2024, is the newer Focus Pro 35K sensor that replaces the Focus Pro 30K. However, I really like the transparent tech aesthetics of the 2000s, and when I came across the 35K in Razer’s translucent Phantom White edition at TSUKUMO eX. in the Akihabara district of Tokyo, I bought it anyway. I want to see more companies move away from the boring, muted look of today’s hardware and bring back the transparent tech look. This post is a review of the Phantom White from the perspective of someone who had used the regular V3 Pro for two years. It covers what Razer changed between the two, the engineering inside, and where Linux compatibility is at. Disclosure: I paid for the mouse with my own money and have no relationship with Razer. The opinions in this post are entirely my own. Razer introduced its Phantom collection in June 2025 with translucent green versions of the Basilisk V3 Pro 35K, the BlackWidow V4 75% keyboard, the Barracuda X Chroma headset and the Firefly V2 Pro mouse mat. In October 2025 the same four products followed in translucent white, together with a Kishi V3 controller for phones, under the name Phantom White. In Japan the Basilisk went on sale on November 7, 2025, at a suggested price of ¥28,980, which is ¥2,000 more than the black and white versions of the 35K. In the US the difference is $10, with the Phantom White at $169.99. Not only is the shell translucent, but so are the side grips, the cover on the underside and even the housing of the wireless dongle, which Razer refers to as color-matched components . The shell, however, isn’t as clear as Razer’s product renders make it look. The top in particular has a milky finish that is half white and half see-through, and the internals show through it as faint shapes instead of in detail. It’s apparently the same for the green version, with the interior only faintly visible through a shell that isn’t fully clear. Making a mouse translucent takes more than swapping the plastic. Razer’s Global Head of Design, Charlie Bolton, explained in an interview that the products in the Phantom collection weren’t designed to be transparent in the first place, and that Razer had to redesign a lot of their internal structure. Razer’s own marketing speaks of reengineered internals and meticulous wiring without going into detail. The only differences that I could find documented are that the Phantom editions have only 12 individually programmable LEDs instead of the 13 of the black and white 35K, and that Razer publishes a separate firmware updater for them. Which of the lighting zones was dropped, and why, Razer doesn’t say, but my assumption is that the 13th LED is the one which, on the non-translucent versions, illuminates the Razer logo on the back of the mouse. With the lighting turned on, the shell spreads the light of the underglow and the scroll wheel through the body of the mouse. This makes whatever lighting effect is running impossible to ignore, which, as I’ll explain further down , is a bit of a problem in my case. Translucent and white plastics tend to yellow with UV exposure over the years, and since the Phantom editions have only been around for about a year, I haven’t found any reports on how they age. I guess this is something that I’ll be able to report on in a few years, if yellowing should actually occur. It also remains to be seen whether the rubber on the side grips will wear after a few years as has been the case with my black V3 Pro, but I strongly assume that it will, at which point it’ll be interesting to see how that will look on the translucent material. Aesthetics are subjective, and I can understand anyone who prefers the stealthy look of the black version and finds the Phantom White to be a bit too much. I, for one, like it a lot. It reminds me of the translucent gadgets of the 2000s, and it turns the mouse, which is usually one of the most boring objects on a desk, into something that is quite interesting to look at. * At launch the V3 Pro supported 4000 Hz with the Mouse Dock Pro or the HyperPolling Wireless Dongle. Razer raised that to 8000 Hz with a firmware update in November 2023. ** Razer lists 11 programmable buttons for both mice, but its product page for the 35K also speaks of 13 customizable controls. The 14 controls of the Basilisk V4 Pro further down are counted the same way. The weights are Razer’s, without the cable and the dongle. If you put the 35K on a scale it will probably measure around 113g, and with the wireless charging puck installed, my Phantom White weighs around 118g. The different battery figures for the original V3 Pro are not a typo. Razer rated it at 90 hours when it launched but lists 110 hours today. I couldn’t find an explanation for the extra 20 hours, as I doubt that Razer actually changed the battery and I’d assume that it’s a value that they might have achieved using purely software optimizations. I haven’t taken apart the 35K so far, and it seems like nobody else on the internet has either, but if we assume that the internals are identical to the V3 Pro’s, then it’s likely to have the same Nordic Semiconductor nRF52840 at its core, which is an ARM Cortex-M4 system on a chip with 1 MB of flash and 256 KB of RAM, and a radio for both Bluetooth and proprietary 2.4 GHz protocols like Razer’s HyperSpeed. The lighting then probably also has its own RGB driver, maybe even the exact same W3635, and the 600 mAh battery is probably also wrapped in foam and mounted on a plastic frame above the sensor, into which the scroll wheel assembly slots as well. I also assume that the battery is soldered to the board, and that replacing it requires a soldering iron. Not great for a mouse that costs as much, and whose battery is likely the first part to wear out. Going by the V3 Pro’s design, the buttons on the top shell would then also be on a separate PCB that connects to the main board with a 5-pin connector, while the LED strip for the underglow and the scroll wheel connect via ribbon cables. Three magnets in the base would then align the mouse on the Mouse Dock Pro. Presumably the 35K also uses Razer’s third-generation optical switches for its main buttons, which register a click when the plunger interrupts an infrared light beam instead of when two metal contacts touch. They don’t need a debounce delay and aren’t prone to the double-clicking that mechanical switches tend to develop over time. Razer rates those at 90 million clicks. The other buttons, however, probably use ordinary mechanical switches. Some online sources state that the switches of the side buttons and the sensitivity clutch are ChangFeng parts, others that the side switches are Huano, and that the two buttons on top, the wheel click and the tilt inputs use unbranded tactile switches. The teardowns of the original identify the Focus Pro 30K sensor as a PixArt PAW3950. The Focus Pro 35K Gen-2 was reportedly developed together with PixArt as well, but Razer hasn’t said which part it’s based on. The Focus Pro 35K Gen-2 raises the maximum resolution from 30,000 to 35,000 DPI, while the tracking speed of 750 IPS and the maximum acceleration of 70 G stay the same. The more useful change is that the sensitivity can now be set in steps of 1 DPI instead of 50, which is probably important to people who want to match the sensitivity they’re used to from another mouse, and for whom Razer hence added a DPI Sensitivity Matcher to Synapse. The other features carried over from the 30K, namely Smart Tracking, which adjusts the tracking to the surface and offers three lift-off distances , Asymmetric Cut-Off, which sets the lift-off and landing distances separately across 26 levels, and Motion Sync. The new sensor seems to be fast and accurate across soft, hard and glass pads, but in practice indistinguishable from the old one, at least to me, who is not a professional eSports player. I’ve read about measured lift-off distances of 0.6, 0.8 and 2.0 mm for the low, medium and high settings on a bare surface, while some users saw slight jitter at 8,000 DPI and more above that, which is irrelevant to anyone, including myself, who doesn’t use such settings. I use the mouse for desktop work, meaning websites and applications like VMs that are cumbersome to use with the keyboard alone, and for that the difference between the two sensors is entirely academic. The included HyperSpeed dongle polls at up to 1000 Hz, and so does the USB cable. For 8000 Hz, the mouse needs either the HyperPolling Wireless Dongle or the Mouse Dock Pro. The dock launched in 2022 with a 4000 Hz transceiver and is listed with 8000 Hz today, and the original V3 Pro got 8000 Hz with its firmware update in November 2023, so 8000 Hz isn’t new to the 35K either. Once the mouse is paired with the dock, its own dongle obviously isn’t needed anymore and can be stored away inside the mouse. Independent measurements put the click latency of the 35K at 1.8 ms at 4000 Hz and 1.6 ms at 8000 Hz. These are good numbers, however, the gains over 1000 Hz are marginal, but the cost in battery life isn’t. At 8000 Hz Razer rates the 35K at 28 hours, down from the 32 hours of the original, which is a fifth of what the mouse gets at 1000 Hz. The scroll wheel was one of the main reasons I went with the Basilisk back in 2024. Like the MX Master, it can switch between a notched, tactile mode and a free-spinning mode, but the two do it in different ways. Logitech’s MagSpeed wheel uses an electromagnet, while Razer’s HyperScroll Tilt Wheel uses a small DC motor that, via a plastic gear, either presses a lever against a toothed disk for the tactile mode or pulls it back for the free spin. The rotation is read by an optical encoder , an LED and two photodiodes looking at a segmented disk. The mechanism is so precise that seemingly even a single human hair stuck in between, blocking the encoder’s light, can lead to a jittering wheel. Anyhow, the mode can be switched with the button below the wheel or automatically with Smart-Reel, which goes into free spin when you scroll fast and back to the tactile mode when you slow down. Smart-Reel isn’t new, because the original V3 Pro had it as well, but what’s new on the 35K is that the speed at which Smart-Reel switches can be set across five levels, and that Synapse offers a scroll acceleration that speeds up scrolling the faster you spin the wheel. Unfortunately, the acceleration is implemented in Synapse and not in the mouse, and it hence doesn’t exist on systems that don’t run Synapse. Every switch between the two modes comes with an audible click from the motor. Razer barely touched the shell, and the 35K is the same 130 mm long, 75 mm wide and 42.5 mm tall right-handed mouse with a thumb rest that the original was. Hence, the ergonomics are the same good ones that the original Basilisk had. In a palm grip the thumb rests on the ledge, with the sensitivity clutch right underneath it and the two side buttons above it. At 112g the Basilisk is heavy compared to the lightweight mice that are popular for shooters. For my use, however, it isn’t heavy by any means. Compared to the MX Master 3 that I used before, the Basilisk is still more than 20g lighter, and its weight is distributed well enough for it not to feel heavy in the hand. The feet are made of PTFE and glide well on a mouse pad, but they’re small and can scrape across a hard desk. Razer rates the 35K at 140 hours on the 2.4 GHz connection at 1000 Hz and at 210 hours on Bluetooth, compared to the 110 and 150 hours that it lists for the original today. Razer doesn’t say where the difference comes from, and as long as nobody has opened up a 35K, it’s unclear whether it’s the battery, the sensor or the firmware. However, the lighting matters quite a lot for battery life and might almost halve the runtime when set to peak brightness. So far, the battery life for me has been phenomenal even with the unicorn puke turned on at 10% brightness. My previous Basilisk had become a little weak with regard to its runtime after two years of daily use, and while I’ve only had the 35K for a short time, it feels like it can go weeks on a single charge. The cover on the underside of the mouse closes off a compartment for storing the dongle, and it can be swapped for Razer’s Wireless Charging Puck. The puck twists in, connects to the mouse through contact pads, and turns it into a Qi device that charges on the Mouse Dock Pro and, if the coils line up, on other Qi chargers. The Mouse Dock Pro includes a puck, otherwise it’s $29.99 or ¥3,288. Charging on the dock is slower than via the cable, with about 0.1 A on the dock compared to 0.33 A via USB-C on the original V3 Pro, which however doesn’t matter with the mouse on the dock overnight. Sadly, there doesn’t seem to be a wireless charging puck that is also transparent. Razer sells the Wireless Charging Puck in a single color, which is black, and it’s the same puck that comes with the Mouse Dock Pro. Hence, in order to use the mouse with my Mouse Dock Pro, I have to use the original black puck. It’s a bit sad, but then again, it’s not visible as long as you don’t lift the mouse to look underneath it. The dock itself has a built-in 8000 Hz transceiver and RGB lighting that shows the battery level of the mouse while it’s charging, from green through yellow to red. On October 8, 2026, Razer announced a successor, the Mouse Dock V2 Pro, which lists the 35K as compatible and is supposed to arrive in Japan in November for ¥11,980. Like with the original V3 Pro, Razer doesn’t offer any software for Linux. Synapse, Razer’s official malware software, runs on Windows and, as a preview, on macOS. Pairing the mouse with the dock, updating its firmware and the firmware of its receiver, and changing settings like the lighting timeout all require Synapse. Hence, I set up a Windows 11 VM on KVM, passed the dock through to it, unpaired my old Basilisk V3 Pro, paired the 35K, updated its firmware and adjusted its settings. Razer has started offering a browser-based version of Synapse, Synapse Web, which could in theory work on Linux. As of now, however, its list of supported devices contains a single mouse, the Viper V4 Pro. The on-board profiles, which include settings like the polling rate, work without Synapse. Sadly, just like with my previous Basilisk, the lighting still doesn’t seem to be stored on-board, at least not in a way that persists without Synapse running in the background. Synapse doesn’t run on Linux, and for using the mouse through the dock there doesn’t seem to be a working FOSS implementation yet that can properly set its lighting, which is why my Phantom White currently displays its typical spectrum cycling effect, also known as unicorn puke . OpenRazer has supported the Basilisk V3 Pro 35K since version 3.10, and the Mouse Dock Pro since version 3.12. Unfortunately, the latter covers only the dock itself, namely its own lighting, while a mouse that’s paired with the dock doesn’t show up as a device. The dock relays the mouse’s input to the computer, so the mouse works, but its DPI stages, its polling rate and its lighting can’t be changed from Linux as long as it’s connected through the dock. A report about OpenRGB not detecting the Basilisk V3 Pro through the dock has been open since 2024. Pull request #2817 , which was opened in May 2026, adds pairing, unpairing and a scan for nearby mice to OpenRazer’s driver for the dock. It also exposes a mouse that’s paired with the dock as a device of its own, with the same settings and effects that OpenRazer supports through the mouse’s own dongle. Testers report that the Basilisk V3 Pro 35K works through the dock with it, including static colors, and a follow-up pull request adds the 8000 Hz polling rate. As of now, however, the pull request is still waiting for a review by the project’s maintainers, and I’m waiting for it to be merged, so that I can finally configure the mouse through the Mouse Dock Pro via OpenRazer. If you own a Basilisk V3 Pro, there’s little reason to replace it with a 35K. The sensor is newer, but in practice indistinguishable from the old one, at least unless you’re an eSports professional, and the remaining changes are a longer rated battery life and a few settings in Synapse. I’d recommend the original, which these days often sells at a discount. Unless, that is, you care about the way it looks, which, admittedly, is why I bought it. As a mouse, the 35K Phantom White is as good as the V3 Pro was. The ergonomics are the same good ones that the original Basilisk had, the scroll wheel is as versatile as ever, and the battery life has, so far, been phenomenal. The translucent shell is a welcome change from the muted look of most hardware today, and the premium of ¥2,000 or $10 over the regular versions is not terrible. The downsides are the ones that the original had as well, namely (for some people) the weight, the price, a battery that’s probably soldered in, and software that doesn’t run on Linux, plus a charging puck that doesn’t match the rest of the mouse. Note: Shortly after I bought the 35K, at the beginning of October, Razer announced the Basilisk V4 Pro, which is supposed to arrive in Japan in November for ¥27,980. It’s 12g lighter and has 14 instead of 13 customizable controls, a new scroll wheel with an additional, finer tactile mode and a Focus Pro 50K sensor. It also supports 8000 Hz in both wireless and wired mode and is rated at 200 hours of battery life, but it has only 7 lighting zones, and Razer hasn’t announced a Phantom edition of it so far. If you don’t care about the translucent shell, the V4 Pro is probably the better buy. I do, and I’m happy with the Phantom White.

0 views
Krebs on Security 1 months ago

Microsoft Patches More Than 1,400 Security Flaws

Microsoft today issued updates to fix more than 1,400 security vulnerabilities in its Windows operating systems and other software. Today’s epic patch batch dwarfs September’s record of nearly 1,000 fixes, which was already about ten times the normal monthly patch load from Redmond. Just one of the weaknesses patched this week is considered a “zero day,” or already exploited in the wild. CVE-2026-96951 is a security feature bypass in the Windows Shell that affects Windows 10 and 11 systems, as well as some Server versions. Windows 10 users might be wondering if they can still expect security updates after this month. Microsoft had been slated to stop shipping updates for Windows 10 systems in October 2025, but ended up adding another year of free updates after considerable pushback. A few months ago, Microsoft quietly extended that support for another year (until October 2027). At least 78 of the flaws fixed this month are rated “critical,” meaning they could be exploited with little or no action by the user, and most of those critical bugs allow an attacker to execute code of their choice on the vulnerable system. While Microsoft said there are no signs anyone is exploiting it yet, a security feature bypass in the .NET Framework ( CVE-2026-108398 ) was publicly disclosed prior to today, potentially giving attackers advance time to work out how to exploit the bug. Satnam Narang at Tenable said the number of flaws fixed this month far surpasses the previous record-setting year 2020, when Microsoft patched 1,261 CVEs. “We’ve now crossed the 4,000 CVE mark with two months left to go,” he said. Microsoft credits large language models for the high volume of bug discovery, and presumably AI gets credit for many of the patches used to fix these flaw. Meanwhile, security experts have been warning that these unusually large patch volleys from Microsoft are placing extra strain on corporate security teams, which often have to test individual updates before deploying them across a network to ensure the fixes don’t cause problems for other software. Tyler Reguly , associate director of security research and development at Fortra , notes that just 26 Microsoft vulnerabilities appeared in the “Known Exploited Vulnerabilities” (KEV) catalog maintained by the U.S. Cybersecurity & Infrastructure Security Agency (CISA) so far this year, and security teams would do well to prioritize patching those 26 vulnerabilities first. “Security leaders should focus on exploitable risk, and ask whether their teams have the clarity, capacity and support to act,” Reguly said. Which vulnerabilities deserve the most scrutiny in your organization? The folks at Cisco Talos have a useful roundup of the more noteworthy flaws that Microsoft fixed today, and of course the SANS Internet Storm Center has a reliable roundup that indexes vulnerabilities by severity, CVE number and affected software.

0 views
./techtipsy 1 months ago

Faithfully reimplementing an obscure Estonian Flash game for modern browsers: GTA õppesõit

Play it here! (desktop browsers only) Or try the “remastered” one! (desktop and mobile) There used to be an Adobe Flash game where the goal was to pass a driving test, with the instructor being ready to berate you whenever you screwed up. It’s virtually unknown outside of Estonia, but I remember playing it as a child, and it was a lot of fun. Sadly, Flash is no longer relevant, and the original website has gone offline a long time ago. For a while, the only way to experience what the game is, was this YouTube video showing its gameplay. Luckily, backups of the original Flash game exist in the Internet Archive , and I also learned that this website hosts it with a solution that translates the original game, albeit with less than stellar results. To preserve a piece of media reliably over a long time period, you need to format shift it. I decided to use a similar idea to preserve this game by putting my responsible vibe coding hat on and turning this into an authentic recreation that runs on modern browsers, including all the tiny details and admittedly horrible key bindings. After all, making old games work on modern browsers is so hot right now. For this, I relied on my homegrown custom sandbox (Podman and a shell script), Claude Code, and Opus 5.5. The workflow was quite simple, with the main goal being to offload as much of the work as possible, and to ensure that the agent can check its work along the way. By the time it was specced and a few clarifying questions covered, it executed it and the end result was playable the first time. On a high level, the process was this: I expected a lot more trouble than that. But no, it just works. Smartphones weren’t a thing back when this game was made, so don’t expect to play the game on those, yet. Performance is horrible though, all the assets are downloaded separately. But don’t you worry, this game is now ✨ remastered! ✨ find every single possible reference and backup/archive of this game online take the existing YouTube video as a reference point in case assets are missing or broken let Claude Code unpack and go through the assets and code let Claude Code play through the actual game on an actual Adobe Flash installation, using prepared scenario scripts put together a spec document read through it myself for confirmation execute on it let Claude Code play through the whole game itself to validate the results in an actual browser play the game myself

0 views
xenodium 1 months ago

agent-shell 0.87 updates

It's October. New month, new agent-shell update. If you missed the last post, have a look at the 0.78 update . While the latest changes are focused primarily on bugfixes and polish, we have a handful of new features too. As usual, this post showcases highlights, but please check out the full list of changes if you're after the nitty-gritty. agent-shell brings your favorite AI agents to Emacs , keeping you at home: familiar buffers and bindings, no terminal emulation. All powered by ACP, the Agent Client Protocol . I introduced just over a year ago, with support for two agents: Claude and Gemini. Today, it speaks to 23. Development hasn't let up either. Improvements and new features land every month. Thank you to all users, contributors, and sponsors. A couple more join the family, bringing it to 23 agents . As usual, they're all reachable via , or go straight to the new ones: With the ability to prompt at any time ( see my last post ), you can queue prompts or steer agents straight from the persistent shell prompt. Animating the prompt ties it all together: it's now obvious at a glance that the agent is busy, and that anything else you submit will queue. Check out for relevant customizations (more on that shortly). Thanks to @cark for the proposal . The header's busy indicator has been animated for some time now. Amongst the existing customizations, could turn it off altogether. Having said that, there's now a middle ground: use static text via . Just set it to a string like so: If you'd like to use smarter logic, you can now set it to a function as follows: takes all the same forms, so the prompt's own animation can also be a list of frames, a static string, or a function. With the new setting (enabled by default), pending prompts are joined (separated by blank lines) and submitted as a single turn. Queued prompts are typically follow-ups to the same instruction, so the agent now sees them together rather than acting on the first before reading the rest. If you prefer the previous behaviour, disable it with: Thank you @Gleek for the proposal . While on the subject of queueing, cancelling now offers to continue with the queue rather than quietly dropping it, and killing a shell now warns you about the pending work you'd lose. and completion used to bundle two things: how to complete, and when to pop up. Turning the popping off lost completion altogether, leaving corfu and company users out. They're now decoupled. The completion functions are always registered, so , corfu and company work either way. Two options decide whether completion pops as you type: for and for . For example, listing files can be slow in a large project, so to only complete on demand while keeps popping: Trailing spaces (and mention quoting) are now only inserted on a finished completion, fixing the stray spaces corfu and company users were seeing. Thanks to @bcc32 for proposing the split and separate and options in #537 , and to @jcubic for filing it and flagging the stray spaces. and ( and ) now move between blocks. Thank you @OSadovy for #876 . Chat mode draws "Me" and "Agent" labels (or rather "Claude", "Codex" etc.). If the current style isn't your jam, now lets you draw them yourself. It's handed an alist with and (either or ), and must return a single-line propertized string. The property is honored, so labels can also be rendered as images. Thanks to @nhojb for the idea. Transcripts now open with YAML frontmatter, including a start timestamp as follows: Thank you @vermiculus for #854 . While on topic, transcripts also got a little sturdier, thanks to @mrcnski 's proposal . now pastes images straight from the system clipboard ( #853 ), no external utilities needed, the same way Org mode handles it. Pasted image previews also survive being queued or steered, thanks to @Gleek for #852 . Codex gained for setting config options at session start, reasoning effort included. For example: Thank you @ianthetechie for #855 . Tool call output can be fairly long. A single chunky line was enough to bog a buffer down. Long tool output lines are now limited ( #844 by @Gleek ), and fallback titles are truncated so they no longer flash chunkily as they stream. File summaries also count distinct files now, so reading the same file three times counts as one file rather than three ( #863 , also by @Gleek ). While we have a handful of new features, the bulk of this release went into fixes. Performance and responsiveness: New shells now show the last few release posts on the welcome screen, so they are a little more discoverable. A few additions for package authors building on . returns non-nil once the handshake, authentication, session and any default options are all done. Until then, subscribe to the new event via ( #860 ). Agent config options are now reachable from elisp rather than the UI alone: agent-shell-gc joins the lot, bringing buffer garbage collection (auto-kill) to . If you peeked at the commit logs for the period, you'll see it's been a busy few weeks. Since the last post, 125 commits shipped, 33 issues have been closed and 15 pull requests merged. As of this writing, the backlog sits at 4 open issues and 6 open PRs (versus 16 and 6 last time around). Zooming out a little, here's how the backlog has tracked: As usual, this chart was generated using the skill shared in my emacs-skills repo. Four open issues is the lowest it's been since the project's first week, which I'm pleased about. All of this requires daily attention. Tokens keep your agents running. Sponsors keep running. is built and maintained by me, an indie dev, while the tools it competes with have well-funded teams behind them. Vendor-neutral tooling matters more than ever. Using at work? Ask your employer to sponsor too. Companies can contribute at a scale individuals can't. Thank you to all contributors for these improvements! stands on acp.el to speak ACP and shell-maker for its shell foundations, so fixes landing there reach you just the same: As of this writing, we're 88% of the way to the 150 monthly sponsors goal . If is part of your daily workflow, please consider becoming a monthly sponsor (or ask your employer to). Not in a position to sponsor? A GitHub star helps with exposure and brings in new users. Junie (JetBrains), #847 by @thanhvg . Start it with . OpenClaw , #878 by @jtmoulia . Start it with . Emphasis no longer swallows asterisks inside inline code ( #870 ). Bold around inline code now renders, as does a trailing quote or header line. Streamed tables keep their alignment and markup ( #868 ). no longer mangles bullets carrying bold text ( #867 ). Expanding or collapsing an item inside a group now works mid-stream. Chat mode no longer hides notices rendered above the live prompt. The graphical header no longer gets cut off when showing cost ( #849 ). Terminal hyperlinks (osc-8) are rendered ( #850 by @gnufied ). Severe cursor lag from large collapsed tool outputs is gone ( #839 ). Bare references are now found in linear time ( #848 by @catern ), and failed searches leave point where it was. Heartbeat ticks skip redrawing when the busy frames haven't changed. In acp.el , draining the agent's output is now bounded in how long it holds the main thread ( #32 by @moyotar ), so a chatty agent no longer makes Emacs feel laggy. In shell-maker , launching a shell with enabled no longer hangs Emacs ( #842 ). Forking resumes the session, and keeps the fork rather than falling back to another session if that resume fails ( #871 ). Grouped config options are handled ( #851 ), and a missing config change event is now emitted ( #864 ). is preserved when displaying asynchronously ( #846 by @bcc32 ), and docstring command binding specifiers are fixed ( #845 , also by @bcc32 ). Shell command output now runs in the shell's directory via its file handler ( #879 by @junyi-hou ), which matters for TRAMP users. The README gained guidance for agents hanging at "Loading…" over TRAMP ( #872 ), which turned out to be about and direct async processes rather than a bug. returns when the shell last saw a submitted prompt or an incoming notification ( #856 ), handy for idle tracking. writes the session's ACP traffic to a file and reveals it in , simplifying the bug-filing process. #797 : Render ACP elicitation forms ( @OSadovy ) #844 : Limit long tool output lines ( @Gleek ) #845 : Fix docstring command binding specifiers ( @bcc32 ) #846 : Preserve when displaying asynchronously ( @bcc32 ) #847 : Add Junie ( @thanhvg ) #848 : Find bare path:line references in linear time ( @catern ) #850 : Add support for rendering browse-url-data with osc-8 sequences ( @gnufied ) #852 : Preserve pasted image previews in queued and steered prompts ( @Gleek ) #854 : Emit parse-able YAML frontmatter for transcripts ( @vermiculus ) #855 : Add tunable for default Codex config options ( @ianthetechie ) #862 : Mention agent-shell-gc package in the README ( @izeigerman ) #863 : Count distinct files in read, edit, and delete summaries ( @Gleek ) #876 : Move by blocks with beginning-of-defun and end-of-defun ( @OSadovy ) #878 : Add OpenClaw agent support ( @jtmoulia ) #879 : Run command output in shell directory via file handler ( @junyi-hou ) acp.el #32 : Bound how long a single drain holds the main thread ( @moyotar ) shell-maker #46 : Fix byte-compile warnings, runtime cl-lib, defvar ordering and lazy-org declarations ( @tothedarktowercame ) shell-maker #48 : Quote mode-map before splicing into eval'd define-derived-mode ( @necaris )

0 views
Farid Zakaria 1 months ago

Nix wrote half of my debugger

A few days ago I wrote about Rewind VM , a deterministic VM where every run of a Nix build is a pure function of its inputs, thread schedule included! I have been using it to find, reproduce and solve numerous race conditions in Nix builds, but it’s been making me feel a little crazy . What is this superpower, and why is nobody else using it? The tool has quickly grown a source panel, stack frames, bookmarks, a “Compare” tab, a lot more gdb support, thread lanes, which show who held the CPU at every step, and “Check from here”, which helps find the exact step where a race condition happens. I went into each new feature thinking it would be a big code-lift but I kept running into the same thing: the hard part of each feature was already done, and Nix had done it. A debugger for instance, needs the exact inputs of the program, its debug symbols, its sources, the sources of every library under it, and a way for someone else to get all of that on their machine. That’s exactly what a derivation is, and Nix makes that easy. A classic simple example of a race condition is two threads depositing into one bank account. Each deposit reads the balance, writes a line to the ledger, then stores the balance plus the deposit. If one teller runs between the other’s read and store, it writes a stale balance over the other’s deposits. 💥 A teller that runs between the other’s read and store writes a stale balance over the other’s deposits. 1 teller 1 balance teller 2 read 150 read 150 store 200 store 150 + 10 160 teller 1's last deposit is gone Rewind’s VM has one CPU, so its first run passes too. runs the build again under perturbed schedules, each asking the guest kernel to reschedule at different steps, and narrows the first failure down to one step: Running this check on my laptop took 11 seconds. The two runs are the same machine, exit for exit, until step 3237, where only the failing one gets a reschedule. The argument to is a derivation and can be a flake reference. The beauty of Nix is that it knows the inputs of a derivation, so that’s all we need to make sure the run is reproducible. The derivation’s inputs are the source, the compiler, the libraries, the kernel, and the VM’s configuration realises the derivation’s inputs, packs the closure into a read-only erofs image, and boots the VM on it. The run’s id is a hash of its inputs, the way a store path is, and prints the command that makes it again: When the build succeeds, the guest reports each output’s NAR hash, and checks it against the host’s copy and against every binary cache Nix substitutes from, by fetching only the : This helps us validate that the build within the VM is the same as the build on my laptop, and that the VM’s run is reproducible by Nix. Debugging code is much simpler when you are looking at the source. A new panel in the Rewind app or in the terminal shows the source of the program at the playhead, and the stack frames that called it. The debugger needs to know where the sources are, and Nix gives us that for free too. nixpkgs builds the packages with , and the debug info is cached on cache.nixos.org as a output. We can leverage debuginfod to fetch the debug info and the sources by build ID, so we can see the source of any binary in the VM, including the Linux kernel! 😲 Sometimes though, the source is not enough, and we need to see the state of the program. opens gdb on a fork of the run at the playhead, with every thread of the process. The debugger can set breakpoints, watchpoints, and inspect memory, registers and variables. At step 3249, just before teller 2 gets the CPU back, we can watch the variable and continue until it changes. Nothing gdb does changes the recording, and we can rewind to the same step and fork again, or fork at any other step, and gdb will see the same state. If gdb is not enough, opens a shell in the VM at a step with any package from nixpkgs on its . It is one more closure packed into one more image. Rewind makes it very easy to compare two runs. The Compare tab in the app, or in the terminal, shows the last shared events of both runs, and the first event that differs. The Compare tab puts both runs’ events side by side from just before they part, with what differs marked. Teller 2 starts from 150 in the failing run and from 200 in the passing one: Rewind’s VM has one CPU, so at any step exactly one thread is running. A race is a question of order: which thread ran when. The trace does not answer that directly. It records what threads did, a write, an open, a fork, an exit, a signal, but not who was running in the gaps between those events. Rewind can fill in the gaps without recording anything new. Every run replays exactly, so it can walk any stretch of a run one step at a time and, at each step, ask the guest kernel which thread is on the CPU. In the failing run, teller 1 (Thread 140) is interrupted at step 3238, halfway through a deposit: it has read the balance but not stored it. Teller 2 (Thread 141) gets the CPU for a single step, 3239, long enough to read the balance, and then teller 1 gets it back and finishes. 2 Finding one bad interleaving raises the next question: how likely is it? Is the passing run the normal case, or did it get lucky? normally answers that by building the whole derivation again under many schedules. With , it starts from a run you already have instead, at any step you pick_. It forks the run there once per schedule, each fork taking a different order of threads from that step on, and counts how many end differently. Everything before the step stays exactly as it was. We can apply this technique to the bank example, starting from the step where the two runs diverged, 3,221. When we run 16 schedules from there, all 16 lose money 3 : We can do the same thing from the Rewind App with “Check from here” in the context menu of the playhead. It forks the run at the playhead and runs each fork under a different schedule, counting how many end differently. bookmarks the playhead’s step with a note. Bookmarks are kept with the run, and they travel in its export, so the person I hand the run to opens it with my notes on the timeline: Each one is a derivation in the flake, with one bug and one fix: Most of the hard work of a debugger is already done by Nix. Rewind adds a little more, but the rest is already there: the inputs, the sources, the debug symbols, and a way for someone else to get all of that on their machine. When you start with something hermetic like a Nix derivation, you can get a debugger for free. On my 16-core laptop, lost money in 396 of 1,000 runs. Pinned to a single core with , it lost money in none of 1,000: one core alone rarely switches threads in the middle of a deposit, which is why Rewind perturbs the schedule.  ↩ It is a little hard to see since the event from Teller 2 is tucked underneath the Orange bar.  ↩ Schedule 0 is the run itself, which passed. Every other line is a fork, and is failing because the balance came up short.  ↩ read 150 read 150 store 200 store 150 + 10 160 teller 1's last deposit is gone Rewind’s VM has one CPU, so its first run passes too. runs the build again under perturbed schedules, each asking the guest kernel to reschedule at different steps, and narrows the first failure down to one step: Running this check on my laptop took 11 seconds. The two runs are the same machine, exit for exit, until step 3237, where only the failing one gets a reschedule. Free thing one: the inputs The argument to is a derivation and can be a flake reference. The beauty of Nix is that it knows the inputs of a derivation, so that’s all we need to make sure the run is reproducible. The derivation’s inputs are the source, the compiler, the libraries, the kernel, and the VM’s configuration realises the derivation’s inputs, packs the closure into a read-only erofs image, and boots the VM on it. The run’s id is a hash of its inputs, the way a store path is, and prints the command that makes it again: When the build succeeds, the guest reports each output’s NAR hash, and checks it against the host’s copy and against every binary cache Nix substitutes from, by fetching only the : This helps us validate that the build within the VM is the same as the build on my laptop, and that the VM’s run is reproducible by Nix. Free thing two: every symbol and every source Debugging code is much simpler when you are looking at the source. A new panel in the Rewind app or in the terminal shows the source of the program at the playhead, and the stack frames that called it. The debugger needs to know where the sources are, and Nix gives us that for free too. nixpkgs builds the packages with , and the debug info is cached on cache.nixos.org as a output. We can leverage debuginfod to fetch the debug info and the sources by build ID, so we can see the source of any binary in the VM, including the Linux kernel! 😲 gdb, on a fork of any step Sometimes though, the source is not enough, and we need to see the state of the program. opens gdb on a fork of the run at the playhead, with every thread of the process. The debugger can set breakpoints, watchpoints, and inspect memory, registers and variables. At step 3249, just before teller 2 gets the CPU back, we can watch the variable and continue until it changes. Nothing gdb does changes the recording, and we can rewind to the same step and fork again, or fork at any other step, and gdb will see the same state. If gdb is not enough, opens a shell in the VM at a step with any package from nixpkgs on its . It is one more closure packed into one more image. Compare two runs Rewind makes it very easy to compare two runs. The Compare tab in the app, or in the terminal, shows the last shared events of both runs, and the first event that differs. The Compare tab puts both runs’ events side by side from just before they part, with what differs marked. Teller 2 starts from 150 in the failing run and from 200 in the passing one: Who had the CPU Rewind’s VM has one CPU, so at any step exactly one thread is running. A race is a question of order: which thread ran when. The trace does not answer that directly. It records what threads did, a write, an open, a fork, an exit, a signal, but not who was running in the gaps between those events. Rewind can fill in the gaps without recording anything new. Every run replays exactly, so it can walk any stretch of a run one step at a time and, at each step, ask the guest kernel which thread is on the CPU. In the failing run, teller 1 (Thread 140) is interrupted at step 3238, halfway through a deposit: it has read the balance but not stored it. Teller 2 (Thread 141) gets the CPU for a single step, 3239, long enough to read the balance, and then teller 1 gets it back and finishes. 2 Check from here Finding one bad interleaving raises the next question: how likely is it? Is the passing run the normal case, or did it get lucky? normally answers that by building the whole derivation again under many schedules. With , it starts from a run you already have instead, at any step you pick_. It forks the run there once per schedule, each fork taking a different order of threads from that step on, and counts how many end differently. Everything before the step stays exactly as it was. We can apply this technique to the bank example, starting from the step where the two runs diverged, 3,221. When we run 16 schedules from there, all 16 lose money 3 : We can do the same thing from the Rewind App with “Check from here” in the context menu of the playhead. It forks the run at the playhead and runs each fork under a different schedule, counting how many end differently. Bookmarks bookmarks the playhead’s step with a note. Bookmarks are kept with the run, and they travel in its export, so the person I hand the run to opens it with my notes on the timeline: Other examples to try Each one is a derivation in the flake, with one bug and one fix: : the deadlock from the last post. : the lost update above. : a SIGCHLD that arrives between a flag check and , so the parent sleeps until ’s ten second timeout kills it. : one process rewrites a config file in place while another rereads it. On many cores it fails nearly every time; on one CPU only some schedules land the reader between the truncate and the last write. On my 16-core laptop, lost money in 396 of 1,000 runs. Pinned to a single core with , it lost money in none of 1,000: one core alone rarely switches threads in the middle of a deposit, which is why Rewind perturbs the schedule.  ↩ It is a little hard to see since the event from Teller 2 is tucked underneath the Orange bar.  ↩ Schedule 0 is the run itself, which passed. Every other line is a fork, and is failing because the balance came up short.  ↩

0 views
Farid Zakaria 1 months ago

Rewind VM: a flaky build you only catch once

If a test fails on CI and nobody can reproduce it, did it really fail? 🧘 Nix gives me a build that is a function of its inputs via the extensional model. The same derivation, produces the same store path, and if I am lucky, the same bytes. What Nix does not give me is the same run . 1 A test suite with a race in it may pass on my laptop, fail once on CI, and when I rebuild it to look, it passes again. If you have experienced bugs like this, you know that it can be frustrating. You are effectively at times trying to find the needle in the haystack . I wrote recently that the Nix sandbox is a hidden input to a derivation. The same is true of the thread schedule. The order the kernel happens to run your processes in decides whether some builds pass, and nothing within the derivation records it. These are the hidden inputs to a build that can make it flaky. Are we left to hoping that we will find the needle in the haystack? Or is there a way to make the run a function of its inputs too? I built Rewind VM to make the schedule an input too. It runs a Nix build, a test suite or any Linux command inside a KVM virtual machine whose every run is a function of its inputs. The same inputs give the same run, at the same steps, every time . You can replay a failure, scrub through it, read any file as it was at any point, and fork it under a different thread interleaving. ✨ Confused? Yes it sounds like magic. The best way to explain it is with short demo. Let’s investigate the dining philosophers problem. The problem is that the five philosophers sit at a round table with a fork between each of them. A philosopher needs both forks beside them to eat. A philosopher may pick up one fork at a time. 2 f0 f1 f2 f3 f4 P0 eats P1 eats P2 eats P3 eats P4 eats five philosophers, five forks P0 picks up f0 P0 picks up f1 and eats P0 puts both down P2 picks up f2 P2 picks up f3 and eats P2 puts both down everyone reaches for the left fork each waits on a neighbor's fork nobody can ever eat: deadlock The philosophers take turns, until all five pick up their left fork at once. If all five pick up their left fork before any of them reaches for a right one, every fork is taken and every philosopher waits on a neighbor who is also waiting. Deadlock . 3 On my laptop 14 of 100 rebuilds deadlocked. 💣 builds the same derivation the way the Nix sandbox would, inside the deterministic VM. Oh darn, it passed! That means it will pass forever right? Not quite. The VM is deterministic, but the guest kernel’s scheduler is not. It can reschedule threads at different points in the program, and that can change the outcome. To find the other interleavings, runs the build again under perturbed schedules , we effectively ask the guest kernel to reschedule at different steps which causes a different sequence of events. runs one VM per core by default and stops after the first batch of schedules where the exit code differs. Note A failing schedule on its own is not that super helpful. Schedule 1 which had deadlocked likely perturbs every step from the start of the build to the end, and most of those perturbations have nothing to do with the deadlock. To help with this, narrows it: it shrinks the window of steps the schedule may perturb, first pulling in the end and then the start, reruns the build for each candidate window, and keeps the smallest one that still deadlocks. For our deadlock problem, it might be easier to see the last few lines of the log and see that all five philosophers have picked up their left fork and are waiting for the right one. We can also inspect the events, which are the same as the log but with timestamps and thread IDs. What if I’m not familiar with the VM? Can we look around? Yes! drops you into a shell inside the VM at any step, in a process’s working directory, with the build’s environment, while everything else in the VM stays stopped. We can use to bring gdb into that shell, and gdb can attach to the stuck process. 4 All five philosophers are on line 27, waiting for their second fork. f0 f1 f2 f3 f4 P0 P1 P2 P3 P4 left fork first every wait is on a held fork: a ring , and each work on a “throwaway” fork of the run at a step, so nothing they do changes the recording. You can use to do a “real” fork: it branches a run at a step under another schedule. A recording does not have to stay on the machine that made it. packs a run into a single file, with the VM’s kernel, its input image and the keyframes, so another machine with the same CPU vendor can replay it. 5 You are no longer beholden to a random flake on CI. Run the tests under on a CI machine with KVM, upload the failing run’s as a build artifact, and you can reproduce the bug perfectly on your machine. How do we fix the deadlock? We number the forks and always pick up the lower numbered one first. The last Philosopher now reaches for fork 0 before fork 4, so the waits can never cause a deadlock. f0 f1 f2 f3 f4 P0 P1 P2 P3 eats P4 lower numbered fork first P4 holds nothing, so f4 stays free We can then run to test the fix. Before the fix, 9 of the same 64 schedules deadlocked. Rewind VM includes some tutorials with more examples of using to find and fix bugs if you want to explore further. The VM has a single vCPU on stock KVM, so guest code runs on the real CPU at close to native speed. 6 What breaks determinism in a normal VM is everything that reaches the guest from outside its instruction stream: timer interrupts, clocks, random numbers, I/O completions, and any other event Rewind removes each of those or replaces it with a value it controls. Keeping account of every event and the step it happened at, it can replay the same run. If you squint, a run is a derivation. Its inputs are the kernel, the initramfs, a root filesystem (a Nix closure packed into a read-only image), the command, a seed and a schedule. Change any of them and you get a different run. Change none of them and you get the same one. The command is open source under the MIT license. 7 There is also a desktop app that gives a friendlier view of a recorded run. You can drag the playhead, view the build log, the process tree and the files at any event. “Open shell” and “Attach gdb” open a terminal pane on a fork at the playhead. I pointed Rewind at some tools I use every day to see what we can find. Each of these is reported upstream with a fix. On NixOS there is a module: If you have a test that fails on CI once a week, I would like to hear whether Rewind catches it and helped you debug it. Don’t just add a and paper over your concurrecy failures anymore, replay them. 🔁 A run is the sequence of events that happen in a process to produce a result. A build is a run of a derivation.  ↩ The world is a metaphor for the thread scheduler. Each philosopher is a thread and each fork a mutex.  ↩ The program stops making progress and never exits, so the check phase runs it under , which kills it and exits with status 124.  ↩ There is actually native support for gdb in the VM already. You can also use to bring in any other tool you want to use.  ↩ Without , writes only the run’s trace, its events and output, and leaves out the kernel, the input image and the keyframes. The file is much smaller and enough to read the run with and . It can’t be replayed or forked, though, so , and need the full export.  ↩ GNU hello build from nixpkgs takes 11.7 s in the VM vs. 14.3 s without it on the same laptop.  ↩ The guest kernel patch is GPL-2.0 alongside Linux.  ↩ The NixOS module can do it automatically for you and without the setting Rewind falls back to a coarser clock.  ↩ f0 f1 f2 f3 f4 P0 eats P1 eats P2 eats P3 eats P4 eats five philosophers, five forks P0 picks up f0 P0 picks up f1 and eats P0 puts both down P2 picks up f2 P2 picks up f3 and eats P2 puts both down everyone reaches for the left fork each waits on a neighbor's fork nobody can ever eat: deadlock The philosophers take turns, until all five pick up their left fork at once. If all five pick up their left fork before any of them reaches for a right one, every fork is taken and every philosopher waits on a neighbor who is also waiting. Deadlock . 3 On my laptop 14 of 100 rebuilds deadlocked. 💣 builds the same derivation the way the Nix sandbox would, inside the deterministic VM. Oh darn, it passed! That means it will pass forever right? Not quite. The VM is deterministic, but the guest kernel’s scheduler is not. It can reschedule threads at different points in the program, and that can change the outcome. To find the other interleavings, runs the build again under perturbed schedules , we effectively ask the guest kernel to reschedule at different steps which causes a different sequence of events. runs one VM per core by default and stops after the first batch of schedules where the exit code differs. Note A failing schedule on its own is not that super helpful. Schedule 1 which had deadlocked likely perturbs every step from the start of the build to the end, and most of those perturbations have nothing to do with the deadlock. To help with this, narrows it: it shrinks the window of steps the schedule may perturb, first pulling in the end and then the start, reruns the build for each candidate window, and keeps the smallest one that still deadlocks. For our deadlock problem, it might be easier to see the last few lines of the log and see that all five philosophers have picked up their left fork and are waiting for the right one. We can also inspect the events, which are the same as the log but with timestamps and thread IDs. What if I’m not familiar with the VM? Can we look around? Yes! drops you into a shell inside the VM at any step, in a process’s working directory, with the build’s environment, while everything else in the VM stays stopped. We can use to bring gdb into that shell, and gdb can attach to the stuck process. 4 All five philosophers are on line 27, waiting for their second fork. f0 f1 f2 f3 f4 P0 P1 P2 P3 P4 left fork first every wait is on a held fork: a ring , and each work on a “throwaway” fork of the run at a step, so nothing they do changes the recording. You can use to do a “real” fork: it branches a run at a step under another schedule. A recording does not have to stay on the machine that made it. packs a run into a single file, with the VM’s kernel, its input image and the keyframes, so another machine with the same CPU vendor can replay it. 5 You are no longer beholden to a random flake on CI. Run the tests under on a CI machine with KVM, upload the failing run’s as a build artifact, and you can reproduce the bug perfectly on your machine. How do we fix the deadlock? We number the forks and always pick up the lower numbered one first. The last Philosopher now reaches for fork 0 before fork 4, so the waits can never cause a deadlock. f0 f1 f2 f3 f4 P0 P1 P2 P3 eats P4 lower numbered fork first P4 holds nothing, so f4 stays free We can then run to test the fix. Before the fix, 9 of the same 64 schedules deadlocked. Rewind VM includes some tutorials with more examples of using to find and fix bugs if you want to explore further. What is Rewind VM? The VM has a single vCPU on stock KVM, so guest code runs on the real CPU at close to native speed. 6 What breaks determinism in a normal VM is everything that reaches the guest from outside its instruction stream: timer interrupts, clocks, random numbers, I/O completions, and any other event Rewind removes each of those or replaces it with a value it controls. Keeping account of every event and the step it happened at, it can replay the same run. If you squint, a run is a derivation. Its inputs are the kernel, the initramfs, a root filesystem (a Nix closure packed into a read-only image), the command, a seed and a schedule. Change any of them and you get a different run. Change none of them and you get the same one. The command is open source under the MIT license. 7 There is also a desktop app that gives a friendlier view of a recorded run. You can drag the playhead, view the build log, the process tree and the files at any event. “Open shell” and “Attach gdb” open a terminal pane on a fork at the playhead. Footguns One vCPU. Threads interleave but never run in parallel, so races that need two cores at once are out of reach. No preemption between system calls. A thread spinning on a flag without yielding stalls the VM. AMD needs once per boot for the exact clock. 8 A run replays only on the CPU vendor it was made on , AMD from Zen 2 on. No network besides loopback, and x86_64 Linux hosts with KVM only. Nix : dies of when exits between two writes. It never failed in 20,000 runs on my laptop and failed on the first run in Rewind. #16546 , fixed by #16547 ( case study ). Nix : several processes creating a new store at once fail with “database is busy”, as seen on Hydra. #15987 , fixed by #16554 . nixd : formatter output over 64 KiB hangs the language server. #899 , fixed by #900 . jujutsu : three tests fail about half the time on tmpfs, because operations ending in the same millisecond are ordered by a random id. #10306 , fixed by #10307 . A run is the sequence of events that happen in a process to produce a result. A build is a run of a derivation.  ↩ The world is a metaphor for the thread scheduler. Each philosopher is a thread and each fork a mutex.  ↩ The program stops making progress and never exits, so the check phase runs it under , which kills it and exits with status 124.  ↩ There is actually native support for gdb in the VM already. You can also use to bring in any other tool you want to use.  ↩ Without , writes only the run’s trace, its events and output, and leaves out the kernel, the input image and the keyframes. The file is much smaller and enough to read the run with and . It can’t be replayed or forked, though, so , and need the full export.  ↩ GNU hello build from nixpkgs takes 11.7 s in the VM vs. 14.3 s without it on the same laptop.  ↩ The guest kernel patch is GPL-2.0 alongside Linux.  ↩ The NixOS module can do it automatically for you and without the setting Rewind falls back to a coarser clock.  ↩

0 views
Brain Baking 1 months ago

Favourites of September 2026

The calendar claims it’s October already but the temperatures are still in denial. I can’t remember ever experiencing the start of this month that warm. It’s getting scary! See what I did there? Because of October? Spooky month? Scary? No? Worth a shot. What happened in September? More letter writing! The snail mail project is going well. I keep track of the amount of outbound letters: the grand total for the last two months is 20 handwritten letters. If you’d like to chime in, please let me know so we can become pen pals! More than 50% of these offline conversations fizzle out after one or two letters so it’s only the die-hards that are willing to invest some time that get to see the best I’ve got. Previous month: August 2026 . Contrary to the summary of August that listed two board games, I have finally picked up video gaming again after a summer holiday hiatus—which in case of a lecturer is two months. Yup. Come join us! I also started (re)playing some older Castlevania games in anticipation of Belmont’s Curse . The Telwynium Book 1-2-3 is an episodic eighties Sierra-on-line inspired high fantasy game crafted by the same person that gifted us the The Drifter experience. They’re free on and will be bundled as one big adventure when the final episode releases somewhere in 2027. I enjoyed playing through them but there’s nothing especially remarkable here. Castlevania: Rondo of Blood does not need an introduction. When it comes to the release window and the platform it was released on, is the black sheep of the ‘Vania family. Luckily, it got a remaster on the PSP although I’m not a fan of those graphics. Review to follow soon. The venerable Jeremy Parish recently worked through Rondo as part of his Turbo Works Gaiden 01 . If you’re interested in the weird history of this game, I recommend you watch his video instead of reading my crappy review: Castlevania: Dracula’s Kiss , also known as Dracula X in the US, is a “port” (although not really) of Rondo of Blood for the SNES. It’s… not good. The “NES Hard (TM)” part here borders to the unfair, the level design is bland and the best parts of the original didn’t make it to Nintendo’s console. Castlevania: Bloodlines is a very good 2D action game that feels a tad different—perhaps mostly because you’re technically playing it on SEGA’s MegaDrive? It also released a year before Vampire’s Kiss here in Europe. The soundtrack took the obvious hit but is still surprisingly catchy. I started playing Eastward as a break from ‘Vanias. The pixel art and music is amazing! And so is the first chapter but then it suddenly changes pace. The endless blabbering that even the “skip dialogue” button can’t fully fast-forward is a bit painful. I’m 8 hours in at the end of chapter 4. I still want to know where this postapocalyptic strange tale is going; but wow this game has pacing issues… Related topics: / metapost / By Wouter Groeneveld on 2 October 2026.  Reply via email . Speaking of Rondo of Blood , I liked Indie Gamer Chick’s review and analysis of the game. This one’s from 2019 but I didn’t know about it yet: Piers Cawley ran a micro bakery on Emacs and PostgreSQL ! Lyteforce Games writes about Combolands , an indie game that he summarises as “ Balatro with buildings ”. I have yet to check it out. The Ruby/Rails world has a big problem: DHH. What to do when your favourite programming language has a fascist problem? I feel for every Rails fan. Please stop the ridiculous Omarchy investments ! The list of fashware keeps on growing and growing. The amount of people I know—including myself—truly being excited about software development keeps on shrinking and shrinking. See also Chad’s I am retiring from tech to live offline . Perhaps Chad wants to write me a letter. You know, using a thing called a pen that emits not HTTP return codes but ink? Nick also writes about the end of a craft . I think you can see this one coming. More AI drama in the KDE world as explained by Nate. Not a blog but a very cool online fountain pen catalogue by George Starcher. Notchoc rebooted their blog and started using Makko . It’s always interesting to see new small tools like these pop up. I don’t feel the need to change my setup just yet. Jason Murphy talks us through a pen nib swap: switching one architect grind for the other . Toni writes something bang-on: having kids changes everything . I really liked Paul Taylor’s morning routine checklist system that leveraged Alfred to the max. Did you know that freeing up memory in C/C++ by calling does not necessarily free memory? Daniel Lemire explains why . Lee Reamsnyder writes about friendship and thanksgiving aptly calling it friendsgiving memories. In case you need to quickly look up a Race for the Galaxy card: use the RFTGPics service . Tourist World for the win. I had to jump through a few more hoops than usual to get SDKMan to work with the Fish shell .

0 views
Jason Scheirer 1 months ago

A Revival of Sorts: Where I Wound up With my iPod Classic 7th Gen

I’ve been using my iPod classic as my sole music player all summer now. The replaced screen, battery, storage, and front shell are all steady. I’ve found myself on an alternate build of Rockbox called Rockpod ; the main thing I like about it is very superficial: it changes the theme colors based on the playing track’s album art. It also claims other features that probably matter like being flash-aware so it treats flash storage like flash and not like spinning metal. However, the firmware also chokes on MP3s that are not 44kbps. So I have to re-encode everything that isn’t that bitrate. So now I have a system that works: I’m not a huge fan of LLMs, but they can reduce toil in some cases. OpenCode was running a free trial of Ox Alpha one long weekend so I used the free tokens to help me shape my itch-scratch tool: . I use the script to see what files are missing from the iPod, re-encodes them as needed, and checks Musicbrainz for missing album art. It can also update the stock firmware’s itunesdb, which was a nice to have when the tokens were free but I don’t use much. In all, this piece of 2005 technology still feels good to use in 2026 because everything in 2026 sucks so badly . Reboot the iPod in stock firmware for disk use (it randomly trips on its feet and stops working when you copy lots of files) Treat the music library not as a synced copy of my core music library but a transformed copy – the Rhythmbox library is the point of truth and the iPod data is an adaptation of it that plays on the iPod.

0 views
xenodium 1 months ago

agent-shell 0.78 updates

Another month, another agent-shell update. If you missed the last post, have a look at the 0.73 update . As usual, this post showcases highlights, but please check out the full list of changes if you're after the nitty-gritty. agent-shell is a native Emacs mode to interact with AI agents powered by ACP ( Agent Client Protocol ). Two agents join the family, available as usual via , or explicitly as follows: Likely the most impactful feature in the release. It's highly discoverable and plenty useful, so I'm expecting a fair amount of uptake. A typical shell experience offers a prompt. Users type and submit their commands and wait for the command to finish before the shell prompt is offered again. Deriving from , was no different. That is, until now. As of v0.78, offers a writeable prompt at the end of the buffer at all times. Submit, and the prompt comes right back while the agent is busy handling the turn. Type and submit again and will automatically queue your request if necessary. While queueing itself isn't a new feature, the shell prompt queueing route offers a freebie in terms of cognitive load. Submit prompts as you used to (via binding), and let decide whether to handle now or queue for later. The persistent prompt is enabled by default via . If this isn't your cup of tea, it can be easily disabled with: The viewport's compose buffer is there either way, and submitting from it mid-turn routes through exactly the same logic. As of this release, can also steer turns (provided the agent supports the ACP extension). Steering enables you to course correct in-flight prompts without cancelling or waiting for the prompt processing to finish. As of today, I'm aware of and handling ACP steering, but please reach out if you know of others. Steering an in-flight turn via offers a similar experience to the existing . That is, prompting the user for text in the minibuffer. Having said that, we now have a new and shiny persistent prompt, and as we now know, the binding automatically queues if needed. From the same prompt you can now also steer by submitting via the binding. Huge thanks to @OSadovy , who took on the legwork for steering in #777 . With and respectively queueing and steering as needed, the default behaviour is configurable via (queues by default) while the (or ) route uses (steers by default). Both customizations accept a function, so swapping would offer steering and queueing with something like: Both apply wherever a prompt is submitted mid-turn, the shell prompt and the viewport's compose buffer alike. As emacsers, we want all sorts of customizations, so custom functions can be used too, if you'd like something a little different from what's offered. While we could already paste screenshots from the clipboard, we can now drag and drop files from external file managers onto either shell or viewport buffers. Images get a preview, anything else is attached as an link. Thank you @dustinfarris for #825 . While on topic, @dustinfarris fixed file mentions carrying whitespace in paths ( #824 ). After all this time, I had no idea the temporary thumbnail generated by macOS's screenshot utility is draggable, and so you can now drop it straight into your session. Thanks to @dustinfarris for the tip! If you'd like to keep an eye on token cost, headers can now show the session's cumulative cost, right after the context usage indicator. Currently off by default, so opt in with: Keep in mind cost is displayed for agents reporting cost via ACP. Thank you @mrcnski for #834 . folds lots away by default (tool calls, thinking, groups), requiring additional help if we want closer integration. Thanks to @mrcnski 's contribution in #832 , folded fragments now respect . Searching also folds back what it expanded once you're done, groups included. Also thanks to @Gleek for #827 : expanding a fragment no longer clobbers 's match data. Slash command completion is now offered more idiomatically across all three surfaces (shell prompt, viewport compose buffer, minibuffer): it only kicks in when whitespace alone precedes the . Thank you @izeigerman for #810 . File completion after is unchanged. We now have , which grabs the most recent output regardless of point location, so you can pull the latest response from anywhere in buffer. Links got a handful of fixes/improvements worth mentioning: on next/previous page now moves N interactions instead of one, and a negative prefix pages the other way. Moving forward past the newest interaction restores a parked compose snapshot, so does what pressing the key N times does, rather than stopping short of your draft. Thank you @liaowang11 for #813 . Following on from last month's table work, plain data rows now get a face of their own, and every table face inherits from one base face. If you'd like to restyle tables wholesale, you now have a single place to do it. Thank you @mrcnski for #822 . returns the current ACP session ID. On that note, there's also for when you just want it in your kill ring. was a bit narrow, so it's been replaced by , an alist of whatever OpenCode advertises under "Available config options" when starting a new shell: Options are applied in the order listed, and order matters. Thank you @nhojb for #739 . Four more joining the lot: With the new renderer offering a richer Markdown experience for some time now, the deprecated renderer is gone. If you peeked at the commit logs for the period, you'll see it's been another busy month. Since the last post, 153 commits shipped, 32 issues have been closed and 25 pull requests merged. As of this writing, the backlog sits at 16 open issues and 6 open PRs (versus 11 and 5 last time around). Zooming out a little, here's how the backlog has tracked since March: Side note: this chart was generated using the skill shared in my emacs-skills repo. From the graph, it's evident when I became a father , but you can also see I managed to bring things back down, hovering at a fairly stable level since. All of this requires daily attention 👉 hint hint 👈 These days (especially at the workplace), vendor-neutral tooling matters more than ever, and there are a couple of ways to help keep going. Some cost money, others just a click. All are appreciated ;) is built and maintained by me, an indie dev, while the tools it often competes with at the workplace have well-funded teams behind them. Time spent on is time away from other work that pays the bills, so if it's useful to you, please consider sponsoring the project. And if your employer benefits from your use, nudge them to chip in too, they can typically contribute at a scale individuals can't. GitHub stars help with exposure, attracting new users and potential sponsors. Starring agent-shell costs nothing and can potentially help bring in more funding, so if you don't mind a couple of clicks, the project can really use another GitHub star . Thank you to all contributors for these improvements! Liking ? Would like to see it evolve? Consider sponsoring the effort. Antigravity (Google), #795 by @tychoish . Start it with . Qoder CLI , #831 by @unship . Start it with . File references inside spans are now linked ( #781 , #782 , thanks @OSadovy ). Links inside tables are now actionable. Links are now more robust while streaming. Links to local directories now open in . The cursor-sensor hint is no longer misaligned on links. Session lists are now paginated under the hood, requesting available sessions until agents run out ( #809 by @KarimAziev ). If you'd rather cap your session list, takes a positive integer. Restarting shells now preserves window arrangement. agent-shell-org-config : Keep agent, project, and skill definitions in org-roam. agent-shell-permission-transient : A compact Transient interface for responding to queued permission requests. agent-shell-queue : A flexible prompt/shell queue for sessions. agent-shell-queue-transient : A Transient interface for the prompt queue in . #739 : Add opencode model variant customization ( @nhojb ) #772 : Ask about killing the shell only when that is what was asked for ( @OSadovy ) #777 : Steer prompts into the running turn instead of queueing them ( @OSadovy ) #794 : Mark restored prompts with ( @OSadovy ) #795 : Add ( @tychoish ) #796 : Add link ( @tychoish ) #801 : Strip copies in the substring filter, not via yank-handler ( @OSadovy ) #802 : Fix chat prompt indentation ( @nhojb ) #804 : Stop the live prompt flickering on every keystroke ( @alberti42 ) #808 : Fix viewport prompt font-lock face precedence ( @liaowang11 ) #809 : Handle ACP session/list pagination ( @KarimAziev ) #810 : Slash command completion at prompt start ( @izeigerman ) #812 : Display Pi terminal output in agent-shell ( @timfel ) #813 : Add prefix-arg page jumps to viewport paging ( @liaowang11 ) #821 : Check dependencies against the floors ( @alberti42 ) #822 : Give plain table data rows a face ( @mrcnski ) #824 : Quote file mentions whose path holds whitespace ( @dustinfarris ) #825 : Attach files dropped on a shell or viewport buffer ( @dustinfarris ) #827 : Preserve isearch match data when expanding fragments ( @Gleek ) #828 : Add to Related projects ( @lllShamanlll ) #830 : Fix provider icon downloads via LobeHub CDN ( @tjohnman ) #831 : Add Qoder CLI ACP backend ( @unship ) #832 : Respect ( @mrcnski ) #834 : Show session cost in the header ( @mrcnski ) #837 : Add link to README ( @mrcnski )

0 views
Krebs on Security 2 months ago

Data Broker Radaris Loses Domains in Privacy Fight

The consumer data broker Radaris.com has long had a reputation for ignoring requests to remove personal information from its vast empire of people-search services online. That reputation caught up with the company recently in a lawsuit alleging Radaris violated a New Jersey privacy law that provides for hefty fines against data brokers that publish personal information on state law enforcement officials. In the face of repeated stonewalling and prevarication by attorneys for Radaris, the judge in the case ordered that radaris.com and more than a dozen other data broker domains be transferred to the plaintiffs. The radaris.com website, prior to the domain transfer to Atlas. In February 2024, Radaris was sued by Atlas Data Privacy Corp , a company that has been pursuing data brokers alleged to be violating a New Jersey statute called Daniel’s Law . The statute allows state law enforcement officials, government personnel, judges and their families to have their information completely removed from commercial data brokers and people-search services, and provides for fines of $1,000 per violation against companies that ignore removal requests. Less than a month after Atlas sued Radaris, KrebsOnSecurity published a deep dive into the Radaris co-founders — Igor and Dmitry Lubarsky (also spelled Lybarsky) — Russian-born brothers living in Massachusetts who operate a dizzying array of people-search companies as well as a number of Russian language dating services and affiliate programs. Attorneys for the Lubarsky brothers threatened to sue for defamation if the story wasn’t removed and an apology issued. Their attorney asserted that our reporting was wildly inaccurate, and that the true owners of the company were Ukrainians living in Ukraine. The Lubarsky brothers Dmitry or “Dan” (left) and Gary/Igor. KrebsOnSecurity doubled down and showed how the Lubarsky brothers built and operated Radaris and other data broker companies using a fictitious CEO’s name . Our follow-up story noted that Radaris’s attorney — a lawyer with the Boston Law Group named Val Gurvits — admitted his clients had invented the CEO pseudonym “ Gary Norden ,” and that Radaris also had issued multiple press releases over the years that quoted the fake CEO while seeking money from potential investors. Attorneys for Radaris waited until the last minute to appear in court and contest what was all but certain to be a default judgment in favor of the plaintiffs, and then told the court that Atlas had failed to serve the real owners and operators of Radaris and several of its sister data broker companies. Atlas re-filed the lawsuit in June 2025, this time dramatically expanding the number of Radaris family data brokers accused of violating Daniel’s Law. Matt Adkisson , president and CEO of Atlas, said Radaris turned to a tried-and-true playbook: Delaying in court until the last possible minute, and playing shell games with Radaris’s true country of origin and the individuals listed as owners and operators of these sites. “We refer to this period as their island-hopping phase. Privacy policies changed constantly, and new entities kept appearing from places like the Marshall Islands, the British Virgin Islands, and Seychelles,” Adkisson told KrebsOnSecurity. “Behind the scenes, it felt like a shell game. Defense lawyers told the court that certain entities merely operated the domains and were the proper parties to sue. But by the time a judgment neared, those entities would be discarded and new entities would appear. Meanwhile, the lawyers claimed the other entities that actually owned the domains should not be held responsible.” Adkisson said when the defendants updated their terms of service to state that Radaris was suddenly managed by a company in the Marshall Islands, Atlas hired an investigator in that country and soon learned the brand new entity that Radaris claimed was managing the company didn’t even exist yet. Mr. Gurvits stepped forward as Radaris’s attorney in a class action lawsuit the company temporarily lost in 2017 because it never contested the claim in court. When the plaintiffs told the judge they couldn’t collect on the $7.5 million default judgment, the court ordered the domain registry Verisign to transfer the radaris.com domain name to the plaintiffs. Mr. Gurvits appealed that verdict, arguing the lawsuit hadn’t named the actual owners of the Radaris domain name — a Cyprus company called Bitseller Expert Limited  — and thus taking the domain away would be a violation of their due process rights. The judge in the 2017 case ruled in Radaris’ favor — halting the domain transfer — and told the plaintiffs they could refile their complaint. Soon after, the operator of Radaris changed from Bitseller to Andtop Company , an entity  formed  (PDF) in the  Marshall Islands in Oct. 2020. The plaintiffs never re-filed their lawsuit. A mind map of various entities tied to Radaris and the company’s co-founders. Click to enlarge. “That seemed to be their modus operandi,” said Raj Parikh , a partner at PEM Law in New Jersey who handles most of the Daniel’s Law litigation for Atlas. “In the past, they won by attrition. Plaintiffs’ attorneys tired of the procedural games and just gave up. That strategy worked for a decade, and it probably would have worked in this case too, since any financial recovery from foreign actors will be difficult. But we were acutely aware of the threat this website posed to law enforcement officers and other public officials in New Jersey, and decided early on to commit whatever time and resources were necessary to remove that threat.” On August 26, the judge in the New Jersey case found the defendants were given multiple chances to appear and defend the claims against them but had failed to do so. Mr. Gurvits declined to comment on the case, saying it had been assigned to another attorney, a Mr. Victor Worms . In response to questions, Mr. Worms asserted the New Jersey court transferred Radaris.com to Atlas as part of a default judgment against Radaris.com, which is not a legal entity. “We have made a motion to vacate that default judgment on the grounds that it is void since a non-entity has no legal capacity to sue or be sued,” Worms replied. “We also intend to pursue all appropriate appeals because we believe the transfer of Radaris.com amounts to a forfeiture in violation of various constitutional principles.” While radaris.com still comes up prominently in results when searching online for U.S. residents by name, the domain no longer sells detailed personal dossiers on millions of Americans. Its homepage now displays a notice from Atlas, as well as links to our previous reporting on Radaris. Atlas told KrebsOnSecurity that it has obtained more than 10,000 emails and documents in the course of litigation, and that those messages confirm our previous reporting on the owners and operators of Radaris and its myriad companies. Atlas said the emails clearly establish that the nominal legal vehicles — Radaris America, Inc. ; Bitseller Expert Limited ; Digital Orbit Corp ; Core Solutions Group Inc ; Lucky Solutions Inc ; Virtura Corp ; Veripages Inc. ; Nuform Solutions Inc. ; Growth Data Advisors Inc. ; Property Experts, Inc — are all administered by the same three or four people from the same mailboxes, share one bank or payment card set, and are all managed from one virtual office address. “The corpus establishes, with documentary evidence generated independently by banks, payment processors, hosting providers, registrars, software-as-a-service vendors and the operators’ own systems, that radaris.com and at least twenty-five other people-search websites are one operation run by a small Boston-area group whose administrative, financial and technical functions sit on the difive.com mail domain and its successors (centerex.com, scienteco.com, eprofit.com, realmo.com, pub360.com),” reads a summary shared by Atlas. Atlas said the emails show Radaris.com earns approximately $42,000 a month, while Veripages.com earns around $45,000 monthly via its partnership with the Lifetime Value Company , a marketing and advertising firm whose brands include PeopleLooker , PeopleSmart , NumberGuru , and Bumper , a car history site. According to Atlas, the emails also showed the Radaris family of websites earns as much as $25,000 each month from their partnership with Onerep , a company that claims to help people remove their information from people-search sites. In March 2024, KrebsOnSecurity revealed how the Belarusian founder of Onerep had launched and operated dozens of people-search sites over the years and was continuing to operate one of them (Nuwber), effectively spreading the disease and selling the cure. The domain radaris.com now redirects to this notice from Atlas about the court-ordered domain transfer. All told, the New Jersey court has so far transferred 14 domain names from the Radaris family of companies to Atlas. Radaris.com now redirects to a notice of the court-ordered domain transfer. The Radaris family of companies is still potentially facing fines of $1,000 per alleged violation of Daniel’s Law. For the time being, however, Daniel’s Law is facing a constitutional challenge from virtually all of the 150 other consumer data broker firms being sued by Atlas. The data broker industry responded by having at least 70 of the Atlas lawsuits moved to federal court, challenging the New Jersey statute as overly broad and a violation of the First Amendment. The U.S. Court of Appeals for the Third Circuit has not yet issued a decision on the constitutional challenge, but either way the case is widely expected to be appealed all the way to the U.S. Supreme Court. Meanwhile, at least 14 other states have now passed laws modeled after the New Jersey statute, with more states considering similar measures. However, West Virginia’s Daniel’s Law was ruled facially unconstitutional under the First Amendment by a federal district court in August 2025. Justin Sherman is a privacy expert and author of the forthcoming book “The Middlemen,” which examines how the data broker industry powers modern surveillance. Sherman said federal lawmakers have long faced intense lobbying by the technology industry against more restrictive U.S. data privacy laws, but that many powerful industries are now working against passing comprehensive data privacy legislation. “These days at the federal level, add in the intense amount of lobbying against these laws from social media companies, big tech, cryptocurrency firms, and now AI proponents in the mix who claim that limiting their data scraping is somehow going to collapse the whole U.S. economy under Chinese rule,” he said. Sherman said people-search companies will continue to thrive unless and until Congress enacts meaningful consumer privacy and data protection laws that are relevant to life in the 21st century. That’s because virtually all state privacy laws exempt records that might be considered “public” or “government” documents, including voting registries, property filings, marriage certificates, motor vehicle records, criminal records, court documents, death records, professional licenses, bankruptcy filings, and more. At least 25 states have passed or implemented laws requiring age verification for residents seeking to access adult content online, but there is no federal law that limits how the companies that are scanning everyone’s drivers license can use, share or keep the data provided. Had such restrictions been enshrined in law, we may have avoided the recent breach at IDScan.net , which exposed the drivers license information on more than 153 million Americans when the records were briefly turned into a point-and-click identity theft service on the dark web. “The average person can look at Daniel’s Law and have a perfectly normal reaction, which is that everyone should be covered, not just police and judges,” Sherman said. “But we don’t need more wake-up calls. We’ve had eight million wake-up calls already on the need for better privacy laws. The lack of comprehensive federal privacy law is not for a lack of knowledge, and anyone claiming otherwise is either not reading the news or kidding themselves.”

0 views