News for hackers. Stuff that matters.
Re:ChatGPT's API Is So Good and Cheap, It Makes Most Text Ge... by throwaway1851 on Sunday March 12, 2023 @04:48AM (#35118097)
Yes. I have been using ChatGPT quite a bit with programming tasks. One of the things I've been trying to do is using chain-of-thought prompting to ask the model to review its own code, line by line, evaluating it for the presence of a certain type of bug or some other criterion.

This has been illuminating: as ChatGPT steps through the lines of code, its "analysis" discusses material that _is not present in the line of code_. It then reaches a "conclusion" that is either correct or incorrect, but having no real relationship to the actual code.

Re:ChatGPT's API Is So Good and Cheap, It Makes Most Text Ge... by melagonster on Sunday March 12, 2023 @12:56PM (#35122616)
I try to ask chatGPT add comments to my code, everything is good until I found it modify code, too.