Live data from Hacker News

Show HN: Why write code if the LLM can just do the thing? (web app experiment)

github.com

1–10 of 332 posts

Show HN: Why write code if the LLM can just do the thing? (web app experiment)

#1
I 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?"

Show HN: Why write code if the LLM can just do the thing? (web app experiment)
github.com

Re: Show HN: Why write code if the LLM can just do the thing? (web app experiment)

#3
post #2

Maybe next step is have the llm create persistent tools from the queries it uses most often.

I thought about doing that, or having the LLM create and save HTML components, but for this particular experiment I wanted to keep it as pure and unfiltered as possible.

Re: Show HN: Why write code if the LLM can just do the thing? (web app experiment)

#4
Awesome experiment!!

I 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.

Re: Show HN: Why write code if the LLM can just do the thing? (web app experiment)

#8
post #2

Maybe next step is have the llm create persistent tools from the queries it uses most often.

I've gone down this line of thought, but after adding cache lines that are highly problematic, I just end up back to LLM generating regular code as normal development calls for.

Re: Show HN: Why write code if the LLM can just do the thing? (web app experiment)

#10
This is brilliant. Really smart experiment, and a glimpse of what might - no what will be possible. Ignore the cynics. This is an absolutely brilliant thought experiment and conversation starter that lets us look ahead 10, 20, 50 years. This, IMHO, is the trajectory the Web is really on.
Post reply on HN