How to use Claude to run Doom through curl
Claude produced a curl-based RISC-V CPU that ran Doom and proposed optimizations that brought the reported frame time from 8.3 hours to roughly 40 minutes.
Suggested prompt
Suggested prompt written by Agents In Use, not the source author. Replace bracketed inputs and review tool permissions first.
Explore how [command-line tool] could implement a small CPU using [available features]. Build a working demo for [target program], measure its main bottlenecks, and propose optimizations. Report observed performance separately from expected improvements.
Reach people exploring AI agents
See placements →Evidence at a glance
Sourced account- Source poster / publisher
- Vashiru
- Original account
- Read the source ↗
- Published
- Source link checked
- Reported result
- The working curl-powered RV32IM computer ran Doom. The author reports improving performance from one frame per 8.3 hours to approximately one frame per 40 minutes.
- Human involvement
- The author prompted the experiment and reported performance measurements; the source does not describe formal code review.
A linked account supports attribution. It does not mean we independently reproduced its result.
Report an issue with this case
Open correction emailOpens your email app with the case link included. Nothing is sent automatically.
How the agent did it
- Prompt Claude to explore whether curl can perform actual computation.
- Use file:// and expand-variables to make disk files direct subsequent fetches.
- Build a working RISC-V CPU demo that runs Doom.
A joke about curl being a Swiss army knife led the author to ask whether it could perform computation. After a few prompts, Claude Opus 5.5 proposed using curl's file:// protocol and expand-variables feature. Files on disk would tell curl what to fetch next; repeating that process supplied the basis for a working CPU.
Claude wrote a working RISC-V CPU demo using curl in a few hours. It ran Doom, but the initial speed was one frame every 8.3 hours. The author reports that much of the time went into loading curl itself, while almost half the instructions were software multiplication and division.
Claude then suggested statically compiling curl with support only for file://, avoiding the loading of 33 libraries and OpenSSL setup before reading data. It also suggested using the M extension for multiplication and division lookups. The reported end result was approximately one frame every 40 minutes. The author shared a live page and source repository for the RV32IM computer.
Who it's for: Programmers interested in unconventional computation and measurable optimization experiments.
Prompt
Suggested prompt (written by Agents In Use, not the author's)
Source: Hacker News · Vashiru
Frequently asked questions
How did curl participate in the computation?
The proposed approach used file:// and expand-variables so files read from disk could determine what curl fetched next, repeated to implement a CPU.
What performance improvement did the author report?
The initial demo produced one frame every 8.3 hours. After the reported optimizations, the end result was approximately one frame every 40 minutes.
More details
Remaining steps
- Reduce overhead with a file-only static curl build and multiplication/division lookups.
About this account
Claude proposed the computational approach, wrote the working CPU demo and suggested optimizations for the reported bottlenecks.
Platform: Hacker News. Attribution: https://news.ycombinator.com/item?id=50658424. Prompt: Suggested (written by Agents In Use, not the author's). Sourced by the Agents In Use pipeline.
Credit: Vashiru on Hacker News
Source published
Added to Agents In Use
Source checked
Tools and topics
Claude Opus 5.5 · curl · RISC-V RV32IM
Doom · RISC-V · curl · Optimization
Editorial completeness: 100/100. Measures documented fields, not agent performance or verified outcomes.