News for hackers. Stuff that matters.
Re:Show HN: Whole Git repo was made with ChatGPT by ricardobayes on Sunday December 04, 2022 @01:05PM (#33856017)
Still, it's a tool that requires human input. Similarly how Photoshop didn't make artists obsolete, it elevated the trade to a new level and capabilities.
Re:Show HN: Whole Git repo was made with ChatGPT by passion__desire on Sunday December 04, 2022 @01:19PM (#33856135)
"And what would excite me about actually the birth of superintelligent AI - one of the things, apart from solving obvious problems like curing disease and energy issues and all the rest, perhaps differs a little bit with what Stuart said. I’m not so worried about idiocracy or all of us just losing our way as apes and living unproductive lives in dialogue with these oracles. I think actually, I would want a truly value-aligned superintelligence to incrementally show us, not merely conserve what we want, but show us what we should want to keep improving our values so that we can navigate in the space of all possible experiences and converge on better and better ones." - Sam Harris

Source : https://youtu.be/h0962biiZa4?t=2486

Re:Show HN: Whole Git repo was made with ChatGPT by rightbyte on Sunday December 04, 2022 @01:45PM (#33856383)
It is probably an excellent learning tool. You can show it code and it will point of the bugs.

    void sort_string(char *str, int backwards) {
      // Get the length of the string
      int len = strlen(str);

      // Use a bubble sort algorithm to sort the string
      for (int i = 0; i < len; i++) {
        for (int j = 0; j < len - i; j++) {
          // If the current character is greater than the next character (or less than, if sorting backwards), swap them
          if ((backwards && str[j] < str[i + 1]) || (!backwards && str[j] > str[i + 1])) {
            char temp = str[j];
            str[j] = str[j + 1];
            str[j + 1] = temp;
          }
        }
      }
    }
Will yield: "The sort_string() function contains two bugs. The first bug is in the inner loop conditional statement [...] The second bug is in the termination condition of the inner loop."

and a detailed explanation of the fix and what the problems are.

The problem is that the working market might be flooded by this since way more people will be able to code ... Github Co-pilot is nowhere near this.

Re:Show HN: Whole Git repo was made with ChatGPT by ricardobayes on Sunday December 04, 2022 @01:53PM (#33856459)
Yes, it seems useful for advanced learners who might actually have questions. It probably can't teach you from scratch yet.
Re:Show HN: Whole Git repo was made with ChatGPT by drivers99 on Sunday December 04, 2022 @04:49PM (#33858293)
I asked it to write a Forth function to do something and when it used commands (words) I didn’t know I asked it what those did. Seems useful for learning. The problem I see is you never know for sure when it’s bluffing about a fact.
Re:Show HN: Whole Git repo was made with ChatGPT by ascorbic on Sunday December 04, 2022 @03:24PM (#33857471)
> Github Co-pilot is nowhere near this. They're both based on GPT-3. The difference is that Copilot's model is trained on a lot more code. I'd be amazed if Copilot doesn't have a super-linter soon that can find and fix these kind of bugs.
Re:Show HN: Whole Git repo was made with ChatGPT by timeon on Sunday December 04, 2022 @03:20PM (#33857423)
Photoshop didn't make artists obsolete but i.e. rendering software did many people obsolete.