3 ms·
Yes, but I think writing code is more important than people make it sound. Because, writing something that is executed correctly is easy. But writing it so that
by valenterry 4y ago
Yes, but I think writing code is more important than people make it sound. Because, writing something that is executed correctly is easy. But writing it so that others can understand it later, change it easily and safely, having a compiler to make sure nothing goes wrong - while still having the computer execute it correctly - THAT is the real challenge.
Which is also the problem with any AI. If the AI can program, then not only does it have to write code; it will also have to read existing code and make adjustments to it, based on request. This is the real challenge. "Hey, I have this 1MM line software, please change feature X to do A on top of B but keep C working". If the AI can do THAT, well THEN that's the end of programming by humans and then I'm gonna escape to a small island ASAP because the singularity will be soon after.
- ilaksh 4y agoI have done some experiments with text-davinci-003 that given a program update and directory list can select the files, then do the requested update. Its not a million lines.
- Waterluvian 4y agoI generally agree. I think that today it’s a brilliant tool for throwaway code. Like when you just want the output. Especially if the output can be verifiable or is okay to be fuzzy.
- Existenceblinks 4y agoI think, if possible, the faster way is to skip lexing and parsing all together for the AI input+output, it's a waste of resource. Probably start fresh with a new kind of assembly and AST, so the AI could have a better learning data and approach.
- imtringued 4y agoBut then it can't steal human written code.
- Existenceblinks 4y agoTrue. I would imagine training AI to understand assembly first, make it write a higher level simplest building block like `foldl`. And make the language pipe-only. No closure or anything like that, just pipe it all the way down, the machine doesn't need "naming" or name based id, now refactoring is easier not to break thing. etc.
- imtringued 4y agoAs someone who tried to feed a 50 line code base into ChatGPT only to watch it fail with very hard errors (no I don't mean it answered incorrectly, it crashed), I am not very impressed.