by yumraj · 5y ago · 0 comments
1) it’s new code that works well in 90-95% of the cases, but fails in unexpected ways and cannot be debugged, you have to generate a new piece of code that works in the above failure but has its own: works 90-95% times and fails in mysterious ways
OR
2) it looks like code, it reads like code but humans can’t figure out what it does
OR
3) it is a collection of blocks of code put in order automatically to do a certain job, that works in 90-95% of cases and…
OR
4) ??
- if this is something like automated theorem provers, it's something like (2). It's correct, provably correct even, but it's a bunch of nonsense that provides no insight to humans.
- if this is something like natural language query generators, it's something like (1), but with a much lower success rate (closer to 50% IME).
I don't even need to specify that AI-generated code is interesting, but we aren't even remotely close to being there.
First and most importantly, programming computers is a very precise endeavor. The logic needs to be exactly correct, not only statistically correct. 'Close enough' won't cut it, not even remotely, and not even for relatively unimportant software.
Second, the general problem is undecidable. This isn't a roadblock per se, because we are reasonably good at other undecidable problems (viz. garbage collection), but it means simple algorithmical approaches won't work.
Third, software is in a weird place because it requires working at different abstraction levels simultaneously. Often, top-level specifications are fuzzy and incomplete, but some parts require absolute precision and we need to "drop down" to a lower level of abstraction. Humans are able to make the process work (kinda) using lots of common sense, something machines are currently very bad at. If you require the operator of the 'AI' to fill in the details, you just invented a very complicated compiler.
Finally, rarely if ever present-day software is made once and never changed: the output needs to be inspectable and maintainable, other software might need to call into it, etc. If the pipeline is more complicated than the software itself, I might as well be writing the code myself.
I can see some minor, specific tasks being increasingly done with AI, and I can see tools making more and more use of AI technology, but AI generated code isn't even on the horizon.
Eventually you could also have another separate AI that learns to generate the test suite itself from instructions given to it by a human (or even another AI!).
Most program implementations would not be perfect, but as we know, software written by humans certainly isn’t perfect either.