Lurker News
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?"

Comments (324) 95 threads

sunaurus11 replies#
The question posed sounds like "why should we have deterministic behavior if we can have non-deterministic behavior instead?"

Am I wrong to think that the answer is obvious? I mean, who wants web apps to behave differently every time you interact with them?

admax88qqq3 replies#
Web apps kind of already do that with most companies shipping constant UX redesigns, A/B tests, new features, etc.

For a typical user today’s software isn’t particularly deterministic. Auto updates mean your software is constantly changing under you.

jeltz#
And most end users hate it.
Jaygles1 reply#
I don't think that is what the original commenter was getting at. In your case, the company is actively choosing to make changes. Whether its for a good reason, or leads to a good outcome, is beside the point.

LLMs being inherently non-deterministic means using this technology as the foundation of your UI will mean your UI is also non-deterministic. The changes that stem from that are NOT from any active participation of the authors/providers.
This opens a can of worms where there will always be a potential for the LLM to spit out extremely undesirable changes without anyone knowing. Maybe your bank app one day doesn't let you access your money. This is a danger inherent and fundamental to LLMs.

admax88qqq5 replies#
Right I get tha. The point I’m making is that from a users perspective it’s functionally very similar. A non deterministic llm or a non deterministic company full of designers and engineers.

Continue this thread — 5 replies

paulhebert#
The rate of change is so different it seems absurd to compare the two in that way.

The LLM example gives you a completely different UI on _every_ page load.
That’s very different from companies moving around buttons occasionally and rarely doing full redesigns

samrolken1 reply#
No, I wouldn’t say that my hypothesis is that non-deterministic behavior is good. It’s an undesirable side effect and illustrates the gap we have between now and the coming post-code world.
killingtime741 reply#
AI wouldn't be intelligent though if it was deterministic. It would just be information retrieval
finnborge1 reply#
It already is "just" information retrieval, just with stochastic threads refining the geometry of the information.

Continue this thread — 1 reply

thih94 replies#
> who wants web apps to behave differently every time you interact with them?

Technically everyone, we stopped using static pages a while ago.
Imagine pages that can now show you e.g. infinitely customizable UI; or, more likely, extremely personalized ads.

ehutch79#
No.

When I go to the dmv website to renew my license, I want it to renew my license every single time

hansmayer#
> infinitely customizable UI; or, more likely, extremely personalized ads

Yeah, NO.

anthk#
Ah, sure; that's why everyone got Adblock and UBo in first place. Even more under phones.
ozim#
Small anecdote. We were releasing UI changes every 2 weeks making app better more user friendly etc.

Product owners were happy.
Until users came for us with pitchforks as they didn’t want stuff to change constantly.
We backed out to releasing on monthly cadence.

krapp1 reply#
That book is talking about user interaction and application design, not development.

We absolutely should want developers to think.

crabmusket2 replies#
As experiments like TFA become more common, the argument will shift to whether anybody should think about anything at all.

Continue this thread — 2 replies

AstroBen#
..is this an AI comment?
_se1 reply#
This is such a massive misunderstanding of the book. Have you even read it? The developer needs to think so that the user doesn't have to...
finnborge1 reply#
My most charitable interpretation of the perceived misunderstanding is that the intent was to frame developers as "the user."

This project would be the developer tool used to produce interactive tools for end users.
More practically, it just redefines the developer's position; the developer and end-user are both "users". So the developer doesn't need to think AND the user doesn't need to think.

Continue this thread — 1 reply

jstummbillig10 replies#
Because nobody actually wants a "web app". People want food, love, sex or: solutions.

You or your coworker are not a web app. You can do some of the things that web apps can, and many things that a web app can't, but neither is because of the modality.
Coded determinism is hard for many problems and I find it entirely plausible that it could turn out to be the wrong approach in software, that is designed to solve some level of complex problems more generally. Average humans are pretty great at solving a certain class of complex problems that we tried to tackle unsuccessfully with many millions lines of deterministic code, or simply have not had a handle on at all, like (like build a great software CEO).

1139 replies#
> Because nobody actually wants a "web app". People want food, love, sex or: solutions.

Okay but when I start my car I want to drive it, not fuck it.

hinkley#
Christine didn’t end well for anyone.
lazide1 reply#
Even if it purred real nice when it started up? (I’m sorry)

Continue this thread — 1 reply

jstummbillig25 replies#
Most of us actually drive a car to get somewhere. The car, and the driving, are just a modality. Which is the point.

Continue this thread — 25 replies

Continue this thread — 6 more replies

Continue this thread — 9 more replies

Continue this thread — 6 more replies

finnborge1 reply#
This is amazing. It very creatively emphasizes how our definition of "boilerplate code" will shift over time. Another layer of abstraction would be running N of these, sandboxed, responding to each request, and then serving whichever instance is internally evaluated to have done the best. Then you're kind of performing meta reinforcement learning with each whole system as a head.

The hard part (coming from this direction) is enshrining the translation of specific user intentions into deterministic outputs, as others here have already mentioned. The hard part when coming from the other direction (traditional web apps) is responding fluidly/flexibly, or resolving the variance in each user's ability to express their intent.
Stability/consistency could be introduced through traditional mechanisms: Encoded instructions systematically evaluated, or, via the LLMs language interface, intent-focusing mechanisms: through increasing the prompt length / hydrating the user request with additional context/intent: "use this UI, don't drop the db."
From where I'm sitting, LLMs provide a now modality for evaluating intent. How we act on that intent can be totally fluid, totally rigid, or, perhaps obviously, somewhere in-between.
Very provocative to see this near-maximum example of non-deterministic fluid intent interpretation>execution. Thanks, I hate how much I love it!

SkiFire13#
> serving whichever instance is internally evaluated to have done the best. Then you're kind of performing meta reinforcement learning

I thought this didn't work? You basically end up fitting your AI models to whatever is the internal evaluation method, and creating a good evaluation method most often ends up having a similar complexity as creating the initial AI model you wanted to train.

Finbarr3 replies#
If you added a few more tools that let the LLM modify code files that would directly serve requests, that would significantly speed up future responses and also ensure consistency. Code would act like memory. A direct HTTP request to the LLM is like a cache miss. You could still have the feedback mechanism allowing a bypass that causes an update to the code. Perhaps code just becomes a store of consistency for LLMs over time.
hartator1 reply#
You should try making this.
Finbarr#
I'm tempted to!
samrolken2 replies#
This was an unserious experiment meant to illustrate the gap and bottlenecks that are still there. I agree that there's a lot that could be done to optimize this kind of approach. But even if you did, I'm not sure the results would be viable and I'm pretty sure classic coding (with LLM assistance and all) would still outperform such a product.
Finbarr#
I found it thought provoking and interesting. Thanks for sharing.
theendisney#
You need to do more unserious experments. This one is perhaps the best stupid idea ive seen.

Maybe the browser should learn to talk back.
You could store the pages in the database and periodically generate a new version based on the current set of pages and the share of traffic they enjoy. You would get something that evolves and stabilizes in some niche. Have an innitial prompt like; "dinosaurs!" Then sit back and see the magic unfold.

kinduff#
Creating instructions and adding boundaries on how to grow, and you end up with a seed.
d-lisp8 replies#
Why would you need webapps when you could just talk out loud to your computer ?

Why would I need programs with colors, buttons, actual UI ?
I am trying to imagine a future where file navigators don't even exist : "I want to see the photos I took while I was in vacations last year. Yes, can you remove that cloud ? Perfect, now send it to XXXX's computer and say something nice."
"Can you set some timers for my sport session, can you plan a pure body weight session ? Yes, that's perfect. Wait, actually, remove the jumping jacks."
"Can you produce a detroit style techno beat I feel like I want to dance."
"I feel life is pointless without a work, can you give me some tasks to achieve that would give me a feeling of fulfillment ?"
"Can you play an arcade style video game for me ?"
"Can you find me a mate for tonight ? Yes, I prefer black haired persons."

jonplackett4 replies#
Voice interfaces are not the be all and end all of communication. Even between humans we prefer text a lot of the time.
d-lisp#
I cannot speculate about this, because I am not sure too observe the same.
warkdarrior#
We've had writing for only around 6000 years. It shall pass.
Krssst1 reply#
Plus there are many contexts where you don't want to use your voice (public transport, night time with other people sleeping, noisy areas where a mic won't pick up your voice...).

And there are people that unfortunately cannot speak.

d-lisp#
Well, there are people that cannot see.

Fortunately, there are solutions.
I want to add that I think you are missing my argument here. Devices that allow you to speak without speaking shall soon be available to us [0].
The important aspect of my position is to think about the relevance of "applications" and "programs" in the age of AI, and, as an exaggeration of what is shown in that post, I was wondering if in the end, UI is not bound to disappear.
[0] https://www.media.mit.edu/projects/alterego/overview/

Continue this thread — 1 more reply

Continue this thread — 7 more replies

Load more comments