News for hackers. Stuff that matters.
Re:The End of Programming by beders on Wednesday December 21, 2022 @09:13PM (#34088894)
The author seems to forget that while an AI can create text that looks like code, it can never prove the code is working correctly (see halting problem).

As with many things, AI will excel at the simple tasks that just require pattern matching and generation to work. Nothing more but also nothing less.

People get carried away by how great AIs are at spitting out complex sentences from a huge training set that look like a human would have written them. Winter v2 is coming.

Besides, there's no training set for the specific domain problem I'm currently solving. It is - by definition - not generic. The problem domain is not bubble sort or fizzbuzz.

Re:The End of Programming by codebje on Wednesday December 21, 2022 @09:40PM (#34089045)
I don't think the halting problem's got anything to do with it, because I certainly also can't prove, in general, whether some code I have written halts or not either but that hasn't held me back from churning out vast quantities of text that, at first glance, might also resemble good code.

But I agree with your sentiment: to get AI to write the code you want, you will need an engineer to work with it.

I do expect that future AI code generation models will learn more about a specific code base over time, partially overcoming domain specific knowledge gaps.

Re:The End of Programming by heavyset_go on Wednesday December 21, 2022 @09:57PM (#34089178)
You can reason why or why not you believe your code is correct, and ultimately come to an understanding if your reasoning proves correct or incorrect, but AI is just working off of patterns from its data sets.
Re:The End of Programming by codebje on Wednesday December 21, 2022 @10:15PM (#34089303)
I am interested in the convergence of AI-generated code and programs-as-proofs: can I work together with AI using a language with a highly expressive type system such that we co-develop a specification in types and properties, then co-develop the implementations that fit the specification.

It's not practical to do that sort of thing alone, as there's a lot of tedious nonsense involved. Maybe it will be more practical with an AI assistant.

Whether current AIs are more or less somewhat close to the basics of how humans might be approaching code writing is more of a philosophical point, but a "translation room" view of the human mind might on occasion make me feel like I'm just working off patterns from my data sets. :-)

Re:The End of Programming by sciolist on Wednesday December 21, 2022 @10:05PM (#34089242)
LLM's aren't just "matching patters", they demonstrate emergent behavior, allowing them to do much more than what they were explicitly trained on. At the moment AI models might not be able to utilize "train of thought reasoning" like we can, however the distance between these emergent behaviors and "reasoning" is much shorter than we realize (and will continue to converge in the future).
Re:The End of Programming by dinkumthinkum on Wednesday December 21, 2022 @11:24PM (#34089769)
So, do you really think these computational AI systems can reason and solve problems equivalently or in a manner superior to humans? If they aren’t matching patterns, which are I think the literature makes clear they are, why does ChatGPT fail at solving logic problems so badly? It is already performing impressive enough at tasks that people think it can replace all knowledge but yet if fails miserably at logic problems and even those that claim it replaces google do not really seems to realize it fails at providing answers to basic facts. I really don’t see any evidence that this type of AI, which is quite advanced for what it is, is type of AI that dissolves technical education / jobs. Another question, if this is on the road to being human intelligence, how is it someone like Ramanujan received no formal schooling and yet could create solutions that seem very far off from the capabilities of these systems which we are claiming will replace humans? Further, if it’s intelligence is so superior, why does it require so many watts of power produce so much thermal by-product when beings that actually do perform in a superior way currently require little more than a bowl of rice every few days to continue solving problems? Is there not sone profound, “emergent,” difference in sophistication?
Re:The End of Programming by Uehreka on Thursday December 22, 2022 @12:51AM (#34090268)
I think what you’re missing in a lot of these comments is that AI doesn’t need to operate at the peak of human intelligence like Ramanujan in order to absolutely gut a lot of job markets.

Like, most developers aren’t writing proofs that a series converges to pi or building Apollo modules where everything has to work perfectly. I’m not gonna act like what we do is easy, because it’s not. However I’ll never forget the day I wrote a WebGL shader in GLSL with Copilot’s help, and then clicked over from a GLSL file to a JS file and Copilot immediately wrote the code to create a THREE.ShaderMaterial, import my shader (with the right file path) and filled out the uniform names and types perfectly on the first try. It took under 2 seconds, and at the datacenter maybe a fistful a watts, and it left me fucking speechless.

I’ll admit it’s pretty weird that these models can write working code in a multi-language codebase but can’t add two four digit numbers. They’re almost savant-like the way they fail at basic tasks while excelling at more complex ones. But given that they are in fact excelling at complex tasks, I’m worried about what could happen if, say, every enterprise dev shop laid off 60% of their headcount and kept the remaining 40% just to do code review. That would be very bad for everyone in the industry.

Re:The End of Programming by sciolist on Thursday December 22, 2022 @02:42AM (#34090866)
Agreed. The article also speaks about engineers using these LLMs still as a tool - not necessarily replacing humans, but humans wielding them as tools. Copilot is a great example. Dinkum raised a great point about the models spitting out falsities or having other issues. We still will have and need human-in-the-loop engineering so that we can discern which outputs are true (or not)!
Re:The End of Programming by dinkumthinkum on Thursday December 22, 2022 @11:12AM (#34094868)
I’m not missing that. The point about Ramanujan is to show there is something fundamentally different and at a massive scale of difference between human intelligence and these AI systems. It’s not that average developers are math prodigies. It is generating code based on predictions from a large corpus of training data. How well does it do at debugging that code (assuming the bugs / code it finds are not the exact kinds posted to Web sites thousands times)?
Re:The End of Programming by roywiggins on Wednesday December 21, 2022 @09:28PM (#34088964)
> it can never prove the code is working correctly (see halting problem).

The halting problem doesn't say anything about whether a program could prove things about another program, just that it can't do it for all programs.

Re:The End of Programming by srcreigh on Thursday December 22, 2022 @02:18AM (#34090730)
The AI can also read our proofs
Re:The End of Programming by beders on Friday December 23, 2022 @02:24PM (#34109661)
No it doesn't, but that is essentially what a coding AI would have to do for correctness.

Unless we are not talking about correctness.

And we are not talking about trivial cases either.

Re:The End of Programming by roywiggins on Friday December 23, 2022 @06:46PM (#34112048)
An AI could correctly prove some things about some programs, and for the rest of them shrug and say it doesn't know.
Re:The End of Programming by olalonde on Wednesday December 21, 2022 @09:50PM (#34089124)
> The author seems to forget that while an AI can create text that looks like code, it can never prove the code is working correctly (see halting problem).

The halting problem applies to humans as well...

Re:The End of Programming by heavyset_go on Wednesday December 21, 2022 @09:54PM (#34089154)
Humans can reason, ML models just follow statistical correlations.
Re:The End of Programming by seba_dos1 on Wednesday December 21, 2022 @10:30PM (#34089431)
"Reasoning" is an emergent property of complicated enough statistical correlation system, with some bells and whistles.
Re:The End of Programming by imtringued on Thursday December 22, 2022 @04:50AM (#34091659)
Reasoning is often purely symbolic.

You take symbol A and derive another symbol from it or combine multiple symbols to form new symbols.

You can approximate this through statistics but sometimes approximations aren't enough.

Re:The End of Programming by olalonde on Wednesday December 21, 2022 @10:21PM (#34089361)
Then I guess those things don't require reasoning?

- Painting beautiful pictures

- Playing chess

- Diagnosing medical conditions based on symptoms

- Writing fictional stories and poems

- Creating original jokes

- Writing, debugging and explaining code

- Explaining quantum theory to a child in the style of Snoop Dogg

Re:The End of Programming by dinosaurdynasty on Wednesday December 21, 2022 @10:08PM (#34089260)
Modern ML models (the kind used in GPT) are Turing-complete afaik
Re:The End of Programming by capitalsigma on Wednesday December 21, 2022 @10:33PM (#34089450)
A model takes a fixed length input and returns a fixed length output in finite time, it's not Turing complete
Re:The End of Programming by roywiggins on Wednesday December 21, 2022 @11:30PM (#34089809)
Just equip it with a paper tape, give it the current cell and state as input and use the output to decide whether to move the tape or write to it. I'm sure you could encode a universal TM in a handcrafted neural net this way.

Maybe it's cheating, but after all, this is the only way humans can do universal computation- we can't hold an infinite tape in our head either, and neither can a CPU, we have to give it sufficient scratch space to act as the tape.

Re:The End of Programming by notwokeno on Wednesday December 21, 2022 @10:03PM (#34089233)
My understanding was that it does a limited form of reasoning via "train of thought." Maybe it can only transform the ideas in the ways it was trained with but when you break it down there are only so many primitives here.
Re:The End of Programming by TravHatesMe on Wednesday December 21, 2022 @10:00PM (#34089208)
But reasoning includes statistical correlations
Re:The End of Programming by satellites on Wednesday December 21, 2022 @10:02PM (#34089222)
Statistical correlations are a subset of reasoning in general
Re:The End of Programming by ghostwriter on Wednesday December 21, 2022 @10:17PM (#34089327)
They aren't a subset of reasoning, they are data points that could be reasoned about (like whether it could be recognised as something known as a notion of <statistical correlation> and whether it make sense from a semantic point of view). Data points could be statistical or non-statistical, and it's the reasoning mind that distinguishes between the two alternatives based on other notions of the world phenomena that make statistics distinguished from non-statistics.

A method of producing statistical correlations is a product of a reasoning mind and could be thought of as a subset of reasoning (if by "subset" we assume "everything produced by a reasoning mind via an act of reasoning"), but in order to recognise this "subset" another reasoning mind should firstly internalise the notions of statistics that are external phenomena to an act of reasoning itself. And "the act of reasoning" isn't proven to be "just something that produces correlations", it's more than that and nobody knows what exactly it is. Otherwise AI would be solved long time ago.

Re:The End of Programming by dinkumthinkum on Wednesday December 21, 2022 @11:10PM (#34089704)
Is that really how you reason, though? Do you think you really reason by having some kind of subconscious statistical computer in your brain somewhere?
Re:The End of Programming by imtringued on Thursday December 22, 2022 @04:53AM (#34091678)
Obviously not, a lot of reasoning boils down to modus ponens.
Re:The End of Programming by notwokeno on Wednesday December 21, 2022 @10:02PM (#34089221)
While your application of the halting problem here is wrong you actually can use it to prove your point about chatGPT.

Have it recite the halting problem

In a new chat have it write a python program that tells you if a given string containing a python program will halt.

It's great at hacking, and completely incapable of engineering.

Re:The End of Programming by Uehreka on Wednesday December 21, 2022 @10:02PM (#34089223)
I do not share your optimism. Right now we are seeing what AI can do with one hand tied behind its back. In my experience, when Github Copilot makes mistakes they are frequently ones that it could’ve avoided if it ran static analysis on its suggestion and realized it was mentioning variable names that aren’t in my code. If the next version of Github Copilot integrates with basic VS Code tooling like Intellisense, it will be insanely powerful.

Like, I see a lot of people saying things like “It’s just pattern-matching, it still needs an engineer to guide it”. That’s true of this version of Github Copilot. If it improves at the same clip as some of these other large models, I suspect it will become much much less true in a short time horizon.

Re:The End of Programming by dinkumthinkum on Wednesday December 21, 2022 @11:09PM (#34089689)
If that’s true why is it so bad at solving logic puzzles?
Re:The End of Programming by Uehreka on Wednesday December 21, 2022 @11:57PM (#34089988)
It’s bad at solving logic puzzles today. We’ve just spent a decade-ish watching AI leapfrog over hurdle after hurdle that people said were going to be “impossible” or “would require reasoning/creativity” or “are at best 10 years away”. It feels foolish to assume we won’t see another unexpected leap.

I would be unsurprised if GPT-4 or 5 suddenly becomes really good at math and logic problems. And long before that I expect AI to be hard to distinguish from a human in terms of day-to-day executive function stuff.

Re:The End of Programming by djmips on Thursday December 22, 2022 @05:59AM (#34092120)
Everyone essentially doesn't know. We are but extrapolating something we don't understand to either future failure or success depending on a gut feeling. Some like you are saying to expect the unexpected while others are saying to expect this to stall out. I've even heard the openAI CEO couch his predictions behind 'assuming we don't stall out'. In this article and elsewhere it's been pointed out that how core abilities of the large language models are not well understood. Without this understanding everyone is just guessing at the future.
Re:The End of Programming by dinkumthinkum on Thursday December 22, 2022 @11:01AM (#34094729)
Why would a language model like this even be good at solving logic puzzles, even GPT-20? I’m not sure west specifically knowledgeable people said would be impossible ten years ago that has been proven wrong now. Right now it’s not even good at answering facts which it has been trained on, let alone actual reasoning. Why does Sky-Net seem more likely than this specific technology having a plateau?
Re:The End of Programming by Existenceblinks on Wednesday December 21, 2022 @10:39PM (#34089496)
[UI -> training models AI -> product] is kind of a wrong way to me.

I'm old-fashioned about AI, over decade ago I was fascinated by Minimax heuristic in a game as a bot. It looked really smart I can't beat them in a deepest tree the machine can support (less pruning). My point is that the key is [UI -> "heuristic" + [business]logic -> product] is the way they should utilize these new neural network based AIs. Don't spit the product out directly because the product currently is looking like "heuristic", not a usable thing in business. Try putting logic in front and behind, especially put it far away from the final product so that the result will look like a legit magic.