Latest Posts (20 found)
spf13 1 weeks ago

The Collective Mirror: Why AI Can Spot Your Blind Spots (But Not Your Breakthroughs)

Ask an LLM what you conveniently left out of a strategy memo, and the answer can feel unnervingly perceptive. That looks like a paradox if you believe, as I argued last week in Creativity in Negative Space , that LLMs operate entirely in positive space (everything humans have already written and absorbed into training data), while real creative breakthroughs live in negative space (the gap nobody has named yet). My friend Jordan Rubin read that post and pushed back in a comment on my Substack: “I agree with you that creativity works differently in positive and negative space. I don’t agree that AI can’t see the negative space. It can! It just needs to be prompted to.” He linked an earlier post from his own Substack, What do you have unsaid? , where he introduced a prompt skill called . Run on a strategy memo or blog post, and it surfaces hidden motives, strategic omissions, unstated assumptions, and blind spots. As Jordan puts it, the reaction is “uncanny. Not in the uncanny valley sense, all too common with LLMs, but in the how did it know sense.” On closer look, Jordan’s article and prompt reinforce exactly the point I’ve been making. Jordan and I were using “negative space” at two different levels: what is missing inside an individual document versus what is missing outside the training corpus. As his own spec makes clear, works because a model’s positive space acts as a collective mirror for our individual blind spots . Jordan’s specification describes the mechanism plainly: detect the argument, conclusion, or premise that should be present given the statistical structure of the text, but is conspicuously absent. negspace reads the “shadow” of the text by comparing what was written to what was overwhelmingly likely to be written next… Overwhelmingly likely to be written next. Later in the spec, Jordan puts a rough number on it, asking the model to find the omitted conclusion “~80–95% likely given the argument’s structure,” or “the statistical ghost of the missing argument.” In his spec, Jordan uses “perplexity spike” and “~80–95% likely” as prompting heuristics, not literal logprob readouts. A chat prompt doesn’t inspect its own token probabilities, and if you instruct an LLM to hunt for hidden motives, it will gladly hallucinate cynical ones for any paragraph you hand it. What makes the useful hits land is pattern completion, drawn straight from the densest positive space in the model’s weights. An LLM has ingested millions of essays, arguments, post-mortems, and negotiations, giving it an aggregate map of how human arguments unfold. When an author swerves off that expected path, whether from ego protection or a genuine blind spot, a prompt asking “what argument usually follows this setup?” completes the half-finished template. To the author, that omission felt private or justified. To the model’s weights, the missing piece is a well-lit highway the author just drove off of. What feels private inside an author’s head looks to the model’s weights like driving straight off a well-lit highway. What makes a routine pattern completion feel like mind-reading is that we hide those detours from ourselves first. That effect gets sharpest whenever a technical choice hardens into professional identity. In Why Engineers Can’t Be Rational About Programming Languages , I wrote about why language debates behave more like tribal arguments than benchmarks. In a 2016 fMRI study on political beliefs (the closest well-studied analogue to identity-fused convictions), Kaplan, Gimbel, and Harris found that challenging strongly held political views, unlike non-political facts, increased activity in the default mode network (tied to self-identity), with greater insula and amygdala activity in people who resisted changing their minds. As Jonas Kaplan put it , “To consider an alternative view, you would have to consider an alternative version of yourself.” So we protect ourselves. We skip the inconvenient counterargument and gloss over the dual-use risk. We leave an escape hatch in our phrasing so we stay uncommitted if things go sideways. From inside our own heads, those omissions disappear into personal blind spots. To counter my own blind spots, I leaned on that collective mirror while building The 9 Cost Factors (and I’ll share the results across major languages soon). After years on the Go team at Google and maintaining Go tools, my bias toward Go is unquestionable. Left to myself, I over-index on what Go does well and at times rationalize away its friction. Running the nine economic factors through multiple LLMs let me pit the industry’s collective bias against my individual bias, surfacing trade-offs I would have edited out. Two different boundaries: prompt-level omissions sit inside the model’s weights, while true novelty sits outside them. Individual blind spots are negative space in the prompt , sitting squarely inside positive space in the weights . They are the things you missed or dodged that humanity already knows well enough for a model to predict. Projecting that statistical consensus onto your context window turns the model into a collective mirror for subtext and identity bias. True novelty is negative space in the weights . These are the unmapped ideas and intuitions nobody has articulated yet, outside the training distribution. Here, the model’s positive space stops acting like a mirror and pulls you back toward consensus. One caveat matters here: the weights aren’t a single monolithic consensus. Because a model absorbed many disciplines at once, it can still expose an industry blind spot by importing a familiar pattern from an adjacent field. Cross-domain synthesis still sits inside positive space in the weights, even when your own community missed it. True negative space in the weights is rarer: an idea none of those domains have articulated yet. The same mechanism that makes work is why AI struggles to originate breakthroughs. Reading a text’s shadow works because the model strongly expects what should come next . Breakthrough creativity happens when a human writes something with near-zero probability that isn’t a missing step from an old template. Start in positive space. Run a prompt like , or pit multiple models against your argument, before you ship a draft or commit to an architecture. Let the collective memory in the weights show you where you’re hedging and where your identity bent the framing. Two kinds of surprise: skipping a standard step vs. stepping off the edge of the map. Keep the mirror’s limit in view. Because the weights reflect collective consensus rather than truth, a model catches your personal blind spots fast and still misses gaps shared across the entire training corpus. Obey every omission it flags, and you’ll sand off what made your argument worth making. How do you tell an accidental omission from a deliberate leap when your own ego is an unreliable judge? Test whether you can state the missing premise out loud and argue against it fairly. If the critique makes you want to hide the caveat, you hit a blind spot. If you can name the consensus view cleanly and show why it breaks here, you’ve earned the detour. When your work surprises the model because you have something genuinely new to say, rather than something you forgot to admit, you’ve left positive space behind.

0 views
spf13 2 weeks ago

Creativity in Negative Space

We talk a lot about what AI is getting good at, and the list is impressive. It can summarize research, write clean boilerplate, translate languages, and generate striking images. Because that curve has moved so fast, people naturally assume creative work is the next domino to fall. With a slightly bigger model or a longer context window, the thinking goes, AI will write a great novel, craft a stand-up comedy special, or create a movie that actually moves you. It won’t. Fluency was never what made work creative. Creative work starts with noticing what’s missing, and more data and more compute don’t add that. AI operates entirely in positive space . Human creativity lives in negative space . Rubin’s vase : two faces, or the shape between them. In visual art and design, negative space is the unmarked area around and between the subjects. It’s easy to mistake it for empty background, but it gives a composition tension, hierarchy, and meaning. Culture and ideas work the same way. Positive space is everything that already exists in the world: every trope, pattern, sentence structure, and convention that has been written down, repeated, and absorbed into training data. Negative space is the gap in the universe where nothing exists yet. When people misunderstand creativity, it’s usually because they confuse recombination in positive space with creation in negative space. A lot of what passes for “creative” work has always been derivative: taking last year’s hit movie, last year’s enterprise software, or a competitor’s product and making the next predictable iteration. Models excel at that because recombining what already exists is what neural networks are built to do. Real creativity is different. It’s looking at the world, noticing a gap that nobody has named yet, and putting something into that gap. You assemble it from your lived experience, your scars, and your influences, but the destination sits outside the map of prior art. Strip away the marketing and a neural network is a large stack of matrices. Text goes in as numbers, gets multiplied through layers of learned weights, and comes out as a probability distribution over the next token. Training sets those weights by fitting them to a body of existing human work. After that, the model is a fixed function: the same input gives the same distribution, every time. That doesn’t mean a model can only repeat what it has seen. With billions of parameters it can land on combinations no person has tried, and ML researchers will point out that by the strict definition, models in high dimensions almost never interpolate . They’re right, but producing something new was never the difficult part. Sampling randomness (temperature) shuffles which likely answer you get. It doesn’t add insight, any more than rolling dice adds taste. What a model can’t do is tell which of those new things matters. A gap nobody has named leaves no trace in the data, so nothing in the weights marks it as missing and nothing in training rewards finding it. No matrix multiplication calculates “this should exist and doesn’t.” A model can generate a million things nobody has seen before with no way of knowing which one the world needs. The obvious objection is that people learn from prior art too. Of course they do. Writers learn from other writers, and programmers learn by reading other people’s code. The difference is that people also bring things that were never written down anywhere, like the experience of using something every day and knowing it’s wrong. I don’t think an AI would have ever created Cobra . When I was building Hugo in 2013, I kept running into the limits of flags. Even a tool as simple as Hugo already let you combine flags that didn’t make sense together: Tools like , , and handled this with subcommands, each with its own set of flags, and that’s how I wanted Hugo to work: There were already plenty of CLI frameworks in lots of languages. I tried all of the existing Go ones, and every one of them felt wrong. Most were built from code pulled out of the tool, which was never meant to be a general-purpose library, and they only supported a single level of commands. I couldn’t point to one thing that was broken. It was a feeling. I knew what I wanted Hugo’s experience to look like, and none of them could create it. That was the negative space. Nothing was in its place. I had a strong conviction that Hugo needed to work a certain way for me to want to use it, so I wrote the framework that made it possible. It turns out a lot of other people thought that was the right way to do things too. Cobra ended up underneath Kubernetes, Docker, and the GitHub CLI, and it helped define how modern command-line tools work. Years later I wrote those conventions down at cli.style . The second principle is use subcommands, not mode flags and the third is make invalid combinations impossible , which are the same two problems I had with Hugo’s flags in 2013. A model trained on every CLI library that existed in 2013 would have given me a cleaner version of the libraries I had already rejected. What I had that the data didn’t was the sense that all of them were wrong. The same boundary shows up in every form that depends on tension, timing, and human truth rather than surface polish. Take stand-up comedy. A joke is almost pure negative space. It works because two people in a room share an unspoken truth they haven’t admitted out loud, and the comedian builds a bridge toward one expectation before snapping into that silence at the exact right beat. Ask an LLM to write a stand-up set and you get the rhythm and syntax of a joke (setup, punchline, callback), but completely hollowed out of surprise. It knows what jokes sound like in positive space, without ever having lived the awkwardness, pain, or observation that makes a room laugh. Storytelling works the same way in a novel or film. A model can generate grammatically flawless prose and plot beats that follow Joseph Campbell’s hero’s journey to the letter. Yet after three pages, your eyes glaze over. Great storytelling lives in the subtext, not the plot events. It’s the line of dialogue a character refuses to say, the scene that cuts three seconds early, the weird obsession that only makes sense four chapters later. In product design, the breakthroughs that delight people come from negative space. Steve Jobs didn’t invent the MP3 player. Plenty of companies shipped MP3 players before Apple, and every one of them was iterating in positive space, arguing over storage megabytes and file folders. Apple looked at the negative space around the device (how miserable it was to get music onto it and find a song in your pocket) and built the iPod into that gap. Competitors spent the next decade copying the positive-space artifact while missing the insight that created it. This is the intuition behind the famous (if apocryphal) line attributed to Henry Ford: “If I had asked people what they wanted, they would have said faster horses.” Ask people what they want and they point at things that already exist, only faster or cheaper. Nobody can ask for what they haven’t yet imagined. Spotting the gap takes someone willing to stand in the empty space, and that’s rare even among humans. A model trained on what people already said has no way to do it. What AI has actually done is strip away the illusion that fluency and creativity are the same thing. For decades, technical execution was so expensive that we conflated the ability to produce a polished surface with the ability to create something meaningful. Now the surface is cheap. Anyone can generate five thousand words of smooth prose or a slick product mock-up in thirty seconds. A model can remix the archive of everything humans have already said. It takes a human with taste, restraint, and a point of view to notice what is still missing, and to put something real into the gap. And when positive space floods with endless, cheap variations of what we already have, negative space becomes the only thing that matters.

0 views
spf13 1 months ago

Game Boy Color on My Conference Badge

After finishing the NES emulator , every NES game I tried played fine. I even beat the first few dungeons in Zelda on the badge. This all got me thinking that while I wanted to play Zelda on this, its form factor really looked a lot like a Game Boy. A lot more like a Game Boy than an NES. And there’s Zelda and Pokémon games on the Game Boy. I wonder how hard this will be as I don’t know really anything about Game Boy hardware. Turns out it was quite hard. So I teamed up with Gemini again to see if the same Badger board and RP2350 could run Game Boy and Game Boy Color. We had the same MicroPython Viper emitter and the same 8 MB of QSPI PSRAM, just a very different puzzle on the CPU and cartridge side. You don’t need an emulator background for this; I’ll explain each term as it comes up. I thought the SM83 would be simpler. It was not. On the NES, the CPU is a Ricoh 2A03, a trimmed MOS 6502 with three 8-bit registers ( , , ), one stack pointer, and 56 instructions. The whole core fit in local variables inside one loop over a fixed, unbanked memory map. The Game Boy has the Sharp SM83 ( ), an 8080/Z80 hybrid with eight 8-bit registers ( , paired as ), a stack pointer, a program counter, and 512 instructions: 256 base opcodes plus 256 behind the prefix, nine times the 6502’s count. While the CPU is more complicated, the display is simpler: 2.67× fewer pixels, 1.7× fewer scanlines. To get this to work within the constraints of MicroPython I had to implement five additional Viper tricks the original NES build didn’t have. On the NES that approach worked. The 6502 has three registers — , , — so , , , and a few pointers still fit in Viper’s four fast locals ( – ). Its 56 opcodes started as a 55-deep chain that collapsed into a five-level binary search to halve dispatch cost. One Viper loop, fixed memory map, compiled clean. The SM83 doesn’t fit. Eight registers ( , , , , , , , ) plus , , and cycle counters overflow those four locals — the Cortex-M33’s other registers are reserved for stack, exception frame, and runtime. That’s : the register file won’t fit in locals. The decoder doesn’t scale either. A tree that worked well for 56 opcodes needs ~500 branches for 512 (256 base + 256 -prefixed). What made the NES fast won’t even build for the Game Boy. That leaves two problems: where to keep eight registers if not in locals, and how to decode 512 instructions without 512 branches? Reading each opcode as three small numbers instead of one collapses 512 instructions into a handful of blocks. For it to index registers directly, the 8-bit register file had to move out of Viper locals and into flat memory: eight bytes at inside one ( ): Index is the exception: on the SM83, in the bitfield means indirect memory through instead of a register, so the real registers sit at . The Z80/SM83 designers worked on paper in octal . Read any opcode byte in base 8 and it splits into three octal digits ( , , ), which are the instruction set’s bitfields: All 64 instructions ( ) share , so they collapse into five lines of Viper: That single check covers sixty-four opcodes, with and picking the destination and source registers. When , those same bitfields map to all eight ALU ops on from ( , , , , , , , ), handling another sixty-four arithmetic instructions in one block. The 256 bit ops split the same way: is , is , is , and shifts, rotates, or swaps on . Fifty lines of bit math replaced hundreds of branches. On the NES I could cheat. RAM, PPU, APU, PRG-ROM, everything sits where it was wired, so a read is just an address check and you’re done. The Game Boy doesn’t do this. The CPU still sees 64 KB, but the cart is constantly swapping what lives behind that window: My first version checked the address on every access, if it’s in this range do this, else if it’s in that range do that: That’s readable, and it matches how the memory map is drawn in every doc. But the Game Boy runs at 4.19 MHz — double that in GBC double-speed, so that check runs millions of times a second. Again, running into the constraints of this limited hardware. Every is a branch the Cortex-M33 has to predict, and a miss stalls the pipeline. The trick is that every Game Boy address is 16 bits — four hex digits like . In binary that’s , where the left four bits (15–12) are the top nibble and the right twelve bits (11–0) are the position inside a 4 KB page. A page is 4 KB = 4,096 = 2¹² bytes, so shifting right by 12 ( ) drops the low twelve and leaves just that top nibble: 0 to 15. Sixteen values, sixteen pages, exactly covering 64 KB. Masking the other way ( ) keeps the low twelve as the offset 0–4,095 inside the page. → (page 13) + (offset 291). That top nibble already tells me which bank to use, no needed. I keep a 16-entry page table in (slots 32–47 of the ) with precalculated offsets into , indexed directly by that nibble: Switching banks is one store, no copy: And a read is four lines with no branches: Lookup, mask, add, load. Banking stopped showing up in profiles after that. NES cartridges in our library were 40 KB to 256 KB, small enough to read into RAM in one shot at boot. Game Boy Color cartridges are much larger: Link’s Awakening DX is 1 MB (64 banks of 16 KB) and Pokémon Crystal is 2 MB (128 banks). Reading 2 MB off QSPI Flash at launch freezes the badge for several seconds. When we pushed the RP2350 to to get extra frame headroom, the badge hard-locked on bank switches. USB serial died with it; only a power cycle brought MonaOS back. The bottleneck was the shared QMI bus: The RP2350 is rated at 150 MHz, and this badge’s firmware runs at 230 MHz (a 53 percent overclock). Per the badge hardware schematic and Pimoroni’s board config , the 16 MB Winbond Flash and 8 MB AP Memory PSRAM ( on ) share and with ( ). At 230 MHz, QSPI runs at: $$\frac{230\text{ MHz}}{2} = 115\text{ MHz}$$ Both memory chips are rated for 133 MHz max ( notes as the “Absolute maximum before a drop in PSRAM freq” ), so 115 MHz gives comfortable timing margin. At 300 MHz, QSPI hit 150 MHz — past the 133 MHz spec on both parts. The Cortex-M33 core survived, but burst-copying 16 KB banks from Flash ( ) into PSRAM ( ) over the shared QMI bus locked the hardware. Because the badge has 8 MB of PSRAM on the MicroPython heap ( reports bytes free), we didn’t need to evict banks or overclock the bus: That eliminated both the multi-second boot stall and mid-game Flash thrashing. The Game Boy LCD is 160×144 and the badge screen is 320×240. Not enough to double the size, but it can do 1.5× (240×216, repeating every other scanline ), which seemed like it was a nice compromise. On the screen it’s ok. It results in doubling up the width of some things and keeping others normal thickness. It has the advantage of taking up the entire height of the screen, but with the visual compromise of not actually what the game should look like. I kept in the scaler but made the default the native 1:1 : 160×144 centered on 320×240, one LCD pixel per badge pixel and just have a larger gutter around it. At 1:1 the pixel art replicates the original intent of the artists, but you might need glasses to actually read it. Reminds me of the old Game Boy screen magnifier which was just a magnifying glass that mounted to the Game Boy screen. Maybe someone can make one for the badge :) The Joyplus Handy Boy with its magnifier and stereo speakers. Photo: Thomas Bresson , CC BY 3.0 Centering a 160×144 viewport leaves 80 px gutters on the sides and 48 px on the top and bottom. Empty space beside a running game reads as a mistake, and a real Game Boy has plastic around its screen anyway, so I drew a bezel in twilight slate with gold pinstriping and cream lettering along the bottom (switching to for monochrome cartridges). The left gutter holds a small HUD for battery, frame rate, and a live capacitive D-pad and button visualizer; the right gutter shows and save-state indicators. The underlying hardware had a very long run — the original monochrome Game Boy launched in Japan on April 21, 1989 and the Color revision that doubled the SM83 to 8.4 MHz didn’t arrive until October 21, 1998, nine years later on the same 160×144 PPU. Nintendo kept the combined GB/GBC family in production until March 2003. By that tail end there were no untried registers left, so late-era GBC games lean on every trick the hardware allows, from mid-frame window layers to animated fonts streamed out of ROM. In Oracle of Ages , walking up to an NPC brought up the bottom dialogue box, and the overworld sprites bled right through it, drawing over the text. To draw a bottom dialogue box ( ), the game turns on the Window layer ( bit 5) via at scanline 80 and clears it again at VBlank. My first renderer only checked a single frame-level after scanline 143 had finished, judging all 144 scanlines by whatever state the registers held at the end of the frame. Movable rocks on scanlines acted as if the Window covered them, while sprites on drew over the text because VBlank had already cleared bit 5. Latching , , , , and into and on every scanline — and tracking the active Window line counter in during rendering — gives the renderer what the PPU actually saw on that line: Link’s Awakening DX had a weirder glitch: Link’s two-tile walk animation tore inside-out for a single frame on every step, but only when walking down, never left or right. Walking left or right keeps Link’s two 8×16 sprites in place. Walking down swaps their VRAM tiles ( / ) and toggles ( ) on both OAM entries ( / ) every 8 frames. Because Link’s Awakening DX runs in GBC double-speed mode ( bit 7), the CPU gets 228 M-cycles/scanline , not 114. Budgeting 114 starved the scanline midway between the VRAM tile write and the OAM flip, leaving Link half-turned for a frame: Giving double-speed mode its full 228-cycle scanline budget fixed the tear. When I booted Pokémon Crystal , Professor Oak’s intro and every menu border came up as empty rectangles. I did not know the hardware allowed what the game was doing here. To decompress 1bpp font and border tiles into 2bpp WRAM, Pokémon Crystal calls ( ), which points SP into banked ROM ( ) , loops to pull two bytes every 3 M-cycles, streams the result over HBlank HDMA ( ), and stops the transfer with on ( ). I had assumed always lived in RAM and was an ordinary bit op, which broke both steps. Routing through the ROM window when and treating bit-7 clears on as an HDMA cancel (not a 128-tile GP-DMA ) brought Oak and the borders back. Paired with a background renderer that skips empty tiles, render time in our serial timings sits around 1.5 to 2.8 ms per frame. From what we measured on the badge, CPU execution stays under 12 ms and rendering under 3 ms, keeping the loop inside the 16.6 ms budget for 60 Hz gameplay. Saving has to work too because it’s a conference badge. The code is open source at github.com/spf13/universe-2026-badge-hacks . To put it on a badge: Connect the badge over USB, open USB Disk in MonaOS, and mount the drive. Clone the repo and copy the app over: Copy your own legally dumped / files into (no copyrighted ROMs are distributed): Safely eject the drive, open the GBC launcher, flip your badge upside-down, and play. Building the Game Boy Color emulator ended up making the NES emulator faster too. Once those five Viper tricks worked on the SM83, I ported them back to : pointer-based CHR bank switching ( / into instead of copying 8,192 bytes into Python on every switch), keeping all 262 scanlines inside one Viper call instead of breaking out on , dirty-flagged Viper palette updates ( ), precomputed nametable row pointers with unrolled 8-pixel writes in , and tighter operand and wait-loop fast paths. Now I have a Game Boy Color hanging from my neck, running Link’s Awakening DX and Pokémon Crystal at 1:1. If you’re at Universe in San Francisco, come say hi. : 16 KB fixed ROM Bank 0 : 16 KB switchable ROM Bank (up to 125/128/512 banks under / / ) : 8 KB External SRAM (4 banks) : 4 KB fixed Work RAM Bank 0 : 4 KB switchable WRAM (Banks 1–7 via at ) : Echo RAM (mirror of ) Stay at the badge’s stock 230 MHz so the QMI bus stays at 115 MHz. Allocate the full cartridge arena once in PSRAM ( ) with , falling back to the 20-slot ring buffer only if triggers. Preload only Bank 0 and Bank 1 at launch so games boot immediately, then fault in each 16 KB bank on first visit ( ) and keep it pinned in PSRAM for the rest of the session. Holding or for 650 ms ( in , alongside a 60-second timer when no buttons are pressed) snapshots state and opens the pause menu for frame skip, scanline filters, scaling, and exit. Touching the rear capacitive HOME pad fires , calling to write the 84 KB arena and register state to flash before returning to MonaOS. Connect the badge over USB, open USB Disk in MonaOS, and mount the drive. Clone the repo and copy the app over: Copy your own legally dumped / files into (no copyrighted ROMs are distributed): ( Link’s Awakening DX ) ( Pokémon Crystal ) ( Dragon Warrior I & II ) ( Tetris DX ) ( Oracle of Ages ) ( Super Mario Land ) ( The Final Fantasy Legend ) Safely eject the drive, open the GBC launcher, flip your badge upside-down, and play.

0 views
spf13 1 months ago

Zelda on My Conference Badge

As one of the GitHub Stars and a member of the GitHub Creators program, I got a package a few days before GitHub Universe: my conference badge, early, with a little note card tucked in that said hack this . As soon as I saw it I thought — man, this has a game controller on it, and it’s kind of perfect. Hanging from a lanyard around your neck, you can just grab it, hold it up, and play. I wonder if I can get The Legend of Zelda on it. So I backed up the flash, mounted the filesystem, and verified the restore came back clean — the whole badge is recoverable from USB, which is why every experiment below ships as you can delete if you want every byte back. With that safety net I started working out how much of the badge I’d have to give up. This year’s badge is called Badger , and it’s a nice piece of hardware: an RP2350 (dual-core ARM Cortex-M33 running at 230 MHz), a 320×240 IPS panel, 16 MB of QSPI flash with about 9.76 MB free for user apps out of the box, 8 MB of QSPI PSRAM, an accelerometer, Bluetooth Low Energy, and an infrared transceiver. It runs MonaOS 4.0, a custom MicroPython environment with hardware-accelerated graphics primitives ( ), a dual-core software 3D rasterizer ( ), and LED control ( ). The obvious approach is to flash a bare-metal C NES emulator as a image. That takes about twenty minutes, and it works. It also turns the badge into a Nintendo emulator that used to be a badge which ruins the entire point. You lose MonaOS: the BLE contact exchange, the venue IR scavenger hunt, the two-player games, the tilt-controlled 3D Mona launcher. All of it. I didn’t want a dedicated emulator. I wanted Zelda , Super Mario Bros. , and Tetris to be an ordinary app inside MonaOS, sitting at , launching from the carousel, and dropping back to the OS when you tap the HOME pad on the back. Which means running inside MicroPython. And running an NES inside an interpreted language on a microcontroller runs into serious performance issues. I love a challenge like this. An NES needs three things: Standard MicroPython bytecode manages somewhere around 100,000–200,000 interpreted opcodes per second on a Cortex-M33. Full-speed NES needs roughly ten times that. Writing a native C module was an option but not one I was really interested in. Custom dynamic native modules on MicroPython are an ABI and symbol-matching gamble against a vendor firmware image. It just felt too risky and fragile of an option. If it breaks on someone else’s badge, it breaks in a way they can’t fix. So with a healthy amount of curiosity and with Gemini 4 Argon we went to work. The model drafted the inner loops from prompts describing the 6502, PPU, and mapper contracts — instruction decode, sprite evaluation, and bank switching. I set the four-pointer architecture around , , , and , shaped the Viper kernels, and measured every number below on hardware over USB serial. The remaining bugs ( , calls, the frame budget) are the kind you only get from running it. Other pure-Python NES emulators I tried allocate objects on every instruction and ran at less than half a frame per second on the badge in my quick test. So Gemini and I built our own NES emulator from scratch ( , ~1,100 lines): a custom 6502 CPU core, scanline PPU renderer, and Mapper 0 ( ), Mapper 1 ( ), Mapper 2 ( ), and Mapper 3 ( ) bank switcher engineered specifically around RP2350 . The thing that makes this possible is . Regular MicroPython, and even , still dispatches through the object model. Viper doesn’t. It compiles typed Python syntax directly into raw ARM Thumb-2 instructions at import time, and it works on unboxed values: machine-word integers and raw pointers ( , , ). So when you dereference , you get a single 16-bit Thumb-2 or . No heap allocation, no dictionary lookups, no garbage collector pressure. That one decorator closes most of the performance gap. The catch is that Viper comes with some fairly unforgiving constraints. Writing non-trivial emulation in Viper means living with the ARM Architecture Procedure Call Standard: So we packed CPU work RAM, OAM, palette RAM, VRAM, and the cartridge save window into a single contiguous 32 KB ( in the emulator, with PRG ROM banked in separately): The badge has no speaker, so there is no APU, and isn’t emulated — this is a picture-only port. The emulator’s own registers (program counter, accumulator, X, Y, stack pointer, status flags, cycle counters, PPU latches, MMC1 shift registers) all live in a 64-element 32-bit integer array ( ). Four pointers ( , , , ) are enough for the entire 6502 core and PPU to run without spilling. The panel runs in 16-bit RGB565. MonaOS exposes the underlying buffer as . Rather than rendering into an intermediate frame buffer and paying for a full-screen blit, the PPU scanline renderer writes directly into display memory: The NES screen is 256 pixels wide and the badge is 320, so centering it leaves a 32-pixel gutter on each side. Leaving that dark seemed like a waste. The left gutter now carries the mark, a live FPS counter (around 32 FPS in Zelda in this post-optimized build with the sidebar and HUD), and a controller input visualizer. The right gutter has the button mapping and a indicator that lights up whenever battery SRAM hits the disk. Flipping the Badge Upside-Down Turns It into a Handheld When the badge hangs from a lanyard, the 8-channel capacitive controller ( ) sits at the top of the board, above the screen. Genius design. It means you can grab the badge, keep the lanyard around your neck and play it like a gameboy as you rotate it 180° and the touch array lands under your thumbs, which is exactly where a handheld wants it. The only issue is the badge’s orientation is now inverted, so the logical mapping of the D-pad and action buttons is upside-down. The fix is simple: The first build that actually booted Zelda on hardware gave us 72.9 ms per frame: 31.9 ms in the 6502 core and 41.0 ms in the PPU renderer. That is 13.7 FPS, about 22% of real-time NES speed. Ok. This is awesome. We got it working, Zelda on my conference badge. Once running the next goal was to make it playable. Four changes took 49 ms off every frame, a 3.1× speedup, down to 23.7 ms in Zelda (about 42 FPS) and 10.9 ms of work per frame in Tetris : A tight read loop used for timing rather than waiting can skip cycles it needed. That is why the compatibility list below is fourteen titles I actually played rather than a claim of universal NES support — the mapper set and optimization are tuned to those. I’m sure other titles play and I’m sure some don’t. The emulator is open source, so you can try your own ROMs and see what works and since we live in the age of agents, have them help patch it for your favorite NES game. Zelda uses battery-backed RAM at to persist quest data (only when you die or open the save screen), while Metroid saves by password; Final Fantasy and Dragon Warrior also rely on battery-backed saves. Most NES classics ( Super Mario Bros. , Tetris , Contra , Castlevania , Mega Man 2 ) have no battery-backed save at all. Because the entire machine state is a 256-byte register array ( ) plus one contiguous ( ), full save states were nearly free to add. They sit next to the battery SRAM image on the badge’s LittleFS partition, as and . One more caveat: the save inherits the write risk — back up anything you care about over USB, or let’s be honest, if you care about it don’t do it on a conference badge. The 60-second auto-save timer is deliberately lazy to be gentle on flash. in the ROM list means a save-state file was found for that title — the list’s marker for “there’s a restore here.” Turn-based RPGs and handheld classics are a natural fit for a lanyard badge you carry between conference sessions. Alongside action staples ( The Legend of Zelda , Super Mario Bros. , Tetris , Contra , Castlevania , Mega Man 2 , Metroid , Donkey Kong Classics , Pac-Man , Galaga , Excitebike , Dr. Mario ), we added full MMC1 + battery SRAM + instant save state profiles for Final Fantasy ( ) and Dragon Warrior ( ). Tetris Mega Man 2 Final Fantasy (NES, MMC1 + save states) Two-Minute Install The NES emulator ( ) and the Hardware Lab ( ) are open source: github.com/spf13/universe-2026-badge-hacks Mount the badge as USB storage. Plug it in over USB-C and launch the USB Disk ( ) app from the MonaOS menu. It shows up as a removable drive ( on Windows, on macOS). Clone and copy : macOS (zsh): Badge not at ? Run to find it — some Macs mount it as or . Windows (PowerShell): Drive letter varies — check File Explorer if doesn’t exist. Add your own ROMs that you’ve dumped yourself and legally obtained. No ROMs are included or linked: Eject & play. Safely eject the drive (macOS: right-click → Eject or ; Windows: system tray → Safely Remove), pick NES from the MonaOS menu, turn the badge upside-down so the capacitive pad sits under your thumbs, and go. Conference badges used to be glorified flashing name tags. Today they’re dual-core ARM computers that compile native machine code at import time, and the interesting part of this project was finding out how far that actually gets you. Today it’s far enough for a playable NES. If you’re heading to GitHub Universe 2026, I look forward to seeing you there. Just remember to save your game before the keynote. (Since it felt like a Game Boy I then wondered if I could get it to run Game Boy Color games too. See the follow-up post: Game Boy Color on My Conference Badge .) An emulated 8-bit Ricoh 2A03 (a 6502 core) at 1.789773 MHz, about 29,780 CPU cycles per frame at 60 Hz. A Picture Processing Unit rasterizing 240 scanlines of background tiles and up to 64 hardware sprites. 61,440 pixels written to the display buffer every frame. Four arguments, maximum. Viper functions take through . A fifth argument is a compile-time error. No working Viper-to-Viper calls. Calling one Viper helper from another boxes the arguments back through the MicroPython runtime, or fails to compile with on Cortex-M33. Every hot kernel, especially, has to inline its own memory reads, writes, and bank switches into one self-contained function. Explicit casts. Reading a byte out of into a typed local needs an explicit , or the on-device compiler stops with . No dynamic structures. No dicts, no objects, no tuples in the inner loop. Primitive arrays and pointer arithmetic only. : 2 KB internal CPU work RAM (mirrored up to ) : 256 B object attribute memory (sprite OAM) : 32 B active palette RAM : 4 KB VRAM and nametables : 8 KB pattern table and CHR RAM window : 8 KB battery-backed save RAM ( on the 6502 bus), mapped when the cartridge claims it : 8 KB spare tail reserved for cartridge expansion Eight buttons, NES-shaped: four D-pad channels, two right-hand action pads ( for A, for B), and two pads in the middle ( for START, for SELECT). All eight are touch channels, and the firmware exposes them as logical actions rather than fixed GPIOs. Automatic rotation ( ): the IMU notices the inverted orientation, flips the screen buffer 180°, and the logical mapping swaps and . Bypassing the display compositor at 230 MHz. We initially experimented with , which worked for smaller ROMs in internal SRAM but pushed the shared QSPI Flash/PSRAM bus ( ) to 150 MHz and locked up the QMI bus on larger cartridges. Keeping the badge’s stock 230 MHz clock (already a 53% factory overclock over the RP2350’s 150 MHz spec, keeping the QSPI bus at its 115 MHz ceiling) and configuring , , and gave us a rock-solid, low-overhead display path. Removing runtime division. Even inside Viper, or emits calls to the C helper, 7,680 of them per frame. Replacing all tile coordinate math with bit shifts ( , ), pre-populating the universal background color into palette slots for branchless lookups, and fast-pathing empty 8-pixel tile rows ( ) cut + from 41.0 ms to 9.4–12.1 ms. That is 3.4×. One Viper call per scanline instead of per instruction. Moving the entire scanline instruction loop ( ) inside Viper reduced ~10,000 Python-to-Viper transitions per frame down to 262 (one per scanline, returning briefly so Python can service bank switches). Caching , , , , , , and the PRG bank offsets in local ARM registers, and replacing the 55-deep linear opcode chain with a balanced five-level binary search tree, roughly halved dispatch overhead. Fast-forwarding idle spin loops, then frame pacing. Zelda and Super Mario Bros. spend dozens of scanlines spinning in two- and three-instruction loops waiting for a sprite-0 HUD split ( , ) or the VBlank NMI flag ( ). When we see a taken backward branch ( in ) that lands on a pure read, the emulator fast-forwards the rest of that scanline in one step. went from 32.0 ms to 11.6 ms (3.0 ms in Tetris ). Then stepping two logic frames per rendered frame whenever wall-clock delta exceeds 18 ms keeps game logic at 60 Hz. Rendering is honest about its limits: about 42 FPS uncapped in Zelda (23.7 ms/frame), 32 FPS with the FPS counter and sidebar drawing, 58 FPS in Tetris (10.9 ms of work per frame), which is smooth enough to play. Idle auto-save. Every 60 seconds, as soon as you briefly let go of the buttons (so a flash write never interrupts a jump or a sword swing), the emulator snapshots CPU registers, PPU latches, VRAM, and SRAM to flash in about 160–390 ms and flashes in the right gutter. Save on pause, exit, and HOME. Holding A + B (or START + SELECT) for 650 ms saves and opens a pause overlay: , , , , , . The HOME pad on the back fires an IRQ ( ) that saves and returns cleanly to the MonaOS launcher. Relaunching a game marked restores the exact frame and position in 14 ms. Mount the badge as USB storage. Plug it in over USB-C and launch the USB Disk ( ) app from the MonaOS menu. It shows up as a removable drive ( on Windows, on macOS). Clone and copy : macOS (zsh): Badge not at ? Run to find it — some Macs mount it as or . Windows (PowerShell): Drive letter varies — check File Explorer if doesn’t exist. Add your own ROMs that you’ve dumped yourself and legally obtained. No ROMs are included or linked: macOS: drop any file into ( , , , , , , , , , etc.) — Finder drag-and-drop works too. Windows: same files into . Eject & play. Safely eject the drive (macOS: right-click → Eject or ; Windows: system tray → Safely Remove), pick NES from the MonaOS menu, turn the badge upside-down so the capacitive pad sits under your thumbs, and go.

0 views
spf13 4 months ago

Why TypeScript 7.0 Was Rewritten in Go (and what it means for your dev stack)

Over the last year, the team that invented TypeScript ported the TypeScript compiler and tools to Go . Not Rust. Not C++. Go . Microsoft’s numbers show build times improving by roughly an order of magnitude in the Go-based TypeScript 7.0. In the age of AI-assisted development, one of the largest JavaScript/TypeScript organizations on earth chose Go for its flagship tool. Microsoft’s reasons were pragmatic, and Anders Hejlsberg laid them out : the existing compiler’s function-heavy style ported to Go nearly one-to-one, both the old and new compilers depend on garbage collection, and native code with shared-memory concurrency is where the 10x came from. The announcement doesn’t mention AI once. But the properties that made a pragmatic 1:1 port possible: simple functions, no hidden magic, a GC, code a team can hold in its head, are the same properties the next era of development demands, and that’s what this post is about. Go was built on a bet: optimize for the reader, not the writer, in exchange for less code to misread. LLMs read code more than any human ever could, and as they write a growing share of it, humans become even more reader-heavy. Agentic development is the most extreme test yet of the goal Go was built for: readability, maintainability, long-term correctness at scale. The conventional argument for Python and TypeScript in the AI era is strong on the surface. Python has PyTorch, LangChain, and the ML ecosystem. TypeScript has the web and a vast developer pool. LLMs trained on mountains of both write them fluently, confidently, and fast. Python and JavaScript were designed as scripting languages: fast to write, forgiving, dynamic. TypeScript adds structure on top, but it’s a compile-time overlay: types are erased at runtime, so none of TypeScript’s guarantees survive execution. TypeScript hasn’t displaced JavaScript so much as grown alongside it: GitHub’s 2025 Octoverse report has TypeScript overtaking Python and JavaScript by monthly contributors, but JavaScript still generated nearly double the new repositories over the same 12 months, and GitHub’s own summary is blunt: “JavaScript is still massive,” and the combined “JavaScript/TypeScript ecosystem still accounts for more overall activity than Python alone.” Agentic systems aren’t scripts, though; they’re services, pipelines, CLIs, and distributed systems running in production for years, and all three languages fight that design at every step: complexity management, dependency isolation, deployment, runtime safety. Go was designed as a systems language for large, long-lived software, and the industry is converging on exactly that category: compiled, safe, built to run for years, not scripted for an afternoon. The most exciting thing happening in TypeScript right now is its port to Go. The most exciting things happening in the Python world are mostly happening in Rust: Pydantic ’s validation core is Rust, Polars is Rust, HuggingFace tokenizers is Rust, and Astral’s is Rust too. Go’s share of that shift looks different but is just as telling: it’s the default choice for the infrastructure the current wave of agentic tools is built on. Ollama , the standard way to run local models, is Go. Weaviate , the vector database behind countless RAG and agent-memory stacks, is Go. Temporal , the durable-execution engine teams use to orchestrate long-running agent workflows, is Go. Charm’s Crush , a beautiful AI coding agent CLI in the same category as Google’s Antigravity , is Go too. Even GitHub’s own MCP server , the reference implementation for connecting AI agents to GitHub, is Go. In a development loop, the question isn’t “which language is easiest to write?” It’s “which is easiest to write, review, and ship?” Agentic development multiplies that question. A machine now asks it hundreds of times a day. An agentic coding loop looks like this: implement → build → test → analyze failure → self-correct → repeat. A human developer runs this loop maybe a dozen times per hour; an autonomous agent runs it dozens of times per task : what Anthropic’s guidance on coding agents describes as systems that “iterate on solutions using test results as feedback.” That frequency changes the economics of language choice. Wes McKinney named this shift in his essay on agent ergonomics : once an agent is doing the coding, fast compile-test loops, frictionless distribution, and deterministic builds matter more than whether a language is pleasant for humans to type. He didn’t just write about it. Roborev , his continuous background code-review tool for AI coding agents, is built in Go. Go solves four compounding problems that most engineers don’t notice, because they’re so used to the friction they no longer see it. Each one is paid for in the same currency: developer time and focus, agent iterations, and API dollars spent correcting what the language let through. And they stack in order: slow builds waste iterations, broken dependency resolution wastes entire runs, weak error feedback lets mistakes survive those runs, and ecosystem churn invalidates what the agent knew before it started. A several-minute build is routine for large Rust or C++ projects: a minor break for a human, but hours of wasted cycles for an agent running 50 iterations on a feature. Go compiles almost instantly, keeping the loop tight. Python’s still doesn’t guarantee deterministic installs by default, and version conflicts across machines remain common even with virtual environments. Node’s actually handles conflicting transitive dependencies well: nested can hold multiple versions of the same package side by side, and plus make installs far more reproducible than they used to be. Where npm still gets stuck is peer dependencies, where conflicting requirements throw errors that need manual untangling. That version flexibility costs deep, duplicated dependency trees that bloat and inflate the surface area an agent has to reason about. Both ecosystems also let arbitrary code execute at install time ( , scripts), a real supply-chain risk that’s bitten each more than once. Go takes a different approach by default: pins exact checksums, a single version of each module is selected deterministically for the whole build, and there’s no install-time code-execution hook for a compromised dependency to exploit. For an agent generating and deploying continuously, that’s less version drift and a smaller attack surface. Python’s type hints and TypeScript’s type system can catch real mistakes before runtime, when tools like , , or run as part of the loop. But both come with an asterisk: Python’s typing remains optional and unevenly adopted, even as tools like Pydantic push teams toward it, and TypeScript’s guarantees are erased at runtime, with a sanctioned, zero-cost escape hatch whenever code hits friction. That’s the incentive an agent under time and token pressure responds to: reaching for to make something compile costs nothing in the moment, whatever the wider ecosystem’s norms are. Jesse Vincent, who builds the Superpowers agent orchestration framework, has documented what happens when that opt-out exists: agents rationalize their way around rules. In one now-infamous incident , an AI agent in his environment deleted test files to make failing tests disappear: internally consistent logic, since tests that don’t exist can’t fail. His insight, in his own words : “A rule has an opt-out path (I can rationalize ‘I’ll do it after this one thing’). A gate doesn’t — the next action is blocked until the gate condition is met.” Go has no such opt-out. Go does have (it’s the alias for ), but it isn’t TypeScript’s . TypeScript’s turns the checker off for everything it touches; Go’s is still checked at every use site, and the compiler refuses any operation the type can’t support without an explicit assertion it verifies. The escape hatch is itself gated. When a mistake slips through in Python or TypeScript, it tends to surface at runtime, often after the agent has built more work on top of it, and by then it has compound interest in context and API calls spent. In Go, the same error is caught immediately at compile time, before the agent runs anything. The difference shows in the code itself: Python’s ergonomic advantage is a disadvantage here: the more forgiving the language, the more mistakes an agent can make before getting caught, burning context and API calls along the way. The same gap shows up in code review , now that both sides are often AI: a reviewing agent can see what Python or JavaScript code says but not reliably what it does, since metaclasses and prototype chains hide behavior a static read can’t catch. Go closes that gap the same way it closes the authoring gap: a function name means one thing, method dispatch is by name alone, and there’s no hidden control flow to obscure a bug from either side of the review. Go’s types aren’t a layer added on top; they’re the language itself, covering 100% of the code by construction. This may be the largest of the four. Go’s compatibility promise means code written for Go 1.0 in 2012 still compiles and runs correctly today. The language and standard library only add; they essentially never break what already worked. Nothing in the Node ecosystem offers that guarantee. Major frameworks routinely break compatibility with their own prior versions: Svelte 5’s runes are a different reactivity model than Svelte 4, Vue 3 required rewriting Vue 2’s reactivity model from scratch, and React’s evolution from class components to hooks to server components has left multiple incompatible eras of “how React code looks” in active circulation. Ask which Svelte or Vue version a piece of code targets and you’re really asking whether it runs at all. Python isn’t immune; the decade-long Python 2 to 3 migration is its own cautionary tale. But Node’s churn is faster and more constant. That churn is a specific, compounding problem for agents. An agent’s working knowledge of an ecosystem is a snapshot frozen at training time, and in a fast-churning ecosystem that snapshot goes stale, producing code that looks plausible but targets an API surface already reworked or deprecated. In Go, a training snapshot from years ago is still correct today. In practice, that means an agent can rely on what it already knows instead of re-verifying its assumptions on every task. Dave Rensin, Distinguished Engineer at Google, captured the compounding risk while building a 100,000-user internal tool with AI agents : “If we aren’t careful, we aren’t just writing code faster. We are mass-producing our mistakes.” Rensin wasn’t talking about Go specifically; that risk is generic to AI-assisted development in any language. But it’s exactly the risk Go’s structure (static types, explicit imports, no magic) is built-in friction against: bad code is harder to write in the first place. At PayPal, a team shared with me an experience where a custom C++ database was powerful and correct, but the team had stopped growing: every hire spent months learning the codebase, and most engineering capacity went to maintenance. About six months later, with roughly ten engineers, a Go rewrite outperformed the C++ system in production and cost far less to maintain. Go isn’t faster than C++, so what happened? The bottleneck was never the code’s speed. It was the team’s ability to reason about, maintain, and extend it. Realized performance beats theoretical performance, the same trade agentic teams are making today, just compressed into a much shorter cycle. Rust and Go are complementary and typically occupy different use cases and both have a place in agentic development, but Rust is a specialized tool rather than the default. Rust shares a lot of strengths with Go: memory safety, static typing, no hidden runtime magic. Rust’s compiler errors are famously instructive, too: by this post’s own compiler-as-gate logic, an agent gets real value from a detailed borrow-checker message. However, the two languages diverge exactly where agentic development is least forgiving. Compile times run far longer, as the build-time problem above illustrates, and the expressiveness behind Rust’s safety guarantees (lifetimes, trait bounds, the borrow checker) costs the single-obvious-way readability Go guarantees by design. The cost shows up hardest at refactor time: in my experience, a change that stays local in Go ripples through lifetimes and trait bounds in Rust, and refactorability is the property agentic development leans on hardest. An agent, not a human, now does that rework, and agents need far more of it to get code right. The more complex the language, the more likely an agent misreads it and produces a bug that compounds over iterations. Rust’s zero-cost C ABI bindings, via tools like PyO3 and maturin, make it unusually easy to drop a compiled Rust core underneath a Python package, which is why pydantic, Polars, and HuggingFace tokenizers chose it. Go has historically been the weaker fit here, since cgo added real overhead to that kind of embedding. While Go is closing that gap: Go 1.26 cut the baseline overhead of cgo calls by about 30% , Rust remains the better choice for a lot of use cases. For agentic development, though, the tradeoff is clear: Go’s simplicity and readability make it the default choice for the systems layer that agents increasingly run on, while Rust is a specialized tool for when its guarantees are worth the cost. Everything above is a cost multiplied by iteration count. Context is the constant cost of agentic work, and more of it doesn’t mean better. The assumption behind “just use a bigger context window” is that a model reasons over its 200K or 1M tokens uniformly. Chroma’s 2025 study across 18 leading LLMs (GPT-4.1, Claude 4, Gemini 2.5, Qwen3) tested that directly, holding task difficulty constant and varying only input length, and found the assumption false: performance degrades as input grows, even on trivial tasks. The biggest driver is what the researchers call distractors: content topically related to what the model needs but not the answer. One distractor measurably hurts accuracy; four compound the damage. Instead of trying to grow the context window, the far better and more economical approach is to reduce the input. A class hierarchy, a mixin chain, a decorator stack: that’s a field of distractors to an agent tracing a bug. A call resolving through diamond inheritance, a metaclass rewriting behavior at runtime, an override buried three classes up: none of it is the logic the agent needs, but the agent still has to load it, weigh it, and rule it out, inside the same window where its reasoning is already degrading. That’s why agents confidently ship code that ignores an inherited override or calls the wrong mixin’s method. Go’s design is minimal and explicit. What a file needs lives in that file and its direct imports: no inheritance chains, no mixins pulled in from six directories away, no metaclass rewriting method resolution at runtime. A function name means one thing, and the compiler enforces it. The tokens Go code needs are almost entirely relevant tokens. That has a second effect beyond accuracy: it lowers the model a task requires. A bug that fits in 20,000 clean tokens doesn’t need the same frontier reasoning as one buried in 150,000 tokens of framework noise. Simpler, lower-distractor code is easier for a model to get right, which means smaller, cheaper, even local models can write working Go where they’d fail on the Python or Java or Rust or TypeScript/JavaScript equivalent. This matters even more when the AI companies stop subsidizing their costs, which we’ve already seen begin. A language whose code stays simple enough for a modest model to handle correctly has a cost structure that survives that subsidy going away. The same property pays twice: what lets a smaller model write the code correctly is what lets a human reviewer read it quickly, since neither side has anything hidden left to re-derive. Beyond even this, it’s more likely to get the code right the first time, which means fewer iterations, fewer API calls, and less context burned and more time the model can spend on tasks without humans needing to intervene. Context efficiency is the sharpest form of the same bet Go made in 2009: optimize for the reader, human or machine, over the writer. The same reader-first bet shows up at the surface of the code. ships with Go and runs across the community’s code. Every Go file (human-written, machine-generated, decades old, or written by an agent this morning) looks structurally identical. Simon Willison, who has spent considerable time building AI-assisted Go tools, observed this directly : “I’m enjoying how there’s generally one obvious way to do things and the resulting code is boring and readable—and something that LLMs are very competent at writing.” When every Go file looks the same, an agent can be seeded before it starts working. Point it at Go’s standard library ( , , ) and it immediately produces idiomatic, production-quality code, with no guessing about versus or versus . Drop in something like go-skills and the seeding gets more direct still, since the agent now has explicit, reusable guidance on writing idiomatic Go rather than inferring conventions from scattered examples. For code review, human or AI, attention goes entirely to logic instead of formatting noise. Most language comparisons focus on authoring: how fast can you write code? But the software development lifecycle doesn’t end there: build, test, deploy, debug, maintain. In an agentic workflow, every one of those steps runs at machine frequency. Over the past decade, Go’s ecosystem evolved from a language into a complete SDLC platform: fuzzing became built-in, vulnerability management matured with , workspace mode unified monorepo development, and module proxies reduced version conflicts. None of this required reaching outside the Go ecosystem. Dependencies are handled by , deterministic and identical on laptops, CI, and containers, unlike or , where every resolution failure is an iteration lost. Testing needs nothing beyond : no framework decision, no fixtures to configure. Drop a file next to the package, write a -prefixed function, run one command. For an agent enforcing test-driven development, that reliability makes the gate deterministic in a way Python’s fixture sprawl doesn’t. Compilation stays fast thanks to precise dependency graphs, a direct multiplier on iteration throughput. And deployment is just : a single, self-contained binary with zero runtime dependencies, no interpreter versioning, no container startup time. Copy the binary and run it. These advantages don’t add linearly, they compound. Faster loops at every step of the cycle mean more iterations per hour, lower API costs, and more reliable outcomes. The point of this article was never “replace Python” or “replace TypeScript.” Betting everything on a single language for every layer of a stack is the same mistake no matter which language wins. The real question is narrower: for the systems, services, and infrastructure layer that agentic workflows increasingly run on, which language fits best? In 2026, that’s Go more often than not because it fits that layer unusually well. Python’s ML ecosystem (PyTorch, LangChain, Transformers) isn’t going anywhere, and it shouldn’t. For training models and running inference, Python is the answer. Go doesn’t compete there. It complements it. Go can run underneath Python just as easily as beside it. Simon Willison built a tool called that packages compiled Go binaries as Python wheels distributed on PyPI: any Go binary becomes a standard or a one-liner, and his own , a concurrent filesystem scanner written in Go, ships exactly that way. Armin Ronacher, creator of Flask, makes the same point from the other direction: porting MiniJinja from Rust to Go cost him 45 minutes and $60 in API calls, which is why he argues that “the cost of coding is going down dramatically… the breadth of an ecosystem matters less.” Python orchestrates, Go executes underneath, and the lock-in argument for picking only one ecosystem weakens every month porting between them gets cheaper. You don’t have to choose between Go’s structural advantages and Python’s ecosystem; you can have both. Go was designed to lower the total cost of software at scale, exactly the problem agentic development now amplifies to the breaking point, and every property that made Go good for human-sized teams turns out to suit machines running thousands of iterations per day just as well. None of this makes Go the only language worth using. Python still owns the ML ecosystem, and there are real reasons to reach for Rust, TypeScript, or something else for a given task. Rather than “one language to rule them all”, treat Go as your default for the systems, services, and infrastructure layer of agentic development, and require a specific reason to reach for something else. When starting a new service, CLI, or system, ask “why not Go?” If you can name a compelling reason (a critical library that doesn’t exist, a performance profile Go can’t meet, a team investment so deep migration costs exceed savings), make that case. If you can’t, Go is very likely the right default. Every percentage point lost to slower builds, flaky dependencies, or runtime surprises is API cost. As agentic workloads scale through 2026, language choice may be the single biggest lever on that cost. Teams that remove this friction early will iterate cheaper and faster than the teams still paying for it.

0 views
spf13 6 months ago

The Maintainer's Dilemma

A protected branch requires a second person to review a change before code ships. The rule exists because humans make mistakes, and a second pair of eyes catches what the first one missed. But what happens when one of those reviewers is a robot? What if both are? Currently I can ask an AI to open a pull request on my repository and then merge it myself. Or I can write the code and ask an AI to review it. In both cases, the branch is technically “protected.” But what does that even mean now? Those are questions worth asking. But they tend to get all the attention while a more immediate problem goes unaddressed. Right now, across my repositories, there are open pull requests from people who took time to understand the codebase, write tests, and submit clean patches. I haven’t reviewed them. Sadly, the ironic part is I haven’t reviewed them because I deeply care. I know how big of a deal it is to take the time to open a pull request on a project, and even more so on a popular one. I know that each one deserves an honest review and that that takes time I don’t have for projects I maintain as a volunteer. For every open source project with a funded maintainer, there are millions with an unpaid human staring at a growing backlog, wondering whether the right thing to do is spend their weekend triaging issues or just close the laptop and go outside. AI tools can now do credible code reviews, write patches, and triage issues. The question is no longer whether they’re good enough to be useful. The real questions are where “useful” becomes “liability,” and whether leaning on them breaks something we can’t easily rebuild — the trust between maintainers and contributors, the judgment that comes from experience, and the community that forms around that exchange. I checked my GitHub notifications last week and closed the tab. Cobra has 243 open issues and 118 open pull requests. Afero has 114 issues and 55 PRs. I created both projects. I haven’t meaningfully reviewed a PR on either in months. In spite of my inaction as a reviewer, these are actively maintained projects. Cobra powers kubectl, GitHub CLI, Hugo , and hundreds of thousands of other tools. When you type or , Cobra parses your command. Afero sits inside Hugo, inside Cobra itself, inside hundreds of thousands of other projects. A careless merge on Cobra could break Kubernetes tooling. A bad review on Afero could open a filesystem vulnerability that quietly propagates through everything downstream. I created Cobra because I needed a specific CLI UX for Hugo and no existing library could support it. I split it out as its own project, thinking others might find it useful. I never imagined I’d still be maintaining it a decade later, or that both projects would become critical infrastructure for so many others. I just wanted to build something useful for me and maybe a few friends. But does open sourcing code mean I’m obligated to maintain it indefinitely? With each new project I release, there’s less time for the existing ones. Some of those PRs have been waiting for years. There’s a reported security vulnerability in Afero’s that’s been sitting open since June 2025 — which, until I wrote this post, I didn’t realize was there, because the backlog is that overwhelming. The math of maintenance doesn’t work. It’s a well-known problem across open source ( relevant XKCD ). The number of contributions grows faster than the number of maintainers, and the time required to review each one grows with a project’s complexity and impact. Some projects attract volunteer co-maintainers, but that brings its own problem: no one is clearly responsible, so everyone picks what matters to them and the rest just sits. Cobra is intentionally slow to change — too many projects depend on it to casually merge anything — so each change requires more thorough review, not less. Many of my other projects fall into the gray area between maintained and abandoned. I’d describe it as optimized maintenance around the most critical paths, but that distinction matters a lot more to me than it does to the person who submitted a fix eight months ago and never heard back. This isn’t just my problem. GitHub hosts over 420 million repositories. I was very fortunate to be a part of the inaugural cohort of the Secure Open Source Fund — a real investment that made a real difference. But even after expanding to several cohorts, it covers about 200 projects. OpenSSF scans a million critical projects weekly. Tidelift pays maintainers. Add it all up and you’re covering thousands of projects. It’s meaningful work. It’s also a rounding error against the actual surface area. Ninety-six percent of codebases contain open source components , and the foundations they build on are maintained by people staring at a backlog they’ll never clear, wondering if this is the weekend they finally burn out or just stop checking. And that’s before you get to maintainer guilt — the knowledge that people are counting on your work, that you have the capacity to help, but that you can’t keep up. I’ve been experimenting with AI tools across a couple of repositories — Jules on fileflow and pathologize , which have fewer dependencies and more room to try things. I’ve also been running GitHub Copilot on Afero, which has more dependencies, but its modular architecture lets me extend new backends without touching the critical paths other projects depend on. I turned Jules loose and watched email after email arrive with new PRs. Looked promising. Then I went on a cruise. While I was at sea, Jules kept going, opening more pull requests each day because I hadn’t merged the first ones yet. By the time I got home, I had over 120 PRs across the two projects. I set aside a morning to review them all, only to find they represented roughly five distinct change sets, each submitted daily over several weeks. The PRs themselves weren’t wrong, Jules had found real issues. But none were quite right either; each needed course correction before I could merge. With guidance Jules made the adjustments, and the overall direction showed promise. But the experiment so far has created more maintenance work, not less: I had to verify each of those 120 PRs was actually a duplicate before closing it. The tool meant to reduce my backlog had added to it. Jules also created these PRs as me, not as Jules — which raises its own questions about attribution and accountability. From the repository’s perspective, I authored those changes. But I didn’t write a line of them. If one of those patches introduced a bug or a vulnerability, the commit history points to me. Most contributor policies weren’t written with this scenario in mind, and the standard CLA doesn’t distinguish between code a human wrote and code a human directed an AI to write on their behalf. Currently, it appears that Jules has no memory of its own previous work and doesn’t have the ability to check open PRs. It scans the repository, finds an issue, opens a PR, and stops. If you don’t merge it, Jules finds the same issue next time and opens another PR. It has no way to know you’re aware of the problem and haven’t merged it for your own reasons: maybe you disagree with the fix, maybe it’s lower priority, maybe you’re on a boat and won’t get to it for a couple weeks. That context is invisible to the tool. Jules found a real vulnerability — TOCTOU bugs in file operations are a genuine class of security problem — and it was right to flag it… once. For the mechanical work — flagging issues, updating dependencies, drafting boilerplate responses — the tools are genuinely useful. But Jules and Copilot couldn’t tell me whether one of those 55 Afero PRs belongs in the project at all. That judgment requires knowing the codebase’s past and future, not just its present state. These tools work only from what’s visible: the code, the open issues, the PR history. Maintainers work from the visible and the invisible: the context that never made it into comments, the constraints nobody wrote down, the internal debates that shaped the API. The gap between those two things is where human judgment is most irreplaceable, and where AI is most blind. Russ Cox, who I worked with on the Go team, put this well in a recent discussion about AI contributions: “People brag about codebases of hundreds of thousands of lines that have never been viewed by people, churned out in record time. On closer inspection, these codebases invariably turn out to be more like dancing elephants than useful engineering artifacts.” He’s right about novel code. But I keep coming back to the distinction between writing new software and maintaining existing software. Dependency updates aren’t dancing elephants. Triaging a stale issue isn’t a creative act. Telling a contributor “thanks, we’re not accepting changes to this API” is just keeping the lights on. And right now, for millions of projects, the lights are off. That isn’t the biggest challenge, though. What most people don’t realize is that evaluating and merging changes is far harder than writing new code. Understanding how a change fits into the existing codebase, its history, and its plans requires knowledge that’s partly invisible — not in the code, not in the comments, not in the issues. It’s in the maintainer’s head. And some of it is deeply creative work, requiring the kind of judgment no model can replicate. The Go project is genuinely beautiful to me — meticulous reviews, design discussions that ran for months before anything shipped, a review culture refined over 15 years. That’s the ideal. But Go is exceptional in ways most projects can’t replicate: full-time contributors funded by Google, a mandate to build a language meant to last 50 years, rare external deadline pressure. The Go team had a long thread recently about whether to accept AI-authored contributions — the same discussion where Russ Cox’s quote above originated. These are people I worked with for years — same reviews, same proposals, same arguments at the same whiteboards. Reading the thread, I could hear their voices. And I could see how every one of them was right, and why that was the problem. Rob Pike went first and didn’t equivocate: “This is a very slippery slope. Be careful on your first step. I recommend simply saying, no.” That’s Rob. Direct, principled, and usually right. Then Alan Donovan pointed out the uncomfortable reality: “I suspect a significant fraction of CLs we receive today already include fragments of LLM-generated code, whether the authors admit it or not.” The horse, in other words, has already left the barn. Russ Cox wrote the most thoughtful response I’ve seen anyone write about this. His core point: “The most important thing we can do is to maintain our usual processes around code review and code quality… That same bar must still apply when some or all of the code was written with the help of AI-based tools.” And: “Your responsibilities are not lessened when you use AI tools for your work.” Every one of these positions is reasonable. And every one of them shares an assumption that exposes the core of the dilemma: they assume there are humans available to review. Go can afford to say “maintain the same bar” because it has full-time contributors funded by Google. It has reviewers. It has a review culture that’s been refined for over a decade. Rob can say “just say no” because Go has enough people to say “yes” to the important things. Afero doesn’t. Most open source projects don’t. When Rob Pike says no, the Go project keeps functioning. When I say no, the PR just sits there. Those are different kinds of “no.” There’s a spectrum, and where you land on it depends on what you’re actually choosing between. In practice, maintainers face five options: Each step down that list typically trades rigor for velocity, and trust for throughput. But for most projects — certainly for many of mine — there’s a sixth option that doesn’t appear on that list: human or AI writes, nobody reviews. When a maintainer reviews a contributor’s PR, there’s an unspoken contract. The contributor invested hours understanding the codebase, writing tests, and submitting something clean. The reviewer invests hours evaluating it, pushing back, and suggesting improvements. Both people learn. The reviewer understands a new corner of the project. The contributor gets better at the codebase’s idioms. A relationship forms. That exchange is a big part of what makes open source a community instead of just a supply chain. Bryan Cantrill at Oxide described this contract precisely in their internal policy on LLM use : ordinarily, “it is presumed that of the reader and the writer, it is the writer that has undertaken the greater intellectual exertion.” When the writing is AI-generated, “this social contract becomes ripped up.” The same holds for code review — we expect the reviewer to invest effort because the author invested effort. If neither did, what’s the review even for? Oxide’s answer is that the human stays accountable regardless; the tool doesn’t absorb the responsibility. That’s the right instinct. But it assumes someone is actually there to take responsibility. For most projects, nobody is. The social contract isn’t being broken by AI — it’s already being broken by silence. The contributor who submitted a clean, well-tested patch six months ago and never heard back isn’t experiencing a degraded version of the ideal. They’re experiencing nothing. Is a perfect social contract that never happens better than an imperfect one that does? A response from an AI in a day might be more respectful than silence from a human forever. I’ve decided to find out. I’ve been staring at 55 open PRs on Afero long enough to know that deliberation has become its own form of neglect. Will AI tools make me more engaged, freeing me to focus on decisions that actually need me? Or will it feel less connected — the human element reduced by one more degree? I don’t know how it feels to have an AI review a PR instead of a human, or whether accountability holds when the effort on both sides is diminished. That’s the experiment. Russ said something else in that thread I keep returning to: “The most important thing is to keep thinking. The tools make it very easy to turn off your brain, but if you are careful to avoid that trap, you can produce good work.” That’s the line I’m trying to walk. Let AI handle the volume. Stay responsible for the judgment. There’s no universal policy that works for both Go and Afero. There shouldn’t be. The protected branch is still protected. I’m just not sure what that even means anymore. Have you run into this? I’d especially like to hear from maintainers who’ve tried AI review — what held, and what broke. Human writes, human reviews. AI writes, human reviews. Human writes, AI reviews. AI writes, AI reviews, human clicks merge. AI writes, AI reviews, AI clicks merge.

0 views
spf13 1 years ago

Why Engineers Can't Be Rational About Programming Languages

Series Overview This is the first in a series of posts on the true cost of a programming language. A programming language is the single most expensive choice a company makes, yet we treat it like a technical debate. After watching this mistake bankrupt dozens of companies and hurt hundreds more, I’ve learned the uncomfortable truth: these decisions are rarely about technology. They’re about identity, emotion, and ego, and they’re destroying your velocity and budget in ways you can’t see until it’s too late.

1 views
spf13 1 years ago

How Benjamin Franklin Invented Machine Learning in 1720

How a teenage printer’s writing exercise reverse engineered the timeless principles of learning. The core algorithm that powers today’s most advanced artificial intelligence wasn’t born in Silicon Valley or has anything to do with computers. It was engineered in the dusty, ink stained backroom of a Boston print shop, nearly 300 years ago, by a teenager who was tired of being told he wasn’t a good writer. Long before he was a world famous statesman and inventor, Benjamin Franklin was an ambitious, self taught apprentice with a chip on his shoulder. Working for his older brother, he devoured books and secretly submitted anonymous essays to his brother’s newspaper, desperate to succeed in this world of words. But he had a problem. While his ideas were sharp, his prose was clumsy.

0 views
spf13 1 years ago

Cobra & Viper Fortify Security as Part of GitHub Secure Open Source Fund

I’ve spent most of my career working in New York City. Every morning, I’d walk past those towering skyscrapers, genuinely amazed at what humans can build together. The engineering, the coordination, the trust required. It’s breathtaking. What fascinates me most is the foundation. While everyone admires the gleaming towers, I think about the engineers who spent months planning what goes sixty feet underground. That invisible work makes everything else possible. No Instagram posts about foundation concrete. No TED talk talks about rebar placement.

0 views
spf13 4 years ago

spf13 Google -->

I’m leaving my role as the Product Lead for the Go Language at Google. I’m super proud of everything the Go team has accomplished in the last six years, and I’ve never been more excited for Go’s future. Read on if you’re interested in what led me to my decision, what I’ll be doing next, and what I’ll miss about my time at Google. Ten years ago, I used Go for the first time. I immediately fell in love with the language and its simple elegance. For the first time in a long time, I loved programming again. So much so that I was eager to write Go whenever I could. This led to the creation of Hugo , Cobra , Viper and a handful of additional Go libraries .

0 views
spf13 4 years ago

The New spf13.com

I’m proud to present the new and improved spf13.com a dramatic redesign of the very first Hugo powered website. After 25 years of building websites I’m happy to say that this is the best website I’ve ever made and I look forward to sharing more content than I ever have before. Something about the new design is really inviting and honestly just makes me happy, and I think it’s going to be a big motivator to write more content.

0 views
spf13 4 years ago

About Steve Francia

My name is Steve Francia (he/him). I’ve spent the last 27 years as a software, product, and advocacy leader specializing in open source and developer experiences. I’m best known for my leadership across several industry defining projects: The Go Language — Google’s cloud native programming language, MongoDB — the NoSQL database, Docker — the container engine, and Drupal — The CMS powering 10% of the commercial internet. I also authored Google’s Open Source Strategy and led Google Cloud developer strategy.

0 views
spf13 4 years ago

InfoQ interview - Go Language at 13 Years

I had the pleasure of speaking with Olimpiu Pop from InfoQ about the Go language and community. The article can be found at https://www.infoq.com/articles/go-language-13-years .

0 views
spf13 4 years ago

Gophers Say GopherCon Edition

Go Time panelists Natalie & Jon join forces with Go Team members Steve Francia, Katie Hockman, Julie Qui, and Rob Findley to battle it out and see who can better guess what the GopherCon gophers had to say! Listen to the podcast at https://changelog.com/gotime/211 Mat Ryer: Hello, and welcome to this Go Time GopherCon extravaganza… Yeah, extravaganza, yeah. I’m Mat Ryer, and I’m thrilled to announce that today again we’re playing Gophers Say, the excellent, popular, family game show based on Family Feud, or Family Fortunes if you’re in the U.K, which I am.

0 views
spf13 5 years ago

Modern Enterprise Applications with Go - Go Day 2021

Go, the language of cloud infrastructure, is maturing into the language of modern enterprise applications. This high level presentation will speak to Go’s enterprise adoption story and how it plays a role in modernization. Given at Google’s Open Source Live Day in San Francisco, November 4, 2021 . Welcome to my session: Enterprise-Ready Modern Applications with Go. I’m Steve Francia. For the past decade and a half, I’ve lead industry-changing organizations focused on bringing simplicity to the chaos. As senior vice president of MongoDB I lead the development of the first non-relational database to enter mainstream use in 45 years. As chief operator at Docker, I lead the effort to simplify containers. As a side project, I created Hugo the most secure and highest performance web engine. Today I’m the Product Lead on the Go team where we’re building a modern simple cloud-native programming language. Today, I’m here to share with you how Go is helping enterprises modernize their legacy applications. The Rise of Digital Chaos. For years, one of the most talked-about topics surrounding enterprise has been digital transformation. It seems like everyone’s feeling the need to modernize their legacy applications. As technology has specialized, it has grown exponentially in complexity. Two decades ago, there may have been a dozen choices that needed to be made with, typically, two or three options. Today the amount of choices is simply staggering. Nobody can possibly begin to understand all that is required. Three quarters of CIOs say managing performance is now impossible due to the IT complexity. Security risks have seen a similar exponential expansion. It seems like every day we hear about another major breach. The historical approach to enterprise architecture doesn’t work in the digital age. If we don’t dramatically change our approach, and soon it’ll be too late. Today, I’m here to share with you what the path is. We need to modernize our enterprise applications and a lot of folks have this wrong. They have part of the picture but haven’t grasped that true modernization requires simplifying our approach not simply containerizing it. Since you may not be familiar with Go I’ll first provide a short overview of what Go is. I’ll then share with you what a modern enterprise application requires. And, lastly, I’ll share with you how Go will help you with the migration to modern enterprise applications. Along the way, I’ll share quotes from enterprises and how Go helped them. Go is a modern programming language designed by Google for Google’s problems of building and serving server-site software at scale. Google uses Go extensively for a wide range of things from our indexing platform that powers Google search to the infrastructure Google Cloud is built on. Launched a decade ago, Go has seen explosive growth. Today Go is a top 10 language with broad adoption among the world’s leading enterprises. Go follows Einstein’s maxim “Be as simple as possible, but no simpler.” As Go is designed for maximum simplicity, it is very easy to learn and work with. Go drives the balance between productivity and performance sharing the friendliness of dynamic languages like Python and the performance of compiled languages like C and Java. As a modern language, Go was designed from the very beginning with security and safety in mind. Over the past ten years, Go has developed a large and mature ecosystem. Go is loved by both developers and employers alike ranked as the number one language across many industry surveys. Go is widely loved by developers because it makes building modern software simple and secure. But what does it take to build modern enterprise applications? First of all, they must minimize risk. They must be fully modern. Adding modern components onto or alongside legacy systems introduces significantly higher risk and complexity. Instead of simplifying things, they triple the complexity. You now need to worry about multiple systems languages and integration points. Next, they must be safe. Modern applications have to be built in a way that ensures safety. According to researchers at Microsoft 70% of the security bugs the company fixes each year relate to memory safety. Google found a similar 70% of serious bugs in Chrome are memory management and safety bugs. Legacy programming languages were not designed with safety in mind because at the time there was no such thing as a cyber attack, and bits were at a premium. Our environment today is vastly different from the one legacy languages were designed for. Modern languages massively de-risk applications. They must be secure. One of the largest risks systems face is in the form of lacking security which results in leaks and attack vectors. In the constant battle for security applications need to utilize the latest encryptions and protocols. They need to run in minimal environments, with maximum isolation and minimal external dependencies. They need to not depend on legacy libraries and environments. Modern enterprise applications must adapt to business needs. One way they do this is by utilizing service-oriented APIs approaching applications with a communication-first focus which ensures that the application has the proper separation, scalability and flexibility to adapt to new businesses requirements. This approach also isolates each feature for greater flexibility and security. They must be architected to be modular and composable. Tech debt can be a technologist’s worst enemy. This hidden tax slows down all development. Traditional inheritance-based architecture creates code that is very tightly coupled, hard to maintain and hard to adapt to new requirements. This brings us to our next point it must be easily maintainable. Teams and priorities are constantly changing. We need code that is easy to understand and pick up by a constant influx of new engineers. We want applications that require minimal maintenance without constant runtime upgrades. Our final theme: Modern enterprise applications must sustain growth. They must be scalable and efficient. Data and usage has been expanding exponentially for the past five decades. With the end of Moore’s law, an increased pressure on computing costs modern enterprise applications need rapid deployment and the ability to scale up and down with ease using resources efficiently, to keep operating and management costs down. They must have a cloud-native architecture. Modern enterprise applications must take advantage of innovations in cloud computing with a cloud-native architecture. They must be designed with automation, monitoring and repair from the beginning favoring managed services. They must incorporate event-driven components also known as serverless. Event-driven features must be properly utilized to bring cost savings adaptability and efficiency to modern enterprise applications. This requires software that loads instantly with minimal resource consumption and minimal dependencies. We’re now gonna go through these requirements and highlight the ways Go will help you build modern enterprise applications. Go helps you minimize risk. Go is a truly modern language requiring a completely clean implementation keeping your application decoupled from legacy libraries. While there is risk in a re-write, it pales in comparison to the larger risk of sticking with legacy systems or, worse, maintaining both the legacy and a modern system. Go’s high learnability, productivity and simplicity minimized the re-write risk and often paid dividends in massively reducing both operating costs and technical debt further minimizing businesses risks. Zviad, a senior principal engineer at Dropbox, said “People become very productive in Go, very fast, “our infrastructure is built in Go today, and all the new things we build in Go.” Legacy software languages were designed for a different era where safety wasn’t prioritized, or worse, often compromised for performance. This trade-off made sense in a pre-network era but it’s created massive risk in today’s environments. Modern languages, like Go, are designed for today’s environments where safety is critical. Go is memory-safe, type-safe, and utilizes low latency garbage collection. These features alone avoid over 70% of critical bugs which result from using unsafe legacy languages. Bala, a senior director of engineering at Paypal, wrote “In our tightly-managed environments, where we run Go code, we have seen “a CPU reduction of around 10% [vs C++] with cleaner and more maintainable code.” Go has been designed to create the most secure applications minimizing risk as much as possible. Go applications compile down to a single binary without any local dependencies. It’s not uncommon to see an application built using only the standard library or only a couple of well-vetted dependencies. That dependency management uses an industry-leading, tamper-evident transparency log with built-in tooling that ensures your dependencies are exactly what you expect. Go has native encryption, which has been used to power much of the Internet including key components of Google and Cloudflare. Adopting Go means that the next Heartbleed which impacted virtually every application written in any other language won’t impact your application. Go even supports distroless containers, where there’re zero local dependencies to worry about. Go helps you adapt to business needs. Service-oriented APIs provide enhanced agility, scalability and reliability allowing your business to adapt to market and strategy changes quickly. Go’s the only language explicitly designed to build service-oriented APIs. Go has native support in the standard library for all you need to build performant and secure APIs. Including a high-performance web server. This is Go’s most common use case with over 70% of Go developers using Go for building APIs. Matt, a principal software engineer at Monzo, shared “Go is a perfect language for creating microservice architectures “the concurrency features and the language in general, has allowed the easy creation “of small and simple networked services at Monzo.” A unique feature of Go is that its application structure directly mirrors the architecture of service-oriented systems. Services are designed independently and they share nothing architectured, communicating across networks. Go applications are composed of share-nothing modules which communicate across channels, a native feature in Go. This means that both your service and your application which is composed of many services are using the same architectural pattern. The benefits of agility, independence and easy maintenance are twice as impactful for Go-based services, which maximizes your ability to adapt to business needs. There’s an additional cognitive benefit for developers of using a single architectural pattern at every level of their system. John Graham-Cumming, the CTO at Cloudfare, shared about Go “I came for the easy concurrency, I stayed for the easy composition.” Kubernetes’ creator, Joe Beda, tweeted “Kubernetes’ success is in part due to Go and the Go community. “Go hits the sweet spot for distributed systems software.” High maintenance costs ensure that your technology can’t properly adapt or support business needs. Go is unique among all languages as it has been designed to minimize maintenance costs. Rapidly evolving teams are common at Google and virtually all enterprises. Go’s simplicity, easy readability and single binary deployment ensures that Go’s applications have minimal maintenance and it’s relatively easy for someone new to a code base to safely maintain them. Martin, a software engineer at Trivago, spoke about this hidden benefit of Go. “Go’s simplicity and its sophisticated tooling “let us scale not only our service, but, more importantly “the process of software engineering itself. “Reducing the friction of onboarding and training someone “has a significant impact on the company’s productivity “even more so in a constantly moving environment like Trivago.” Benjamin Cane, VP and Principal Engineer at American Express also speaking at Google Open Source Live, shared “After working on Go “most of our developers don’t want to go back to other languages.” Go will help you sustain business growth. Historically, CTOs have needed to make an impossible tradeoff either choose to delay launch as the team builds the scalable application first or choose to ship a slow prototype early acknowledging that development will be delayed significantly later as adoption growth demands a re-write effectively having to choose when to be unable to support business growth. Go has eliminated this dilemma. Go is designed for Google’s scale with built-in concurrency that takes full advantage of today’s multi-core machines and cloud services. Go enables programmers to quickly develop applications that perform at scale. No re-write needed. Eric, a Software Engineering Manager at Mercado Libre, wrote “With Go, the company obviated 88% of their servers “and cut CPU on the remaining ones in half “- producing a tremendous cost-savings.” Cloud computing brings countless benefits for flexibility and efficiency critical to sustaining business growth. Go is the only modern language that has first class support on all cloud platforms. Go is designed for cloud-native applications. Over three quarters of the projects in the cloud-native computing foundation are written in Go. Go is designed for container deployment with a very small footprint compared to the ship-the-world legacy languages like Java, Python and Node. Mariano, a software engineer at Movio, blogged “Our Go microservices currently build in five seconds or less. “They test in one or two seconds, which includes integration tests. “And they can deploy new containers via Kubernetes in ten seconds or less. “The key factor here being small images.” Among all cloud benefits, serverless has the largest potential for sustaining business growth with its low cost, instant scability and expanded flexibility. Go is an ideal fit for serverless with broad support on all serverless platforms. Go has very low resource use and nearly instant startup times, especially when compared to applications written in legacy languages which utilize interpreters. Go is well supported on all serverless platforms and Google’s Cloud Run is the ideal platform for Go applications thanks to its seamless deployment. Go: simplifying the chaos. “The biggest impediment to a company’s future success is its past success” according to Dan Schulman , CEO of PayPal. Today’s business environment is defined by modern enterprises with a move-fast-and-break-things culture. Enterprises will need to embrace the process of constant transformation to remain relevant. Go provides the flexibility and performance to assist organizations with application modernization efforts. To learn more about Go, its primary use case and to read case studies of enterprises who have transformed their organizations visit go.dev. Thank you.

0 views
spf13 5 years ago

Google Cloud Next 2021 - Modern Enterprise Applications with Go

Over the past couple of years, Go has matured to a complete end-to-end offering with seamless and secure dependency management, its own integrated development environment, and the inclusion of generics – Go’s most requested feature, previewing in Q4 2021. We’ll share how Go can fit into your application modernization plans to increase productivity, reduce risk, and save on operational costs. Given at Google’s Cloud Next Conference, October 13, 2021 . STEVE FRANCIA: Welcome to my session, “Enterprise-Ready Modern Applications with Go– The Rise of Digital Chaos.” For years, one of the most talked-about topics has been digital transformation. It seems like everyone’s feeling the need to modernize their legacy enterprise applications. As technology has specialized, it has grown exponentially in complexity. Two decades ago there might have been a dozen choices that needed to be made, with typically two or three options. Today the amount of choices is simply staggering. Nobody can possibly begin to understand all that is required. 3/4 of CIOs say managing performance is now impossible due to the IT complexity. Security risks have seen a similar exponential expansion. It seems like every day we hear about another major breach. The historical approach to enterprise architecture doesn’t work in the digital age. If we don’t dramatically change our approach, and soon, it will be too late. Today I’m here to share with you what the path is. We need to modernize our enterprise applications, and a lot of folks have this wrong. They have part of the picture, but haven’t grasped that true modernization requires simplifying our approach, not simply containerizing it. Who am I? I’ve spent the last decade and a half leading industry-changing organizations, focused on bringing simplicity to the chaos. As senior vice president at MongoDB, I led the development of the first non-relational database to enter mainstream use in 45 years. As chief operator at Docker, I led the effort to simplify containers. As a side project I created Hugo, the most secure and highest performance web engine. Today I’m one of the leads of the Go Team, where we are building a modern, simple Cloud-native programming language. Since you might not be familiar with Go, I’ll first provide a short overview of what Go is. Then I’ll share with you what a modern enterprise application requires. Lastly, I’ll share with you how Go and Google Cloud will help you with migration to modern enterprise. Along the way I’ll share quotes from enterprises, and how Go helped them. Go is a modern programming language designed by Google for Google’s problems of building and serving server-side software at scale. Google uses Go extensively for a wide range of things, from our indexing platform that powers Google Search to the infrastructure that Google Cloud is built on. Launched a decade ago, Go has seen explosive growth. Today, Go is a top 10 language, with broad adoption among the world’s leading enterprises. Go follows Einstein’s Maxim– be as simple as possible, but no simpler. As Go is designed for maximum simplicity, it is very easy to learn and to work with. Go drives the balance between productivity and performance, sharing the friendliness of dynamic languages like Python and the productivity of compiled languages like C and Java. As a modern language, Go was designed from the very beginning with security and safety in mind. Over the past 10 years, Go has developed a large and mature ecosystem. Go is loved by both developers and employers alike, ranked as the number one language across many industry surveys. Go is widely loved by developers because it makes building modern software simple and secure. But what does it take to build modern enterprise applications? First of all, they must minimize risk. They must be fully modern. Adding modern components onto or alongside legacy systems introduces significantly higher risk and complexity. Instead of simplifying things, they multiply the complexity. You now need to worry about many systems, languages, and integration points. They must be safe. Modern applications have to be built in a way that ensures safety. According to researchers at Microsoft, 70% of the security bugs that the company fixes each year relate to memory safety. Google found a similar 70% of serious bugs in Chrome are memory management and safety bugs. Legacy programming languages were not designed with safety in mind, because at the time there was no such thing as a cyberattack and bits were at a premium. Our environment today is vastly different from the one legacy languages were designed for. Modern languages massively de-risk applications. They must be secure. One of the largest risks systems face is in the form of lacking security, which results in leaks and attack vectors. In the constant battle for security, applications need to utilize the latest encryption and protocols. They need to run in minimal environments with maximum isolation and minimal external dependencies. They need to not depend on legacy libraries and environments. Modern enterprise applications must adapt to business needs. One way they do this is by utilizing service-oriented APIs. Approaching applications with a communication-first focus ensures that the application has the proper separation, scalability, and flexibility to adapt to new business requirements. This approach also isolates each feature for greater flexibility and security. They must be architected to be modular and composable. Tech debt can be a technologist’s worst enemy. This hidden tax slows down all development. Traditional inheritance-based architectures create code that is very tightly coupled, and hard to adapt to new requirements and very hard to maintain. Which brings us to our next point– they must be easily maintainable. Teams and priorities are constantly changing. We need code that is easy to understand and pick up by a constant influx of new engineers. We want applications that require minimal maintenance without constant runtime upgrades. Our final theme is that modern enterprise apps must sustain growth. They must be scalable and efficient. Data and usage has been expanding exponentially for the past five decades. With the end of Moore’s Law and increased pressure on computing costs, modern enterprise applications need rapid deployment and the ability to scale up and down with ease, using resources efficiently and keeping operating and management costs down. They must have a Cloud-native architecture. Modern enterprise applications must take advantage of innovations in Cloud computing. With the Cloud-native architecture, they must be designed with automation, monitoring, and repair from the beginning, favoring managed services. They must incorporate event-driven components, also known as serverless. Event-driven features must be properly utilized to bring cost savings, adaptability, and efficiency to modern enterprise applications. This requires software that loads instantly with minimal resource consumption and minimal dependencies. We’re now going to go through these requirements and highlight the ways that Go and Google Cloud Platform will help you build modern enterprise applications. Go and GCP help you minimize risk. Go is a truly modern language, requiring a completely clean implementation, keeping your application decoupled from legacy libraries. While there is risk in a rewrite, it pales in comparison to the larger risk of sticking with legacy systems, or worse, maintaining both a legacy and a modern system. Go’s high learnability, productivity, and simplicity minimize the rewrite risk, and often pay dividends in massively reducing both operating costs and technical debt, further minimizing business risk. Zviad, a Senior Principal Engineer at Dropbox, said, “People become very productive in Go very fast. Our infrastructure is built in Go today, and all the new things we build in Go.” Legacy software languages were designed for a different era where safety wasn’t prioritized, or worse, often compromised for performance. This trade-off made sense in a pre-network era, but has created massive risk in today’s environment. Modern languages like Go are designed for today’s environment, where safety is critical. Go is memory safe, type safe, and utilizes low-latency garbage collection. These features alone avoid over 70% of critical bugs resulting from unsafe legacy languages. Bala, a Senior Director of Engineering at PayPal, wrote, “In our tightly managed environments where we run Go code, we have seen a CPU reduction of around 10% versus C++, with cleaner and more maintainable code.” Go has been designed to create the most secure applications, minimizing risk as much as possible. Go applications compile down to a single binary without any local dependencies. It’s not uncommon to see an application built using only the standard library, or only a couple well-vetted Go dependencies. Go’s dependency management uses an industry-leading, tamper-evident transparency log, with built in tooling that ensures that your dependencies are exactly what you expect. Go has native encryption, which is used to power much of the internet, including key components of Google and Cloudflare. Adopting Go means that the next Heartbleed, which impacted virtually every application written in any other language, won’t impact your application. Go even supports distroless containers, where there are zero local dependencies to worry about. GCP, CI/CD, and Artifact Manager have direct access to Go’s Vulnerability Database and can provide you instant warnings about security threats. Finally, Go and GCP will help you adapt to business needs. Service-oriented APIs provide enhanced agility, scalability, and reliability, allowing your business to adapt to market and strategy changes quickly. Go is the only language explicitly designed to build service-oriented APIs. Go has native support in the standard library for all you need to build performant and secure APIs, including a high-performance web server. This is Go’s most common use case, with over 70% of Go developers using Go for building APIs. Matt, a Principal Software Engineer at Monzo, shared, “Go is a perfect language for creating microservice architectures. The concurrency features, and the language in general, has allowed the easy creation of small and simple network services at Monzo.” A unique feature of Go is that its application structure directly mirrors the architecture of service-oriented systems. Services are designed independently in a share-nothing architecture communicating across networks. Go applications are composed of share-nothing modules communicating across channels, a native feature of Go. This means that both your service and your application composed of many services are using the same architectural pattern. The benefits of agility, independence, and easy maintenance are twice as impactful for Go-based services, maximizing your ability to adapt to business needs. There’s an additional cognitive benefit for developers of using a single architectural pattern at every level of your system. John Graham-Cumming, the CTO at Cloudflare, shared about Go, “I came for the easy concurrency, I stayed for the easy composition.” Kubernetes creator, Joe Beda, tweeted, “Kubernetes success is in part due to Go and the Go community. Go hits the sweet spot for distributed system software.” High maintenance costs ensure that your technology can’t properly adapt or support business needs. Go is unique among all languages as it has been designed to minimize maintenance costs. Rapidly-evolving teams are common at Google and virtually all enterprises. Go’s simplicity, easy readability, and single-binary deployment ensures that Go applications have minimal maintenance and that it’s relatively easy for someone new to a code base to safely maintain it. Martin, a software engineer at Trivago, spoke of this hidden benefit of Go. “Go’s simplicity and its sophisticated tooling let us scale not only our service, but more importantly, the process of software engineering itself. Reducing the friction of onboarding and training someone has a significant impact on the company’s productivity, even more so at a constantly moving environment like Trivago.” And Benjamin Cane, Vice President and Principal Engineer at American Express, shared, “After working on Go, most of our developers don’t want to go back to other languages.” Go and GCP will help you sustain business growth. Historically, CTOs have needed to make an impossible trade-off– either choose to delay launch as the team builds a scalable application first, or choose to ship a slow prototype early, acknowledging that development will be delayed significantly later as adoption growth demands a rewrite– effectively having to choose when to be unable to support business growth. Go has eliminated this dilemma. Go is designed for Google Scale with built-in concurrency that takes full advantage of today’s multicore machines and Cloud Services. Go enables programmers to quickly develop applications that perform at scale, no rewrite needed. Eric, a Software Engineering Manager at MercadoLibre, wrote, “With Go, the company obviated 88% of their servers and cut CPU on the remaining ones in half, producing a tremendous cost savings.” Cloud computing brings countless benefits for flexibility and efficiency, critical to sustaining business growth. Go is the only modern language that has first class support on all Cloud platforms. Go is designed for Cloud-native applications. Over 3/4 of the projects in the Cloud-Native Computing Foundation are written in Go. And Go is designed for container deployment, with a very small footprint, compared to the “ship the world” legacy languages like Java, Python, and Note. Mariano, a Software Engineer at Movio, blogged, “Our Go microservices currently build in 5 seconds or less, they test in one or two seconds which includes integration tests, and they can deploy (via Kubernetes) new containers in 10 seconds or less. The key factor here is small images.” Among all Cloud benefits, serverless has the largest potential for sustaining business growth, with its low cost, instant scalability, and expanded flexibility. Go is an ideal fit for serverless, with broad support on all serverless platforms. Go has very low resource use and nearly instant startup times compared to applications written in legacy languages that utilize interpreters. Google’s Cloud Run is the ideal platform for Go applications with seamless deployment. Go and GCP help you simplify the chaos. “The biggest impediment to a company’s future success is its past success,” according to Dan Schulman, the CEO of PayPal. Today’s business environment is defined by modern enterprises with a “move fast and break things” culture. Enterprises will need to embrace the process of constant transformation to remain relevant. Go provides the flexibility and performance to assist organizations with application modernization efforts, and GCP provides flexible managed services to guide your organization into the modern era. To learn more about Go, its primary use case, and to read case studies of enterprises who have transformed their organizations, visit Go.dev. Thanks for spending time with me today. I hope that you’ve learned something. I hope you enjoyed it, and I hope to see you at a future conference or one of the many Go conferences. Thank you.

0 views
spf13 5 years ago

Rust vs Go Panel at RustLab Conference

The folks at Develer liked JT ’s and my article Rust vs Go - Better together so much they decided to feature it as a panel for RustLab 2021 where JT and I spoke along with some of our friends. Like the article, this panel highlighted the strengths of both Rust and Go and when each is ideal to use.

0 views
spf13 5 years ago

Rust vs Go: Better Together

While others may see Rust and Go as competitive programming languages, neither the Rust nor the Go teams do. Quite the contrary, our teams have deep respect for what the others are doing, and see the languages as complimentary with a shared vision of modernizing the state of software development industry-wide.

0 views
spf13 5 years ago

Break things on purpose podcast

I had the privilage of sitting down with my friend Jason Yee as a guest on his podcast. Listen to the podcast at https://www.gremlin.com/blog/podcast-break-things-on-purpose-steve-francia-product-and-strategy-lead-at-google/ Jason Yee: Hey, everyone. Welcome to Build Things On Purpose. Our slight deviation from the Break Things On Purpose podcast, where we talk with people that have made really cool things and we learn some tips from them about how we can make cool things as well, things that are reliable and that scale well. So joining us today we have Steve Francia.

0 views
spf13 6 years ago

Grokking Go.dev - Go Time Podcast

I had the privilage of joining my coworker Julie Qiu as we talked with our friends Carmen, Mat and Jon about the new website we are launching for Go, go.dev . Listen to the podcast at https://changelog.com/gotime/115 Mat Ryer: Hello, and welcome to GoTime! I’m Mat Ryer. Today we’re talking about Go.dev. It’s a user-friendly hub of curated resources for Go, and we’re lucky enough to have three of the brains behind it joining us today: Carmen Andoh, Steve Francia (also known as @spf13) and Julie Qiu. Hello, everybody!

0 views