Login
You're viewing the code4lib.social public feed.
  • Nov 26, 2026, 5:53 PM

    curl is such a Swiss army knife, it makes the Swiss blush. I said that to a friend as a joke, then took it too far: a RISC-V CPU made of curl config files, one curl process per instruction. It runs DOOM, at ~40 minutes per frame.

    Full disclosure: the idea and the rules are mine, but Claude Opus 5.5 wrote the code.

    @bagder I think you'll enjoy this one 🙂

    doom.vashiru.tech

    #curl #DOOM #RISCV

    Diagram-style banner on a pale grey background. Left: the title "DOOM, computed by curl" with the subtitle "A RISC-V CPU where every instruction is one curl process", above a terminal box showing the command "curl -K next.cfg" and two lines from the add instruction's config file: expand-variable "rt0@lut/adc/0/{{a0}}/{{b0}}" and expand-variable "r0[1-2]={{rt0}}", with the lookup "lut/adc/0/7f/01 → 080". A wire runs from the terminal into a chip labelled "curl | RV32IM CPU". The chip's screen shows a real DOOM frame computed by curl: a dark hall in level E1M5, with the status bar showing 50 ammo, 100% health and 0% armor. The caption below it reads "Frame 211 · E1M5 · Bit-identical to simulator". Along the bottom: "~40 min per gameplay frame", "1.24M curl processes per frame", "764,341 lookup-table files".
    💬 0🔄 4⭐ 0