News for hackers. Stuff that matters.
Re:The Inherent Limitations of GPT-3 by amelius on Monday November 29, 2021 @07:13PM (#29387132)
I wonder if we can make it useful for refactoring. Like let's say I change the second argument of a function from int to long, then I do the same for another function. Can autopilot "understand" what I'm doing, and apply the same change to the rest of my source file?

Or more general. E.g. I'm in an graphics editor and move one shape so it touches a line, then another shape in the same way, can an AI understand what I'm trying to do and make all the shapes touch the line?

Re:The Inherent Limitations of GPT-3 by acapybara on Tuesday November 30, 2021 @08:02PM (#29399440)
Had the same thought!

The OpenAI API has davinci-codex, which could probably be trained for refactoring, but it's private beta...

I think this is potentially a great use case, especially "code cleanup" tasks. Train it on several examples of messy code and clean code. I think it would have good results.

Re:The Inherent Limitations of GPT-3 by ganeshkrishnan on Monday November 29, 2021 @10:50PM (#29388747)
At least for Java, it can't do that. It only adds new code below the one you are typing. You can add a comment and it tries to "code" that comment.