Show HN: Why write code if the LLM can just do the thing? (web app experiment) (opens in a new tab)github.com
436 pointsI spent a few hours last weekend testing whether AI can replace code by executing directly. Built a contact manager where every HTTP request goes to an LLM with three tools: database (SQLite), webResponse (HTML/JSON/JS), and updateMemory (feedback). No routes, no controllers, no business logic. The AI designs schemas on first request, generates UIs from paths alone, and evolves based on natural language feedback. It works—forms submit, data persists, APIs return JSON—but it's catastrophically slow (30-60s per request), absurdly expensive ($0.05/request), and has zero UI consistency between requests. The capability exists; performance is the problem. When inference gets 10x faster, maybe the question shifts from "how do we generate better code?" to "why generate code at all?"
Comments (324) 95 threads
Earlier commentsI did a version of this where the AI writes tools on the fly but gets to reuse them on future calls, trying to address the cost / performance issues. Migrations are challenging because they require some notion of an atomic update across the db and the tools.
This is a nice model of organically building software on the fly and even letting end users customize it on the fly.
I guess any user can just run something /api/getdatabase/dumppasswords and it will give any user the passwords?
or /webapp?html= and run arbitrary JS?
I'm surprised nobody mentioned that security is a big reason not to do anything like this.
All comments shown.
Couldn't load more comments. Check your connection and try again.