New development policy: code generated by a large language model or similar technology (e.g. ChatGPT, GitHub Copilot) is presumed to be tainted (i.e. of unclear copyright, not fitting NetBSD’s licensing goals) and cannot be committed to NetBSD.

https://www.NetBSD.org/developers/commit-guidelines.html

    • @[email protected]
      link
      fedilink
      English
      1097 months ago

      How do they know that you wrote it yourself and didn’t just steal it?

      This is a rule to protect themselves. If there is ever a case around this, they can push the blame to the person that committed the code for breaking that rule.

    • Zos_Kia
      link
      English
      367 months ago

      I’m saddened to use this phrase but it is literally virtue signalling. They have no way of knowing lmao

      • @[email protected]
        link
        fedilink
        English
        127 months ago

        It’s actually simple to detect: if the code sucks or is written by a bad programmer, and the docstrings are perfect, it’s AI. I’ve seen this more than once and it never fails.

        • Zos_Kia
          link
          English
          47 months ago

          I’m confused, do people really use copilot to write the whole thing and ship it without re reading?

          • @[email protected]
            link
            fedilink
            English
            77 months ago

            I literally did an interview that went like this:

            1. Applicant used copilot to generate nontrivial amounts of the code
            2. Copilot generated the wrong code for a key part of the algorithm; applicant didn’t notice
            3. We pointed it out, they fixed it
            4. They had to refactor the code a bit, and ended up making the same exact mistake again
            5. We pointed out the error again…

            And that’s in an interview, where you should be extra careful to make a good impression…

          • @[email protected]
            link
            fedilink
            English
            47 months ago

            Not specific to AI but someone flat out told me they didn’t even run the code to see it work. They didn’t understand why I would or expect that before accepting code. This was someone submitting code to a widely deployed open source project.

            So, I would expect the answer is yes or very soon to be yes.

          • @[email protected]
            link
            fedilink
            English
            1
            edit-2
            7 months ago

            Around me, most beginners who use that don’t have the skills to understand or even test what they get. They don’t want to learn I guess, ChatGPT is easier.

            I recently suspected a new guy was using ChatGPT because everything seemed perfect (grammar, code formatting, classes made with design patterns, etc.) but the code was very wrong. So I did some pair programming with him and asked if we could debug his simple application. He didn’t know where the debug button was.

            • Zos_Kia
              link
              English
              27 months ago

              Guilty as charged, ten years into the job and I never learned to use a debugger lol.

              Seriously though that’s amazing to me I never met one of those… I guess 95% of them will churn out of the industry in less than five years…

              • @[email protected]
                link
                fedilink
                English
                1
                edit-2
                7 months ago

                Debug button? There is a button that inserts ‘printf(“%s:%s boop! \n” , __FUNCTION__, __LINE__) ;’?

        • TimeSquirrel
          link
          fedilink
          2
          edit-2
          7 months ago

          So your results are biased, because you’re not going to see the decent programmers who are just using it to take mundane tasks off their back (like generating boilerplate functions) while staying in control of the logic. You’re only ever going to catch the noobs trying to cheat without fully understanding what it is they’re doing.

          • @[email protected]
            link
            fedilink
            English
            87 months ago

            You’re only ever going to catch the noobs.

            That’s the fucking point. Juniors must learn, not copy paste random stuff. I don’t care what seniors do.

      • Venator
        link
        fedilink
        97 months ago

        It’s also probably to make things slightly simpler from a legal perspective.

        • Zos_Kia
          link
          English
          17 months ago

          That makes sense yes

    • ceasarlegsvin
      link
      fedilink
      117 months ago

      Because they’ll be shit?

      Docstrings based on the method signature and literal contents of a method or class are completely pointless, and that’s all copilot can do. It can’t Intuit anything that docstrings are actually there for.

      • Zos_Kia
        link
        English
        37 months ago

        Definitely not my experience. With a well structured code base it can be pretty uncanny. I think it’s context is limited to files that are currently opened in the editor, so that may be your issue if you’re coding with just one file open?

        • TimeSquirrel
          link
          fedilink
          4
          edit-2
          7 months ago

          GitHub Copilot introduced a new keyword a little while ago, “@workspace”, where it can see everything in your project. The code it generates uses all your own functions and variables in your libraries and it figures out how to use them correctly.

          There was one time where I totally went “WTF”, because it spat out Python. In a C++ project. But those kind of hallucinations are getting more and more rare. The more code you write, the better it gets. It really does become sort of like a “Copilot”, sitting there coding alongside you. The mistake people make is assuming it’s going to come up with ideas and algorithms for them without spending any mental energy at all.

          I’m not trying to shill. I’m not a programmer by trade. Just a hobbyist who started on QBasic in the ancient times. But I’ve been trying to learn it off and on for the past 30 years, and I’ve never learned so much and had so much fun as in the last 1.5 with AI help. I can just think of stuff to do, and shit will just flow out now.