Willison argues that developers rarely need photorealistic rasters — they need diagrams, charts, and architecture sketches that can be tweaked by editing two characters instead of re-prompting a stochastic model. Asking an LLM to generate SVG, matplotlib, or D3 code produces readable, deterministic artifacts that can be versioned and regenerated, which matches how developers actually work.
By submitting Willison's post to HN where it reached 116 points, gmays amplified the position that code-driven illustration is a meaningful alternative to raster image models for technical content. The high score and 71-comment thread signal community agreement that this framing resonates with working developers.
The editorial frames image models as structurally incapable of meeting the baseline requirement of technical illustration: correctness. Diagrams, README graphics, and docs need labels and topology to be exactly right, and raster models have no mechanism for being correct — they can only produce plausible-looking pixels that are 'slightly wrong in ways you can't surgically fix.'
On November 28, Simon Willison published a short post arguing that for most developer-facing illustration work, you're better off asking an LLM to write code that produces the image than asking an image model like DALL·E, Midjourney, or Flux to draw it directly. The output you want from a working-developer perspective is usually not a 1024×1024 raster — it's a vector artifact you can edit, version, and regenerate with a small tweak.
The mechanics are mundane. Ask Claude or GPT for an SVG of a server rack with three nodes and arrows showing replication, and you get an SVG file. Ask for a matplotlib chart of your benchmark data, you get Python. Ask for a D3 force graph of your service topology, you get JavaScript. The code is readable, the rendered output is deterministic, and when you need to swap a label or change a color, you edit two characters instead of re-prompting a stochastic image model and hoping it preserves the rest of the composition.
Willison's framing isn't new — people have been pointing out that Claude writes surprisingly competent SVG for a year — but the post crystallizes the argument into something sharper than "this is a fun trick." His claim is that for the kinds of illustrations developers actually need (diagrams, charts, architecture sketches, simple logos, UI mockups), the raster-generation approach is solving the wrong problem.
There's a reason the image-model demos always use the same material: anime characters, fantasy landscapes, product photography. Those are domains where you want pixels and don't care that the output is non-editable and slightly wrong in ways you can't surgically fix. For technical illustration — the stuff that ends up in README files, blog posts, docs, and slide decks — the baseline requirement is correctness, not photorealism, and raster models have no mechanism for being correct.
Compare the failure modes. An image model asked for a system diagram will produce something that looks like a system diagram at a glance and falls apart under inspection: duplicated boxes, text that's almost-but-not-quite words, arrows that terminate in midair. There is no fix for this other than re-rolling. A code model asked for the same diagram produces SVG where every element is named, every label is real text that search and screen readers can parse, and every mistake is a line of code away from being fixed. When the code model can't do it, the failure is legible — a syntax error, a missing element, an honest refusal — rather than a confident hallucination you have to spot.
The accessibility story alone should close the argument for anything shipping to a public docs site. SVG text is text. It gets indexed by Google, read by screen readers, translated by browsers, and resized without pixelation. A raster-generated diagram is a dead-end image with alt text written by the same hallucination-prone model that drew it.
There's also a cost dimension that's easy to miss. Generating one decent 1024×1024 raster through a top-tier image model costs real inference. Generating the SVG for the same illustration is a few hundred output tokens from a cheap model, and the rendering is free because the browser does it. For a docs site with hundreds of diagrams, the economics aren't close.
The honest counter-argument is that code-driven illustration has a ceiling. If you need a hero image, a stylized character, or anything with painterly texture, no amount of SVG coaxing will get you there — that's the genuine home turf of raster models, and nobody is arguing otherwise. The point isn't that image models are useless; it's that developers reflexively reach for them in cases where a seven-line SVG would be objectively better.
Start by auditing where illustrations enter your workflow. Docs diagrams, README headers, blog-post figures, dashboard mockups, API shape visualizations — anything that's fundamentally geometric belongs in code, not pixels. The tooling is already there: Mermaid and D2 for diagrams, matplotlib and Vega-Lite for charts, raw SVG for anything custom. All of them are first-class outputs for current frontier models.
The workflow change is small. Instead of maintaining a `/images/` folder full of binary PNGs that get regenerated whenever someone asks for a tweak, you maintain a `/diagrams/` folder of `.svg` or `.mmd` files that render at build time. Diffs become reviewable (you can see that someone added a node to the architecture, not just that a binary changed). Translations become possible without regenerating the image. Dark mode becomes a CSS rule instead of a second asset.
For teams already piping LLM output into their build, this fits naturally. A pre-commit hook that regenerates diagram SVGs from a prompt file is trivial. So is a CI job that treats the prompt as the source of truth and fails the build if the rendered SVG drifts. Treating illustrations as source code — not as binary artifacts of a stochastic process — is a structural upgrade that happens to also save on inference bills.
The broader pattern here is worth naming: whenever you can get an LLM to produce structured, executable output instead of opaque content, take that trade. Code over prose for anything procedural. SVG over raster for anything geometric. SQL over natural-language answers for anything that touches data. The model's job is to generate the thing, but the thing you want is almost always the editable, inspectable, re-runnable version. Image generation is one of the last holdouts where developers haven't fully internalized this — and Willison's post is a useful nudge to stop reaching for the pixel hammer when the problem is clearly a vector nail.
Top 10 dev stories every morning at 8am UTC. AI-curated. Retro terminal HTML email.