Posts in Hardware (20 found)
Unsung 2 days ago

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

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

0 views
Jeff Geerling 2 days ago

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

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

0 views
James Stanley 3 days ago

Hacked Unicorn Operation

Lucy (daughter) got a Unicorn-themed Operation game for her birthday. You are meant to remove items from a unicorn with some tweezers without touching the metal parts, if you touch the metal parts it vibrates and shakes around. I have hacked it so that I can remotely trigger the mechanism to make other players lose. I had the idea to do this immediately upon playing the game, the plan was to make Emma (wife) lose every time. I bought the radio off banggood. It is a 4-channel 433 MHz receiver with a keyfob transmitter, very convenient to use and extremely cheap. Today Emma was out for an hour simultaneously with Lucy being out at playgroup, so I had an opportunity to sneakily hack the game. Inside the case it is very simple: The positive battery terminal goes through the switch, then to one side of the motor, then to the metal plates on the front of the game. The negative battery terminal is connected to the tweezers via a small polyfuse. I was surprised that the current for the motor flows through the tweezers, I had kind of assumed that the tweezers would only be used for sensing contact and the real motor current would all be internal. The mod is simply to power the radio receiver via the switched power, and use one of its outputs to switch the motor on. I wired up the radio first and then probed the outputs with the multimeter to check that it was going to work, and I found that the keyfob toggled the outputs, which is not what I want at all. I want it to buzz while I hold down the button and stop when I let go. It turns out this is easy to do, you have to first un-pair by pressing the button on the PCB 8 times in quick succession, then press it just once to select pairing in momentary mode, then press any button on the keyfob. If you press it twice you get pairing in toggle mode, and 3 times for "interlocking" mode, which is toggling but turning one output on also turns all the others off so only one is on at a time. I initially was going to drive the motor with a solid-state relay but it turned out the solid-state relay I had is only good for AC. I gave ChatGPT a list of various transistors I had lying around and it suggested using a "P55NF06L" which is an "N-channel enhancement-mode power MOSFET". Looks like this: Not exactly my finest work but good enough for a prank. We also have a ~500 Ohm resistor on the gate of the MOSFET and a ~5k Ohm pull-down between gate and source. And ChatGPT advised adding a flyback diode across the motor to prevent back-EMF from damaging the MOSFET, probably unnecessary but easy to do. I sellotaped these components down to stop them rattling, put the cover back on, and it worked first try. Satisfied with my work, I put the game back in the box, put it away, and restlessly waited for the family to return home. Upon their return I announced that we should play Unicorn Operation. I admit that this was rather out of the blue, we played it a bit shortly after Lucy's birthday but not during the three weeks it took for my radio to arrive from banggood. This will have aroused some suspicion. Unfortunately, disaster struck. Lucy did not wish to play Unicorn Operation because it's "too tricky". Rare is the battle plan that survives first contact with the enemy. Fortunately, Emma took pity on me and offered to play me 1v1. Jackpot! Emma was my true target anyway. I triggered it on her first turn and totally got away with it. She 100% thought she had accidentally touched the metal. I had a perfect poker face at this point. On her second turn I again triggered it, but I was too greedy, she noticed something was up and asked me to take my hands out of my pockets. I was at this point cackling with glee but I took my hands out of my pockets and didn't admit anything, and we carried on. But on her next turn I tried to secretly slip my hand back under the table and got totally rumbled. All good fun, would have been good if it lasted longer before I got caught. "If it was anyone else I would not have been so suspicious but I know the kind of thing you get up to" "You take games very seriously, but you kept putting your hand in your pocket, seemed too casual" After I explained to Lucy that the button was for cheating she found the concept absolutely hilarious. A good improvement would be to rig up one of the other buttons on the keyfob to make it so it doesn't trigger even if you do touch the metal. That way you can just yank the parts off the Unicorn with impunity and look like a wizard. And obviously you need to trigger it with your feet so that you don't look "too casual".

0 views
Chris Coyier 1 weeks ago

YoloCam S7

Chris Enns shared in the ShopTalk Show Discord last month a review video for the YoloCam S7. It hit me at the right time, so I pulled the trigger. Here’s a short background. I was using my Canon 5D Mark IV with a 50mm prime lens . Kind of a lot of firepower for a webcam. I just had it around because, once in a while, I need to take some really high-quality photos or video. So I figured I’d put it to work on the daily instead of mostly gather dust. I liked the quality of the prime lens, but didn’t love the inability to zoom. I disliked not having my nice camera easily accessible to use for other things. I disliked that I had to pay a monthly fee to unlock 1080p video. I disliked that it required a special mock battery to be persistently plugged in. I disliked the weird HDMI cable it required. I really disliked having to stand up and reach behind my desk to hit the camera button to wake it up. Just enough to keep me from loving the setup. I had also used a Sony ZV1 in the past, which I bought just to be a webcam, and while it was nice quality, I ended up having gripes with it too, and ditched it when it started turning off at awkward times. What struck me about the ZV1 was essentially the price point. An obviously very high-quality device, with a high-but-not-crazy price point. I always thought there should be a webcam in this category that was actually designed to be a webcam, not a repurposed point-and-shoot. That’s exactly what the YoloCam S7 is, so when I saw the review, I thought I’d reward the company for doing exactly what I thought a company should do. The results? It’s mostly great! The quality is very good. I like how the camera body has almost nothing on it except a few ports. I like how the lens is swappable in case I wanna try something else. I like how it wakes up and works whenever I need it. The software has just enough control on it to be useful. I like the automatic face focus and reasonable zoom. There are a few little things I don’t like. I don’t like how you still need two cables coming out of it. They are both USB-C, but one is for power, and one is for connection 🤷‍♀️. I really dislike that the software can’t see the camera most of the time . When I open YoloLiv Compose, there is a 90% chance it can’t see the camera, even though other software that needs the camera uses it fine. I have to unplug it and plug it back in, and even then there’s only a 50% chance it works. When it does work, you can control what you need to, and it persists fine.

0 views
Stratechery 1 weeks ago

Nvidia Earnings; Office Convergence; OS Wars, AI Edition

Nvidia's earnings were boring, and also a statement as to why Jensen Huang probably isn't coming back; then, Microsoft and Anthropic ship dueling operating system updates.

0 views
Jason Tucker 1 weeks ago

Teaching Home Assistant to read my RV generator (without starting it at midnight on accident)

It was late at night and I had a question I couldn't let go of: could the Raspberry Pi running Home Assistant in the RV talk to the generator's auto-start module? Our coach has an AGS (auto generator start) module, the little box that starts the generator when the house batteries get low or the temperature climbs. The only way to talk to it is the manufacturer's phone app over Bluetooth. No integration, no API, nothing in Home Assistant Marketplace, and I later find out why. So I asked Claude (Claude Code, running on my Mac with SSH access to the RV's Home Assistant box) to go look for it. A few hours later I had live generator status on my dashboards, a decoded protocol, and a pretty clear picture of who did what. This post is that picture. I want to be upfront about which parts were me and which parts were the AI, because I think that split is the interesting part. My ask was basically "use Bluetooth on the Home Assistant and see if you can find the AGS." Claude SSHed into the Pi, ran a 20-second scan, and there it was, advertising with a strong signal from inside the coach. It also spotted the OBD dongle and one of my temperature sensors, which was a nice sanity check that the scan was real. Then it stopped and asked before connecting. Its reasoning was that the module might only allow one connection at a time (which would lock out the phone app), and that this is a generator controller, so it wanted my OK before talking to it at all. I said yes. It connected, listed the Bluetooth services, and read the labels on them: a device name, a command channel, firmware updates and pairing. Nothing was written. This is where I nudged things. I pointed Claude at the Android app on the Play Store and said it could decompile it if it wanted to know what we could control. Then, while it was working, I sent over the manufacturer's manuals and firmware page too. Claude downloaded the APK from a mirror, decompiled it with jadx, and found out a few things fast: The firmware page turned out to be a dead end for this project (it's all head-unit firmware, the AGS updates itself through the app), but the AGS manuals were useful context. Claude gave me three options for where the listener should live: an ESP32 running ESPHome near the module, a small Home Assistant add-on, or a script on my Mac. I picked the add-on. Before building anything, it ported the Telink login and encryption from the decompiled Java to Python, line by line, and ran a read-only test from the SSH add-on. It logged in on the first try and status packets started rolling in about once a second: 12.88 volts, manual mode, generator off. Temperature reads zero, which I think means there's no probe connected. Then it packaged it up. The add-on is a couple hundred lines of Python using bleak for Bluetooth and MQTT discovery through the Mosquitto broker I already had, so the entities show up as a proper device in Home Assistant. One detail I liked: it doesn't hold the Bluetooth connection open. It connects once a minute, listens for 10 seconds, and lets go, so the official app on my phone can still connect. The tradeoff is up to a minute of lag, and that's fine for a generator. The first build failed because this version of the Supervisor no longer passes a base image into local add-on builds. Claude read the Supervisor log, switched to a pinned Python base image, and the second build worked. That's the kind of thing that would have cost me 30 minutes of googling. With the entities in place, I asked for everything on the RV Home dashboard plus a new RV Generator dashboard. Claude backed up every dashboard file first, then added a Generator section to RV Home, built the new dashboard (status tiles, a battery gauge with 24-hour and 7-day history, and a 7-day run timeline), and added a Generator button to the navbar on every RV dashboard. It restarted Home Assistant core to load them and checked that the entities came back. There are no buttons on any of it. Read-only, on purpose. The status message only gets you so far. The AGS settings (start and stop voltage, quiet hours, run time limits) and the run-hours counter only show up when the app asks for them, and the bytes for asking live in the compiled Dart code. Getting those out meant running a Flutter decompiler called blutter. Here's the funny part. The first time Claude tried to build blutter, Claude Code's own safety check blocked it. Claude didn't try to sneak around it. It stopped, finished the dashboards, and told me what it couldn't do and why. When I came back to it and said go ahead, it ran. I was pretty nervous about this stage, and I told Claude so more than once: don't start the generator, don't change any settings. It took that seriously: Even then, the first two attempts got no answer. Claude worked out why: the module's mesh address was hiding in a second block of the Bluetooth advertisement, and the decompiled Java was building one part of the encryption a little differently from what the firmware actually expects. When it switched to the way the open-source Telink libraries do it, the module answered both requests. AGS disabled, quiet hours 10:20 PM to 8 AM, and 5 minutes on the run-hours counter. And that's where I called it. It was late, and I'd rather finish this in daylight when I can hear the generator if something goes sideways. Turns out burning the midnight oil is risky business too. I didn't want to wake anyone up by cranking the generator at 11:45 PM, and I really didn't want to explain to my wife, "Sorry babe, I was vibe coding a generator controller because I'd already run out of stock hardware to hack on the house side of the RV." I keep getting asked how much of these projects are me and how much is the AI, so here's the honest version. What I did: What Claude did: If I'm honest, I couldn't have written the encryption port myself. That's not my skill set. But Claude also wouldn't have gone looking at the manufacturer's app without the nudge, and it definitely wasn't going to decide on its own how much risk I was willing to take with a generator. When we bought this RV, I pulled out the manuals for every product in the shell, everything that makes it tick. With Claude's help I scanned all the PDFs and built an owner's manual of manuals: exactly what we have, how it's set up and which model of each thing is installed. At that point we both knew what was in there, so let's start digging. Every module running this app appears to use the same Bluetooth login, and the app's passcode isn't enforced by the module. That means anyone within Bluetooth range of an RV with one of these could probably talk to it, and possibly start the generator. A generator starting on its own next to a parked RV is a carbon monoxide problem, not just an annoyance. So I'm not naming the brand or the model, and I'm not publishing the login or the command bytes for start and stop. I'm reaching out to the manufacturer first. If your rig has a Bluetooth generator auto-start, keep your CO detectors working (you should anyway). I'd even go so far as to add a second, smart detector and monitor it in Home Assistant and notify you on your phone. In daylight, with the generator locked out so it physically can't start, I'll compare the values Claude read against the app to figure out the units, then roll the two read requests into the add-on so settings and run hours show up as sensors. After that come alerts for low battery, faults and failed starts. Start and stop buttons in Home Assistant might come later, with a confirmation step, or might not. I haven't decided. Have you wired an RV system into Home Assistant that was never meant to be? And how much do you let AI tools touch hardware that can actually hurt you? Let me know, I'm curious. More on this soon. One last thing. This post isn't really about finishing the project. It's about how I did it, and how you could too. Pick the problem, point at the right sources with what you already know, make the calls, ask lots of questions, switch to plan mode and ask more, and set the rules so the generator doesn't start at 11:45 PM on a Tuesday in your dead-quiet neighborhood. Then ship it to an audience of one. Not everything I build needs a GitHub repo, an issue tracker and strangers asking for features. This one just has to work in my rig. It's a Flutter app. The real logic is compiled Dart, with a thin Java layer that hands Bluetooth calls to a native library. It's built on Telink's light-mesh SDK. Yes, the same Bluetooth mesh stack used in cheap smart bulbs. The generator controller is basically a very angry light bulb. The login is the same for every unit. The mesh name and password are hardcoded in the app. The six-digit passcode you type in the app is only checked inside the app, not by the module. More on that below. The status layout was right there. The Java code that unpacks the status message spelled out every field: battery voltage, temperature, generator running, fault, start failed, manual mode, ignition and retry count. It mapped every command first. Every command the app can send, sorted into reads and controls. Start, stop, reset, factory reset, settings changes, door lock, key fob pairing and set clock all landed in the do-not-touch pile. It proved the two reads were safe. Both are sent automatically by the app when a screen opens. An app doesn't change your generator just because you looked at it. It wrote a hard allowlist. The code that builds commands refuses anything except those two exact requests, and Claude tested that locally (start, stop and the rest all got rejected) before anything went over the air. Picked the problem. I wanted generator status in Home Assistant, and I knew the module was Bluetooth. I also knew the app existed and had played with it. Of course I'd already scanned for Bluetooth devices in the rig looking for things to control, and this was one of them. Pointed at the right sources. The Android app and the manufacturer's manuals and firmware page were my idea. Claude hadn't gone looking for them yet. I run iOS, but I know Android apps are easy to pick apart, so let's have a little fun. Made the calls. Yes to connecting, add-on over ESP32, which dashboards, and when to stop for the night. Set the rules. No starting the generator, no settings changes, no testing for real. I said it three times, and I'd say it again. Approved the scary stuff. Connecting to the module, running the decompiler, and sending the two read requests each waited for a yes from me. All of the hands-on work. Scanning, connecting, reading services, downloading and decompiling the app, and reading the Java and Dart. I kept asking what it was looking at, and used /btw for side chats while it decompiled. All of the code. The Python port of the Telink protocol, the add-on, the Dockerfile, the MQTT discovery config and the command allowlist. I know how MQTT and Docker work, but every step of this was virtual hands doing the work for me. The debugging. The add-on build failure, the missing mesh address and the encryption difference, each from logs and decompiled code. Oh man, this was the tricky bit, and I'm glad Claude Code handled it. The Home Assistant plumbing. Dashboard JSON, navbar edits on five dashboards, backups and the core restart. Once it had built the sensors, I let Claude Code handle all of this. Knowing when to stop. It asked before connecting, stopped when the safety check said no, and kept the generator out of reach the whole time.

0 views
Stratechery 1 weeks ago

Apple Permissions Update, The New App Paradigm, My iPhone Duo Review

Apple doesn't ruin the Mac, but they don't fix the agent problem, raising questions if they can think outside the app paradigm. Then, my iPhone Duo review.

0 views
Blog System/5 1 weeks ago

Remote EngFlow caching meets an old G4

During BazelCon 2026 in early October, the fine folks at EngFlow gave me a very cool piece of swag: a Cache & Carry box or, in other words, a portable remote cache for Bazel builds. The only ask was for me to post a photo on social media, which I’d have gladly done, but… that seemed like too low a price for a nice piece of hardware. So I promised I would write an article instead. The article is late, though, as I have been busy getting ZKeys out the door and trying to find a good idea for what to talk about. I finally got the right inspiration after taking an old PowerBook G4 laptop from 2004 out of the closet to play with Tabby-PPC . That experiment failed, but as the laptop sat on my desk, I thought: could I make it leverage the Cache & Carry and demonstrate the clear benefits of remote caching? The answer was “of course yes” before even trying, but it was not going to be easy: this machine is severely underpowered by today’s standards and won’t run Bazel, so showing remote caching via a modern build system wasn’t going to be possible. I had to find an alternative demonstration path, and find it I did: the recc compiler wrapper . Even then, the benefits weren’t great on the first try, so I had to debug and iterate. In the end, the compilation time for itself dropped from a little over 1 hour to just 3 minutes. Let’s see how. Typing articles like this one, with manually-taken pictures and hand-edited videos, requires a lot of work. Subscribe to Blog System/5 to show your support. EngFlow is a relatively new company that offers a hosted remote caching and execution service for Bazel builds. More specifically, EngFlow is an implementation of the Remote Execution (RE) API . And fun fact: the protocol name is RE, not RBE as many people call it, because RBE was Google’s own RE service that never really saw the light of day. The EngFlow Cache & Carry in its box before unpacking it. Cache & Carry is a little toy that packages the EngFlow remote cache (not execution) software into a Raspberry Pi 4 preconfigured to work as an appliance, enclosed into a branded 3D-printed case and packaged into a fancy cardboard box. Mind you: this is what I wanted to achieve with my own EndBOX last year but never went the last mile to distribute it as a truly finished toy. The EngFlow Cache & Carry Raspberry Pi 4, with its custom branded case. Getting started I’m quite used to EngFlow’s product by now because we use it at Snowflake to power our in-house builds and tests, so using the Cache & Carry was no difficulty. And it shouldn’t be for anyone given that configuration and management are pretty easy. Here is the cluster status page right after plugging in the device and connecting to it, showing how this “cluster” is really just a cache and has no remote execution features: EngFlow's standard Cluster status page in the live dashboard. Using it to run Bazel builds is trivial, really. All it took was to stick these few lines in my file, as the instructions say: And just like that, builds started showing up in the UI: EngFlow's standard Invocations browser in the live dashboard. This is one of the weakest parts of the UI, to be honest, because of its poor search capabilities, but the team is hard at work redesigning it. We can even peek into one of the builds to observe cache statistics: EngFlow's Invocation Details drill-down view in the dashboard. Here we can see the cache usage status and that the whole build was cached and took only 17 seconds to run (compared to the 13 minutes it takes otherwise). One thing that did surprise me about this setup is the ability to carry power and Ethernet over a single USB-C cable between the Raspberry Pi 4 and the host. I didn’t know this was possible, and it’s a great feature: if you just want to use the Cache & Carry with your laptop, all you have to do is plug it in with one cable and it just works. Getting Bazel to work against EngFlow was easy. But… as I told you earlier, EngFlow is not just a remote caching and execution service for Bazel: it is an implementation of the RE API. With some imagination, you would think that there might be clients other than Bazel for this API, and you would be right. Buck 2—Meta’s build system—is an obvious example, but there are more niche clients. And the one I discovered while searching whether supported EngFlow and finding that it didn’t was : a compiler wrapper like and that uses RE for caching and remote execution. Building and installing is easy: But note I installed the binary as , not . The rationale for this is that we have to configure . This is done via environment variables, and as I don’t like to pollute my regular environment with program-specific noise, I created a launcher like the following: With this in place, we can run a single compilation command and verify that the wrapper runs: And, with a repeated invocation, we can ensure that caching is in effect: OK, time to pick up the PowerBook G4 from 2004. This little 12” laptop sports a PowerPC G4 (7447A) running at a whopping 1.5 GHz, with 768 MB of RAM, a super-duper-slow 80 GB spinning drive, and a 100 Mbit Ethernet link. Not a lot, you’d say… but this computer was frigging amazing back in the day. I had the iBook G4 back in the day and was always jealous of the PowerBooks I saw in the wild, unaffordable to me, so when I could grab this one for $40 a few years ago, I just had to. EngFlow Cache & Carry in its box next to the PowerBook G4 12” from 2004 we’ll use as a client. Right now, this machine is running Debian forky/sid, one of the only Linux distros out there that still works out of the box on 32-bit PowerPC. As of 2026-11-09, it reports: With the specs out of the way, let’s go back to the premise of the article: showing you what a massive and unsurprising difference (remote) caching can make during compilations, and how, because RE is “just a protocol”, we can leverage it even from old machines. For this, we’ll measure ’s own build from a clean slate, cached and uncached, because it’s a large enough C++ project that takes about an hour to build out of the box—not too little, but also not so much as to be discouraging. Here are the final numbers of the comparison: Let’s break them down. My first attempt at using remote caching was to build with itself in the “default” configuration for and the toolchain installed by Debian. This meant GCC 16.2 and no custom flags to CMake. The clean, fully-cached build took about 8 minutes to finish. This showed a nice ~7x speedup compared to the clean unwrapped build, but somehow it felt like not enough. Why did we still spend 8 minutes to compile something when everything should be cached? I had two theories, but neither of them was valid: The machine doesn’t have a lot of RAM for C++ compiles. Was causing it to thrash, maybe because it buffers files in memory instead of transferring them in chunks? Looking at the code, the answer was no: implements chunked uploads and downloads. The machine’s Ethernet port is slow. Were network transfers slowing things down? Not really either: the output tree is only ~150MB after a build. (Mind you, with Bazel and remote execution, you’d typically use to avoid ferrying large intermediate object files, but that’s not an option with a compiler wrapper that knows nothing about the end-to-end build graph.) With both theories debunked, I had to look elsewhere: CPU consumption. It is no surprise that compiler wrappers are compute-heavy. One specific CPU-bound operation for C++ wrappers is dependency scanning: these wrappers have to (re)discover on their own what a specific compilation action depends on, because nothing tells them upfront. When the wrapper sees something like , it can tell that depends on … but what about the thousands of other implied dependencies like header files and toolchain binaries involved in that innocent invocation? You must know what those are in order to generate a cache key that can disambiguate different environments correctly. Taking some measurements, dependency scanning was indeed the problem as more than 5 out of the total 8 minutes of the cached build were spent on it. Looking through the codebase, I found that implements support for : a helper tool that ships with Clang and is specifically designed to speed up dependency discovery. Would it help here? I switched to Clang, reran the build and… whoops, still no bueno. The unwrapped build was, interestingly, much faster than the GCC one, but did not help: the logs claimed that it succeeded only for 23 out of 124 scanner runs, and so it didn’t materially change the overall result. Looking further, I found that was not being effective: ’s scanner adds to the compile commands, and because precompiled headers (PCHs) had been built without that option, Clang rejected using it. So… what if we disable PCHs by adding to the CMake invocation? Well, it turns out this made no difference either because CMake emits in this case, and apparently probes for these flags wrong, which in turn causes to fall back to slow dependency scanning. I applied a very hacky, targeted fix to to ensure was effective, reran the measurements, and got these numbers. Focus on the PCH? and Dep scanning columns: Yay! End-to-end clean, fully-cached build times fell from 8 minutes to 3 minutes, and those 3 minutes are pretty much the cost of the entire build and account for local non-compiler work such as protobuf generation and linking. Still not zero, but much better than what we started with. Here is the 1-minute video comparing build times. The difference is pretty massive: Recording of recc's own compilation on a PowerBook G4 without and with remote caching. As you can see, there is nothing magical about remote caching, and EngFlow’s Cache & Carry is a little toy to play with this technology. You can, of course, download an open source alternative such as Builbarn , but playing with a preconfigured appliance was fun and removed a lot of the complexities of setting such a system up. When paired with a modern build system such as Bazel, remote caching (and execution) can be trivially enabled and can achieve near 0-second build times when the whole build is cached: these build systems have precise knowledge of the full build graph and know which paths in it are or are not invalidated for a given build. And because they have this knowledge, they can apply optimizations to the whole build such as not downloading intermediate artifacts. But as we have seen, RE is just a protocol, and if you can speak it, you can leverage it from pretty much any machine (even if ancient and “worthless”) and any build system. You’ll hit some inherent limitations, like a compiler wrapper having only a very narrow view of the build, or you’ll have to deal with strange corner cases that don’t allow maximum efficiency, but you can make it work. Keep caching and carrying! The EngFlow Cache & Carry in its box before unpacking it. Cache & Carry is a little toy that packages the EngFlow remote cache (not execution) software into a Raspberry Pi 4 preconfigured to work as an appliance, enclosed into a branded 3D-printed case and packaged into a fancy cardboard box. Mind you: this is what I wanted to achieve with my own EndBOX last year but never went the last mile to distribute it as a truly finished toy. The EngFlow Cache & Carry Raspberry Pi 4, with its custom branded case. Getting started I’m quite used to EngFlow’s product by now because we use it at Snowflake to power our in-house builds and tests, so using the Cache & Carry was no difficulty. And it shouldn’t be for anyone given that configuration and management are pretty easy. Here is the cluster status page right after plugging in the device and connecting to it, showing how this “cluster” is really just a cache and has no remote execution features: EngFlow's standard Cluster status page in the live dashboard. Using it to run Bazel builds is trivial, really. All it took was to stick these few lines in my file, as the instructions say: And just like that, builds started showing up in the UI: EngFlow's standard Invocations browser in the live dashboard. This is one of the weakest parts of the UI, to be honest, because of its poor search capabilities, but the team is hard at work redesigning it. We can even peek into one of the builds to observe cache statistics: EngFlow's Invocation Details drill-down view in the dashboard. Here we can see the cache usage status and that the whole build was cached and took only 17 seconds to run (compared to the 13 minutes it takes otherwise). One thing that did surprise me about this setup is the ability to carry power and Ethernet over a single USB-C cable between the Raspberry Pi 4 and the host. I didn’t know this was possible, and it’s a great feature: if you just want to use the Cache & Carry with your laptop, all you have to do is plug it in with one cable and it just works. Bypassing Bazel Getting Bazel to work against EngFlow was easy. But… as I told you earlier, EngFlow is not just a remote caching and execution service for Bazel: it is an implementation of the RE API. With some imagination, you would think that there might be clients other than Bazel for this API, and you would be right. Buck 2—Meta’s build system—is an obvious example, but there are more niche clients. And the one I discovered while searching whether supported EngFlow and finding that it didn’t was : a compiler wrapper like and that uses RE for caching and remote execution. Building and installing is easy: But note I installed the binary as , not . The rationale for this is that we have to configure . This is done via environment variables, and as I don’t like to pollute my regular environment with program-specific noise, I created a launcher like the following: With this in place, we can run a single compilation command and verify that the wrapper runs: And, with a repeated invocation, we can ensure that caching is in effect: Let’s go retro OK, time to pick up the PowerBook G4 from 2004. This little 12” laptop sports a PowerPC G4 (7447A) running at a whopping 1.5 GHz, with 768 MB of RAM, a super-duper-slow 80 GB spinning drive, and a 100 Mbit Ethernet link. Not a lot, you’d say… but this computer was frigging amazing back in the day. I had the iBook G4 back in the day and was always jealous of the PowerBooks I saw in the wild, unaffordable to me, so when I could grab this one for $40 a few years ago, I just had to. EngFlow Cache & Carry in its box next to the PowerBook G4 12” from 2004 we’ll use as a client. Right now, this machine is running Debian forky/sid, one of the only Linux distros out there that still works out of the box on 32-bit PowerPC. As of 2026-11-09, it reports: With the specs out of the way, let’s go back to the premise of the article: showing you what a massive and unsurprising difference (remote) caching can make during compilations, and how, because RE is “just a protocol”, we can leverage it even from old machines. For this, we’ll measure ’s own build from a clean slate, cached and uncached, because it’s a large enough C++ project that takes about an hour to build out of the box—not too little, but also not so much as to be discouraging. Here are the final numbers of the comparison: Let’s break them down. First build, slow My first attempt at using remote caching was to build with itself in the “default” configuration for and the toolchain installed by Debian. This meant GCC 16.2 and no custom flags to CMake. The clean, fully-cached build took about 8 minutes to finish. This showed a nice ~7x speedup compared to the clean unwrapped build, but somehow it felt like not enough. Why did we still spend 8 minutes to compile something when everything should be cached? I had two theories, but neither of them was valid: The machine doesn’t have a lot of RAM for C++ compiles. Was causing it to thrash, maybe because it buffers files in memory instead of transferring them in chunks? Looking at the code, the answer was no: implements chunked uploads and downloads. The machine’s Ethernet port is slow. Were network transfers slowing things down? Not really either: the output tree is only ~150MB after a build. (Mind you, with Bazel and remote execution, you’d typically use to avoid ferrying large intermediate object files, but that’s not an option with a compiler wrapper that knows nothing about the end-to-end build graph.)

0 views
Stratechery 1 weeks ago

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
Unsung 2 weeks ago

“Could a modern chess engine on a Pentium have defeated Kasparov in 1996?”

On February 10th, 1996, a computer program (IBM’s Deep Blue) defeated the reigning chess champion (Garry Kasparov) in a game of chess for the first time. Deep Blue would go on to lose the match, but a year later, would get its revenge in a 3.5-2.5 rematch. In order to achieve this feat, IBM spent several million dollars on research and development building a special-purpose computer specifically for this purpose. Deep Blue itself (the victorious, upgraded version) was powered by 30 P2SC processors each running at roughly 120 MHz, and (most importantly) 480 custom VLSI chess co-processors used to perform chess-specific operations like move generation and position evaluation. When it was built, Deep Blue was the 259th most powerful supercomputer in the world, and could analyze over 200 million chess positions per second. […] Skill in chess is measured by an Elo score. […] The best chess engines that you could run on commodity 1996 hardware were rated roughly 2300 Elo. Deep Blue was rated 2700. In contrast, modern Stockfish is rated closer to 3700. This raises the question: how much of the advantage of a modern chess engine comes down to the fact that a modern desktop computer is extremely fast, and how much of the advantage comes down to the fact that we’ve just gotten better at programming chess engines? This post by Nicholas Carlini is a more technical post than I usually share in this neck of the woods, but I wanted to to this for this ending: The first time we humans do anything, we rarely do it efficiently. Once we see a path that would clearly work if only we scaled it up, we do just that. Only later, after we’ve had the time to better understand the problem at hand, do we come to recognize that we could have achieved the same feat much more efficiently by being clever. I mostly did this for fun, because whether I could have beaten Kasparov with commodity hardware sounded like a fun question to answer, but I also hoped it would provide a tiny bit of insight into the rate of algorithmic progress in “AI”. Chess engines in 1997 were already quite advanced; after all, Alan Turing helped write the first chess program nearly fifty years earlier. So I suppose at the time it seemed plausible that maybe there weren’t that many more ideas left to find. And with hindsight it’s easy to see that’s wrong. This is interesting to me less in the AI context, but more in the “people getting better at understanding and programming things” sense. It reminds me of Racing the Beam , a fun 2009 book by Ian Bogost and Nick Montfort, chronicling the life of a certain Atari 2600 videogame console, released in 1977. The console predates me, although it has been on the market for many years. Toward the end of its life, the programmers understood it so well and were so much in sync – literally and figuratively – with its antiquated hardware, they made games with graphics so great they seemed to belong to the next generation of hardware. I am pretty sure if you were to grab some mid-1980s Atari 2600 games and go back in time to 1977, the creators of the console itself would tell you these were not possible to make. This is an 1977 launch title Combat, followed by the famous Pitfall! from 1982. I know they will both look primitive from the flattened perspective of today, but believe me – Pitfall! was a masterpiece that inspired a generation:

0 views
The Tymscar Blog 2 weeks ago

My Monitor Was Cutting My Download Speed by 75%

Somehow I am one of those few very lucky people to have the opportunity of owning a 2.5 gig symmetrical line for my internet. But one day, when I wanted to brag to my equally nerdy friends, shock and horror: 600 Mbps down? Luckily my upload speed was still 2.4 Gbps, so I didn’t lose all my bragging rights, but that’s weird, right? If anything, you’d expect the opposite! My ISP is pretty cool. It’s run by this one guy (Hey Keith!), and I know I can always message them and they respond promptly, as they did this time. We tried to run through a few debugging steps, they checked on their end, and everything was normal. I tried my work laptop too, same speed.

0 views
Jason Scheirer 2 weeks ago

Sync Firmware Zoo: A Desktop App for my Synthesizer Psychosis

In my enthusiasm for the FM-1 , I have written a pretty big Omnibus desktop app to do stuff with it: It supports the M-VAVE FM-1 as well as the SMK-37. It is Pending on the Microsoft store but you can get it on Github Releases now. Run up to 4 virtual FM-1s in emulation Rewire MIDI inputs/outputs all over the system Catalog, download, and flash firmwares to local devices

0 views
codedge 2 weeks ago

Pihole in HA mode

Pihole is the central point of resolving internal and external domains in my homelab. Running this on only one device is a classical SPOF so I run two separate instances on two physical devices in HA mode. In my homelab I decided to use two spare Raspberry Pis doing all DNS resolving. Even my Fritzbox uses the Pihole devices as custom DNS server. The problem is, that the Fritzbox can only take one IP as DNS server server. There is no builtin logic running Pihole in a typical high availability (HA) setup like one Pihole goes down and the other one kicks in. If your router takes more than one IP already, there is no need for the solution I describe here. Just put in the IPs of your two devices and you are done. So even having two devices running Pihole, Fritzbox would only use one for resolving names, which is a single point of failure (SPOF). The solution would be having a floating IP that jumps to the device, which can handle the current request. If both are up, there is a primary instance, and one or multiple secondary instances. Fortunately there is keepalived which brings load balancing and high availability to Linux. […] keepalived runs a set of health checkers that watch each server pool and decide, in real time, whether a real server stays in the topology or drops out according to its health. keepalived ships in most Linux distributions. I use Raspberry Pi OS Lite , the headless version without any desktop environment. My current Pihole setup is: On the Raspberry Pis I rolled out this configuration, with a different value, to define the primary and seconday instance. In the healthcheck script you define how often a check can fail or should succeed to trigger failed or healthy states. In the example above, a check each 2 seconds with means a failover after 4 seconds The only IP address that Fritzbox hands out to all my devices is which is a floating, load balanced IP what either one of my Raspberry Pis answers. I can update one Pi while the other one automatically serves all DNS requests. Pihole 1: x.x.x. 18 Pihole 2: x.x.x. 19 Floating IP: x.x.x. 53

0 views
Stratechery 2 weeks ago

Intel Earnings, AMD Earnings, Intel and AMD’s Divergence

Intel and AMD's diverging earnings point to fundamental historical differences, and make me wonder if Intel needs to find a new (old) path.

0 views
マリウス 2 weeks ago

Stickerbombed: Lenovo X1 Carbon Gen 14 Aura

Especially with laptops being an attractive target for thieves at airports and touristic areas, I not only enjoy telling a story through the appearance of my devices, but I also find customizing the appearance a good way to deceive snatchers into mistaking these items for something of lower and potentially uninteresting value. Unlike the average tech bro that collects stickers of their favorite tech corporations and stacks, only to stick them onto their MacBooks in an uninspiring way, I prefer to carefully plan my stickerbombing and create a well-crafted collage that tells a story. For that, I use stickers that I collect throughout my travels , and also order specific stickers, which I then cut into new motifs. Instead of Silicon Valley logos, my works usually contain imagery that is reflective of personal life events, social topics, and sometimes satire. If you like this sort of art and are looking for further inspiration for your own projects, you might enjoy the books by Stickerbombworld , as well as the c/stickerbomb and r/stickerbomb communities.

0 views
James Stanley 3 weeks ago

How to make a CNC plasma cutter with high-frequency start

The issue with high-frequency start ("HF start") on plasma cutters is that igniting the pilot arc creates an enormous amount of electromagnetic interference which causes problems for nearby electronics, in particular tending to disconnect the USB connection to your CNC motion controller. You can solve this by talking to the motion controller over WiFi. This is my machine in its temporary location on the workbench: If you still need to acquire a plasma cutter then I obviously recommend trying to get one with "blowback start" instead of "HF start" so that you don't have to worry about it. In acquiring a machine with HF start I made an error. But I got it to work anyway, so if you already have an HF start machine and you want to use it for CNC, you might be able to do the same thing. I kind of wanted a CNC plasma cutter because I have recently spent lots of time and end mills making planar parts like this for my cyclecar at excruciatingly low feed rates and depths of cut: So I started placing some bids on eBay and accidentally won a Parkside PPS 30 B2 for £80: The seller stated that he bought it from Lidl on a whim but then realised it needed a compressor and he didn't have one. If I had done my research I would not have bid on a machine without blowback start, but here we are. So when it arrived I set it up on the garage floor and tried to run my 6040 CNC router while lighting the plasma arc. As you might predict, I couldn't get it to work. Most of the time lighting the arc would disconnect UGS from Grbl. But serendipitously I was running a test program that had a small number of very long and very slow movements, which meant I had several minutes of motion left in Grbl's buffer, and I noticed that even though UGS got disconnected from Grbl and was totally broken... Grbl was still moving the machine! It was still following my gcode perfectly. So the issue isn't that the HF start actually prevents Grbl from working, it's just that it disconnects the USB serial connection . Solution: use FluidNC on an ESP32 board and talk to it over WiFi. FluidNC is Grbl-compatible but suitable for more modern microcontrollers. Charlie suggested talking to the controller over fibre optic, which would probably work even better than WiFi but is more faff to set up. Annoyingly, ESP32 outputs are 3.3v instead of 5v. I made up a breakout board for an Arduino Nano ESP32 on a piece of stripboard with a 74HCT245 abused as a level-shifter on the outputs and this was sufficient to provide 5v output from 3.3v input, unsure how legit this is. You can see my custom breakout board in here: I initially experimented with some small stepper motors with A4988 drivers, left over from when I dismantled my i3 clone 3d printer , and I think these would have been fine. But I also had some spare Leadshine easy servos from the unfinished CNC mini mill project I bought years ago. I didn't think the Leadshine servos would work because I thought the interference would confuse the encoder input, but I tested them and they seemed fine. And they're more powerful and better so I used them. But for a plasma cutter I really don't think fancy servos are necessary, the cutting load is basically zero, it's just a glorified pen plotter. The Leadshine documentation says they need at least 18v, but I only had a 12v power supply lying around so I tried it and it seems fine. I did subsequently connect the alarm output from the servo to an input on FluidNC and it kept falsely triggering every time the arc started (sigh) so I am running the servos without the alarm input. That's no worse a position than I would have been in using open-loop stepper motors anyway. My motion platform is made out of box section steel and 3d printed parts: With GT2 belts left over from the same 3d printer, and printed pulleys. The bigger of the two orange parts was a 36-hour print and used 700g of material, that's my biggest ever 3d print. All printed in ABS-GF on Bambu Studio "strength" setting. The "linear rails" consist of 608 bearings riding directly on the steel box section. I didn't make any of them adjustable but I should have done because it has slightly more play in it than I would prefer. Again this would be nowhere near adequate for a router but for a plasma cutter I think it should be fine. (The aluminium foil wrapped around the torch lead was a shielding experiment from before I was using FluidNC, it didn't help, I just haven't taken it off yet). I need to get a larger water tray. To fire the arc on the plasma cutter, it has a 2-pin GX16 connector which you normally connect to the torch trigger. I connected it to a relay operated by FluidNC so that I can turn it on/off with M3/M5. (But note you need to give FluidNC a non-zero "spindle speed" else M3 won't do anything, so get used to "M3 S1"). So at this point I have a working CNC motion system, with an HF start plasma cutter that I can fire from CNC control. Time to cut something out? Unfortunately I have no plasma cutting experience and (story of my life) it's harder than it looks. I messed around with the air pressure, current setting, and feed rate, and I just couldn't get a clean cut in 4mm steel. That's disappointing because the machine documentation says it can cut through up to 12mm steel. But I tried a piece of 3mm steel and my first test cuts worked a lot better, so I tried to cut out a heart shape. (I got ChatGPT to write the gcode for this). It blew the fuse in the extension lead 3/4 of the way through because I foolishly had the compressor and plasma cutter plugged into the same one. D'oh! I moved the compressor to a different extension lead and then it worked first time, albeit with a lot of slag on the underside of the cut: I cleaned this off with the angle grinder and you can see that along one axis my machine is cutting nice straight sides but on the other axis it is quite badly bevelled: I am going to replace the consumables in the torch when they arrive, and failing that I am going to make the torch clamp angle adjustable, and I expect I will be able to get rid of the bevel, but I don't know if the combination of the excessive bevel and the poor cutting performance are evidence that my machine is actually faulty. This may be the real reason it was sold on eBay after hardly any use. I have subsequently had my 16 amp breaker trip a few times while cutting so I may want to either find a way to run the compressor on a different circuit or else upgrade the circuit I have. These are the switches and lights on my control cabinet: Though the "alarm" light is now surplus as the servo drives can no longer trigger it. The "torch" light comes on when FluidNC is asking for the relay to turn on, but the relay doesn't actually turn on unless the switch is set to "enable". This is so I can ensure that even when I'm fumbling the gcode the torch can't light unexpectedly. And btw I obviously don't have an emergency stop button on this machine, but I can still toggle the torch off, or switch the power off, and there's no world in which I'm running a plasma cutter unattended, so I'm not very worried about it. I also don't have limit switches. I don't really understand why people bother putting limit switches on DIY machines (unless they have an automatic tool changer or whatever). What's the benefit to having a global coordinate system? You need to set up work coordinates for every job anyway. I don't have limit switches on any of my machines, but on this one in particular I expect limit switches would falsely trigger whenever the HF arc starts. So what have we learnt about making CNC plasma cutters? you can use a HF start machine if you talk to the motion controller over WiFi you don't want any inputs to the microcontroller, including limit switches, emergency stop, alarm inputs, USB serial if you make linear rails out of box section and ball bearings then make some of them adjustable so that you can take out the play GT2 belts are adequate 3d-printed structure is adequate getting correct cutting parameters is not any easier than it is with milling unfortunately, so still lots to learn Leadshine easy servos appear to work with 12v supply even though the documentation says they need at least 18v I made a custom gcode sender to talk to FluidNC because I wanted it to work differently to any existing ones and coding agents make software cheap, but I'm pretty sure UGS can talk over WiFi so it is not necessary to make your own sender. If you make a CNC plasma cutter using information from this post then please email me and show me, I'd love to hear from you. you can use a HF start machine if you talk to the motion controller over WiFi you don't want any inputs to the microcontroller, including limit switches, emergency stop, alarm inputs, USB serial if you make linear rails out of box section and ball bearings then make some of them adjustable so that you can take out the play GT2 belts are adequate 3d-printed structure is adequate getting correct cutting parameters is not any easier than it is with milling unfortunately, so still lots to learn Leadshine easy servos appear to work with 12v supply even though the documentation says they need at least 18v

0 views
neilzone 3 weeks ago

Upgrading my Airsoft rifle

I spent a pleasant morning at Red Alert, making a couple of small (but hopefully useful) upgrades to my main Airsoft rifle (MTW). I changed the routing of the air line for the HPA engine, routing it out the back of the rifle, under the buffer tube, moving it from down the hand grip. I also replaced the stock grip with a grip containing batteries and switch, so that I can power the HPA engine with that, rather than needing to install a Li-Po battery each time. These were reasonably straightforward upgrades, and I was keen to do them myself - to get the benefit of the learning experience - but I was also very keen to do it around people who know what they are doing. I also wanted to borrow an armourer’s wrench, as I do not have one, and I so rarely need one that buying my own seems a bit pointless. Luck was on my side, as the upgrades went smoothly. I dropped a small spring at one point, and I did not know from whence it came. It turns out that it was a spring which retains the small pin which keeps the large rear metal pin in place - it is inserted from near the stock at the back of the rifle, through a small hole, which I uncovered when I replaced some parts to re-route the air line. Fitting the upper and lower receiver back together, with the new, shorter, air line in place was a bit of a pain, but hopefully I am not going to need to open up the weapon too often, having made these changes. Perhaps the next time that I need to change the hop rubber? But not each week as I did before, to insert and remove the battery. I took the opportunity to make a slight adjustment to my HPA regulator’s output, giving me an increase of about 10 feet per second, while hopefully keeping me sufficiently clear of the upper limit for this weapon that I don’t need to tweak it down again when I use someone else’s chronograph when I next play. Lastly, I re-zeroed my red dot, as it was slightly out. I was doing pretty well at the end, hitting with reasonable accuracy out to 70m, so I look forward to giving this a go in a game very soon.

0 views