News for hackers. Stuff that matters.
Re:Show HN: Whole Git repo was made with ChatGPT by aprdm on Sunday December 04, 2022 @04:15PM (#33857960)
Most projects have plenty of bad code, nobody cares, as long as it solves the problem.
Re:Show HN: Whole Git repo was made with ChatGPT by ad404b8a372f2b9 on Sunday December 04, 2022 @05:00PM (#33858414)
The bad code it produces is not just stylistically bad, it often doesn't solve the problem.

It seems to be making the same kind of errors in code as we've seen in speech, you get a lot of plausible but subtly wrong hallucinated content that only someone who knows the subject can identify. It prefers probable output over matching the specifications so it'll add unnecessary branches just because it's seen them millions of times.

Among errors I've seen it make there is bad indexing, adding conditions that serve no purpose or assuming a variable has a specific structure when it doesn't.