News for hackers. Stuff that matters.
Re:AI code is legacy code by kachapopopow on Sunday May 04, 2025 @03:20PM (#43888828)
Forget AI "code", every single request will be processed BY AI!

People aren't thinking far enough, why bother with programming at all when an AI can just do it?

It's very narrow to think that we will even need these 'programmed' applications in the future. Who needs operating systems and all that when all of it can just be AI.

In the future we don't even need hardware specifications since we can just train the AI to figure it out! Just plug inputs and outputs from a central motherboard to a memory slot.

Actually forget all that, it'll just be a magic box that takes any kind of input and spits out an output that you want!

--

Side note: It would be really interesting to see a website that generates all the pages every time a user requests them, every time you navigate back it would look the same, but some buttons in different places, the live chat is in a different corner, the settings now have a vertical sidebar instead of a horizontal menu.

Re:AI code is legacy code by nkrisc on Sunday May 04, 2025 @03:52PM (#43889073)
> On two occasions I have been asked, 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
Re:AI code is legacy code by kachapopopow on Sunday May 04, 2025 @04:06PM (#43889175)
An Artificial Intelligence on that level would be able to easily figure out what you actually want. We should maybe go one step further and get rid of the inputs? They just add all of that complexity when they're not even needed.
Re:AI code is legacy code by nkrisc on Sunday May 04, 2025 @04:59PM (#43889525)
Right? The AI can just predict what we'll want and then create it for us.
Re:AI code is legacy code by Filligree on Sunday May 04, 2025 @05:46PM (#43889848)
Well, 'create it' at least. Leaving the humans in place would just mess things up.
Re:AI code is legacy code by didgetmaster on Sunday May 04, 2025 @06:17PM (#43890078)
Isn't that the whole premise behind 'The Matrix'? An imaginary world created as a simulation by machines.
Re:AI code is legacy code by Mbwagava on Sunday May 04, 2025 @11:16PM (#43891662)
Yea but the world they created wasn't one anyone wanted or asked for any more than our own reality caters to us; it is intended to portray life as it was in the nineties. To accept this as ideal is to accept that we currently live in an ideal world, which is extremely difficult to accept.
Re:AI code is legacy code by chronid on Monday May 05, 2025 @02:45AM (#43892500)
In one of the movies it's actually explained the machines originally created an utopia for humanity, but it was bad for "engagement" and "retention" and they had to pivot on the nineties simulator - which was better accepted.
Re:AI code is legacy code by Mbwagava on Monday May 05, 2025 @03:27AM (#43892658)
Ok, sure. In neither case was such a world a product of imagination.
Re:AI code is legacy code by ehnto on Sunday May 04, 2025 @11:41PM (#43891780)
And if it wasn't what you wanted, well maybe you are wrong. An AI that intelligent is always right after all.

Seriously though, at some point AI does actually need an input from the user, if we are imagining ourselves still as the users.

If instead we just let AI synthesise everything, including our demands and desires, then why bother being involved at all. Take the humans out of the loop. Their experience of the outputs of the AI is actually a huge bottleneck, if we skip showing the humans we can exist so much faster.

Re:AI code is legacy code by namaria on Monday May 05, 2025 @07:23AM (#43893805)
Y'all starting to sound awfully like religious types. Is that satire?
Re:AI code is legacy code by andrei_says_ on Monday May 05, 2025 @02:31PM (#43897988)
Or figured out that “perception is reality” and make the necessary adjustments to what we think we want.
Re:AI code is legacy code by Mbwagava on Sunday May 04, 2025 @06:28PM (#43890136)
At some point we just need to acknowledge that such speculation is like asking for a magic genie in a bottle rather than discussing literal technology.
Re:AI code is legacy code by TeMPOraL on Monday May 05, 2025 @06:41AM (#43893564)
"Magic genie in a bottle" is a very good way of framing what an AGI would (will) be if implemented, complete with all the obvious failure modes that end disastrously for the heroes in magic genie stories.
Re:AI code is legacy code by namaria on Monday May 05, 2025 @07:22AM (#43893796)
That's basically the whole premise of Bostrom's "Superintelligence"
Re:AI code is legacy code by andrei_says_ on Monday May 05, 2025 @02:30PM (#43897975)
Also consider that you won’t know if the answer relates to what you want or not because you have no reference helping distinguish between reality and hallucination.

And have been conditioned to accept LLM responses as reality.

Re:AI code is legacy code by TeMPOraL on Sunday May 04, 2025 @04:46PM (#43889443)
Mr. Babbage apparently wasn't familiar with the idea of error correction. I suppose it's only fair; most of the relevant theory was derived in the 20th century, AFAIR.
Re:AI code is legacy code by kibwen on Sunday May 04, 2025 @05:00PM (#43889536)
No, error correction in general is a different concept than GIGO. Error correction requires someone, at some point, to have entered the correct figures. GIGO tells you that it doesn't matter if your logical process is infallible, your conclusions will still be incorrect if your observations are wrong.
Re:AI code is legacy code by Mbwagava on Sunday May 04, 2025 @06:30PM (#43890143)
I suppose spell checking is a sort of literal error correction. Of course this does require a correct list of words and misspellings to not be on that list.
Re:AI code is legacy code by pixl97 on Sunday May 04, 2025 @08:13PM (#43890759)
Honestly I see this not about error but instead divining with perfect accuracy what you want. And when you say it that way it starts sounding like a predicting the future machine.
Re:AI code is legacy code by Mbwagava on Sunday May 04, 2025 @08:38PM (#43890890)
Well yea as soon as someone starts acting like humans communicate well, let alone the mind-reading behavior you're describing, I'm completely lost.
Re:AI code is legacy code by TeMPOraL on Monday May 05, 2025 @02:14AM (#43892372)
GIGO is an overused idea that's mostly meaningless in the real world. The only way for the statement to be true in general sense, is if your input is uniformly random. Anything else carries some information. In practice, for Babbage's quip to hold, the interlocutor doesn't need to merely supply any wrong figures, they need to supply ones specifically engineered to be uncorrelated with the right figures.

Again, in general sense. Software engineers are too used to computers being fragile wrt. inputs. Miss a semicolon, program won't compile (or worse, if it's JavaScript). But this level of strictness wrt. inputs is a choice in program design.

Error correction was just one example anyway. Programmers may be afraid of garbage in their code, but for everyone else, a lot of software is meant to sift through garbage, identifying and amplifying desired signals in noisy inputs. In other words, they're producing right figures in the output out of wrong ones in the input.

Re:AI code is legacy code by jackyard86 on Monday May 05, 2025 @03:21AM (#43892637)
I don't think machines should rely on an opaque logic to assume and "correct errors" on user input. It's more accurate to "fail" than handling out an assumed output.

And also:

> they need to supply ones specifically engineered to be uncorrelated with the right figures.

I assume most people will understand this way (including me) when it's said to "input wrong figures".

Re:AI code is legacy code by kibwen on Monday May 05, 2025 @06:02AM (#43893372)
> In other words, they're producing right figures in the output out of wrong ones in the input.

This does not refute the concept GIGO nor does it have anything to do with it. You appear to have missed the point of Babbage's statement. I encourage you to meditate upon it more thoroughly. It has nothing to do with the statistical correlation of inputs to outputs, and nothing to do with information theory. If Babbage were around today, he would still tell you the same thing, because nothing has changed regarding his statement, because nothing can change, because it is a fundamental observation about the limitations of logic.

Re:AI code is legacy code by TeMPOraL on Monday May 05, 2025 @06:36AM (#43893539)
I don't know what the point of Babbage's statement was; it makes little sense other than a quip, or - as 'immibis suggests upthread[0] - a case of Babbage not realizing he's being tested by someone worried he's a fraud.

I do usually know what the point of any comment quoting that Babbage's statement is, and in such cases, including this one, I almost always find it wanting.

--

[0] - https://news.ycombinator.com/item?id=43893270

Re:AI code is legacy code by alpaca128 on Sunday May 04, 2025 @05:05PM (#43889577)
What's 1+1?

Exactly, it's 5. You just have to correct the error in the input.

Re:AI code is legacy code by TeMPOraL on Monday May 05, 2025 @02:17AM (#43892383)
Yes, with sufficient context, that's what I do every day, as presentation authors, textbook authors and Internet commentariat alike, all keep making typos and grammar errors.

You can't deal with humans without constantly trying to guess what they mean and use it to error-correct what they say.

(This is a big part of what makes LLMs work so well on wide variety of tasks, where previous NLP attempts failed.)

Re:AI code is legacy code by Timwi on Monday May 05, 2025 @02:38AM (#43892473)
I often wish LLMs would tell me outright the assumptions they make on what I mean. For example, if I accidentally put “write an essay on reworkable energy”, it should start by saying “I'm gonna assume you mean renewable energy”. It greatly upsets me that I can't get it to do that just because other people who are not me seem to find that response rude for reasons I can't fathom, so it was heavily trained out of the model.
Re:AI code is legacy code by TeMPOraL on Monday May 05, 2025 @05:41AM (#43893293)
Huh, I'd expect it do exactly what you want it to, or some equivalent of it. I've never noticed LLMs silently make assumptions on what I meant wrt. anything remotely significant; they do stellar job at being oblivious to typos, bad grammar and other fuckups of ESL people like me, and (thankfully) they don't comment on that, but otherwise, they've always been restating my requests and highlighting if they're deviating from direct/literal understanding.

Case in point, I recently had ChatGPT point out, mid-conversation, that I'm incorrectly using "disposable income" to mean "discretionary income", and correctly state this must be the source of my confusion. It did not guess that from my initial prompt; it took my "wrong figures" at face value and produced answers that I countered with some reasoning of my own; only then, it explicitly stated that I'm using the wrong term because what I'm saying is correct/reasonable if I used "discretionary" in place of "disposable", and proceeded to address both versions.

IDK, but one mistake I see people keep making even today, is telling the models to be succinct, concise, or otherwise minimize the length of their answer. For LLMs, that directly cuts into their "compute budget", making them dumber. Incidentally, that could be also why one would see the model make more assumptions silently - these are one of the first things to go when one's trying to write concisely. "Reasoning" models are more resistant to this, fortunately, as the space between the "<thinking> tags" is literally the "fuck off user, this is my scratchpad, I shall be as verbose as I like" space, so one can get their succinct answers without compromising the model too badly.

Re:AI code is legacy code by mock-possum on Tuesday May 06, 2025 @12:13AM (#43901751)
That’s right, it goes in the square hole!
Re:AI code is legacy code by immibis on Monday May 05, 2025 @05:34AM (#43893270)
They were simply asking if Babbage had prepared the machine to always give the answers to the questions Babbage knew he was going to enter - i.e. whether he was a fraud.

Enter 2+2. Receive 4. That's the right answer. If you enter 1+1, will you still receive 4? It's easy to make a machine that always says 4.

Re:AI code is legacy code by CharlieDigital on Sunday May 04, 2025 @03:40PM (#43888978)

    > It would be really interesting to see a website that generates all the pages every time a user requests them
We tried a variant of this for e-commerce and my take is that the results were significantly better than the retailer's native browsing experience.

We had a retailer's entire catalog processed and indexed with a graph database and embeddings to dynamically generate dynamic "virtual shelves" each time when users searched. You can see the results and how it compares to the retailer's native results

Example on Ulta's website: https://youtu.be/JL08UDxM_5M

Example on Safeway: https://youtu.be/xQEfo_XCM2M

Re:AI code is legacy code by krapht on Sunday May 04, 2025 @04:27PM (#43889324)
It is nicer, but that interface latency would turn me off. When I search for online groceries, I want simple queries e.g spinach to return varieties (e.g frozen, fresh, and canned) of spinach as fast as possible.
Re:AI code is legacy code by CharlieDigital on Sunday May 04, 2025 @08:02PM (#43890694)
This was the Best of both worlds in my opinion because you had the native results and then the AI generated personalized results
Re:AI code is legacy code by jt2190 on Sunday May 04, 2025 @04:10PM (#43889202)
Exactly. People are too focused on shoehorning AI into today’s “humans driving computers” processes, instead of thinking about tomorrow’s “computers driving computers” processes. Exactly as you say, today it’s more efficient to create a “one size fits all” web site because human labor is so expensive, but with computer labor it will be possible to tailor content to each user’s tastes.
Re:AI code is legacy code by tehjoker on Sunday May 04, 2025 @04:20PM (#43889275)
Ah yes, let's have a society where there are no common points of references between people and everyone's pocketbook is maximally empty
Re:AI code is legacy code by nkrisc on Sunday May 04, 2025 @05:01PM (#43889542)
So where do humans fit into this future? Ah, I suppose someone has to mine the rare earth minerals used to create the hardware.
Re:AI code is legacy code by jay_kyburz on Sunday May 04, 2025 @05:07PM (#43889595)
I believe this is why there is so much fuss about AGI. Once you have humans out of the equation, hardware and power are the only limiting factor.
Re:AI code is legacy code by myko on Sunday May 04, 2025 @05:36PM (#43889787)
This kind of thinking makes me consider the benefits of the Butlerian Jihad
Re:AI code is legacy code by adverbly on Sunday May 04, 2025 @03:59PM (#43889120)
This is flying car thinking IMO.

You're entirely ignoring data ownership and privacy/security, energy/compute efficiency demands, latency.

Re:AI code is legacy code by kachapopopow on Sunday May 04, 2025 @04:02PM (#43889137)
But... but the magic box said it is possible in theory!

--

Well, actually this is more real than flying cars. It would just be very very very slow and wouldn't survive longer than few milliseconds at best.

Re:AI code is legacy code by bigfatkitten on Sunday May 04, 2025 @05:09PM (#43889612)
> You're entirely ignoring data ownership and privacy/security, energy/compute efficiency demands, latency.

Web developers generally have very little regard for these things now.

Re:AI code is legacy code by krainboltgreene on Sunday May 04, 2025 @05:57PM (#43889940)
Even if that were true, and it’s not, that’s not a good thing.
Re:AI code is legacy code by bathtub365 on Sunday May 04, 2025 @07:15PM (#43890440)
I think that’s the joke
Re:AI code is legacy code by jonchurch_ on Sunday May 04, 2025 @03:44PM (#43889003)
I think you’re joking in general, but your sidenote is already extremely close to websim[0] which is an art adjacent site that takes a URL as prompt and then creates the site. The point is effectively a hallucinated internet, and it is a neat toy

[0] https://websim.ai/

Re:AI code is legacy code by jsheard on Sunday May 04, 2025 @03:25PM (#43888866)
> Side note: It would be really interesting to see a website that generates all the pages every time a user requests them, every time you navigate back it would look the same, but some buttons in different places, the live chat is in a different corner, the settings now have a vertical sidebar instead of a horizontal menu.

Please don't give A/B testers ideas, they would do that 100% unironically given the chance.

Re:AI code is legacy code by wheelie_boy on Sunday May 04, 2025 @03:37PM (#43888941)
It's like that AI doom, where when you look at the floor and back up you're in a totally different room
Re:AI code is legacy code by evrimoztamur on Sunday May 04, 2025 @03:34PM (#43888924)
Resource scarcity will fix this!
Re:AI code is legacy code by kachapopopow on Sunday May 04, 2025 @04:03PM (#43889151)
We will have fussion in 20 years!
Re:AI code is legacy code by ozgrakkurt on Sunday May 04, 2025 @03:29PM (#43888887)
This is just not possible technically, and seems like it won’t be for a very long time
Re:AI code is legacy code by suddenlybananas on Sunday May 04, 2025 @03:33PM (#43888920)
I think it's meant to be ironic.
Re:AI code is legacy code by Aperocky on Sunday May 04, 2025 @03:36PM (#43888937)
I've met with enough people that think like this (note: not just on AI) that I honestly can't tell if it's sarcasm anymore.
Re:AI code is legacy code by alasano on Sunday May 04, 2025 @03:44PM (#43889006)
Taken to the extreme and dumbed down, I don't think it's bad to think about it like that to be fair. HYPE spewing aside.

The comment you replied to is sarcastic but magic box that does everything is pretty much where things end up, given enough time.

Re:AI code is legacy code by baxtr on Sunday May 04, 2025 @03:42PM (#43888987)
Is this a joke? Please tell me it is.

So many people talk AI non-sense these days that it’s hard to distinguish from satire.

Re:AI code is legacy code by kachapopopow on Sunday May 04, 2025 @04:00PM (#43889124)
Very much is a joke.
Re:AI code is legacy code by baq on Sunday May 04, 2025 @04:22PM (#43889296)
The optimistic take.
Re:AI code is legacy code by kachapopopow on Sunday May 04, 2025 @04:25PM (#43889315)
It wouldn't be as funny if it was impossible.
Re:AI code is legacy code by baq on Sunday May 04, 2025 @04:33PM (#43889349)
I find myself not being able to tell lately if it’s reality leaking into https://zombo.com/ or the other way around.
Re:AI code is legacy code by baxtr on Sunday May 04, 2025 @04:54PM (#43889490)
Is this a portal to another dimension?!
Re:AI code is legacy code by surfingdino on Sunday May 04, 2025 @03:45PM (#43889015)
I look forward to the day when AI returns a different list of my ailments for every new query from the hospital and suggests a new treatment for them.
Re:AI code is legacy code by codybontecou on Sunday May 04, 2025 @03:23PM (#43888855)
A digital Costco.
Re:AI code is legacy code by TeMPOraL on Sunday May 04, 2025 @03:38PM (#43888955)
Or Star Trek, if you take a positive perspective instead of cynical one.
Re:AI code is legacy code by exiguus on Sunday May 04, 2025 @05:08PM (#43889602)
Think about glasses that do this for you in real life. Everyone is seeing the world different, but with that, you can see your world different.
Re:AI code is legacy code by Wowfunhappy on Sunday May 04, 2025 @05:25PM (#43889713)
I don't know where we are on the LLM innovation S-curve, but I'm not convinced that plateau is going to be high enough for that. Even if we get an AI that could do what you describe, it won't necessarily be able to do it efficiently. It probably makes more sense to have the AI write some traditional computer code once which can be used again and again, at least until requirements change.

The alternative is basically https://ai-2027.com/ which obviously some people think is going to happen, but it's not the future I'm planning for, if only because it would make most of my current work and learning meaningless. If that happens, great, but I'd rather be prepared than caught off guard.

Re:AI code is legacy code by staunton on Sunday May 04, 2025 @06:42PM (#43890235)
That leads to a kind of fluid distinction similar to interpreted vs. compiled languages.

You tell the AI what you want it to do. The AI does what you want. It might process the requests itself, working at the "code level" of your input, which is the prompt. It might also generate some specific bytecode, taking time an effort which is made up for by more efficiently processing inputs. You could have something like JIT, where the AI decides which program to use for the given request, occasionally making and caching a new one if none fit.

Re:AI code is legacy code by foobahhhhh on Thursday May 08, 2025 @07:00AM (#43924988)
Yeah AI at least now is so energy inefficient. There is only so much sun hitting earth we can be stupid with. Using AI for everything makes electron apps seem efficient! Once the hype runs out and you pay full price much AI today will be unattractive. Hopefully that leads to more efficient AI. (Which I suspect is more interesting)
Re:AI code is legacy code by arandomhuman on Sunday May 04, 2025 @05:40PM (#43889815)
I can’t tell if this is satire or not please help me
Re:AI code is legacy code by throwup238 on Sunday May 04, 2025 @05:42PM (#43889827)
It doesn’t matter. This is Hacker News: someone will take the idea seriously and slide us one step closer to a technodystopia.
Re:AI code is legacy code by LouisSayers on Sunday May 04, 2025 @06:04PM (#43889985)
This actually sounds like a fun-ish project.

Has anyone done this yet (AI handled dynamic API that calls into a bunch of systems)?

Re:AI code is legacy code by sureglymop on Sunday May 04, 2025 @06:15PM (#43890067)
I recently had an thought that is somewhat relevant.

> sched_ext is a Linux kernel feature which enables implementing kernel thread schedulers in BPF and dynamically loading them.

It would be interesting to see an AI scheduler for linux.

Re:AI code is legacy code by Mbwagava on Sunday May 04, 2025 @06:27PM (#43890126)
It is the natural progression of trying to figure out how to slow down computation without providing additional value.
Re:AI code is legacy code by echelon on Sunday May 04, 2025 @06:49PM (#43890280)
I know this is satire, but you're right. In the future loose requirements will produce statically executable plans that run fast in future invocations.

Our jobs will be replaced. It's just a matter of when. I'm very pessimistic about the near term. But long term, there's no way the jobs we do survive in their current form.

If I were to guess, I'd say 20 or more years? But who knows.

Re:AI code is legacy code by phreack on Sunday May 04, 2025 @08:20PM (#43890793)
> Side note: It would be really interesting to see a website that generates all the pages every time a user requests them, every time you navigate back it would look the same, but some buttons in different places, the live chat is in a different corner, the settings now have a vertical sidebar instead of a horizontal menu.

So, Instagram?

Re:AI code is legacy code by nivertech on Monday May 05, 2025 @08:31PM (#43900761)
Who needs "a magic box that takes any kind of input and spits out an output that you want", when you can augment Human brain to do the same thing?
Re:AI code is legacy code by foobahhhhh on Thursday May 08, 2025 @06:57AM (#43924979)
Turtles all the way down: why bother with a GPU when you can get AI to guess the attention operation. Just tell the AI what the AI should do and it can use AI to compute the AI!