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.
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. :-)
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.
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.
Unless we are not talking about correctness.
And we are not talking about trivial cases either.
The halting problem applies to humans as well...
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.
- 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
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.
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.
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.
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.
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.
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.
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.