Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I just plugged in 600 lines of code that I knew had a bug in but didn't have the inclination to fix. After a conversation I think we might have the answer. At various points it splurged out 600 lines, but I asked it for a diff and it obliged. It also suggested a different implementation, so I asked it to fix my code in as few changes as possible and it did that too.

The ability to get something mostly there and have it fix bugs while explaining them is going to be massive. I mean, who really cares about the details? We only have had to care because, well, we've had no choice. But like how cruise control frees you up to just steer, and lane control frees you up even more, this means we can start to ease off on caring about the details of what we write, especially if it can produce tests too.



Unfortunately, the code it generated didn't fix the issue. Subsequent attempts to get it to fix the issue referred to variables that didn't exist, etc. so back to the drawing board unfortunately...


I wonder how effective it would be at finding exploitable security holes in code.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: