The GNOME.org Extensions hosting for GNOME Shell extensions will no longer accept new contributions with AI-generated code. A new rule has been added to their review guidelines to forbid AI-generated code.

Due to the growing number of GNOME Shell extensions looking to appear on extensions.gnome.org that were generated using AI, it’s now prohibited. The new rule in their guidelines note that AI-generated code will be explicitly rejected

    • uncouple9831@lemmy.zip
      link
      fedilink
      arrow-up
      6
      arrow-down
      65
      ·
      2 days ago

      Why? If the code works the code works, and a person had to make it work. If they generated some functions who cares? If they let the computer handle the boilerplate, who cares? “Oh no the style is inconsistent…” Who cares?

      • brian@programming.dev
        link
        fedilink
        arrow-up
        10
        arrow-down
        1
        ·
        1 day ago

        you shouldn’t be able to tell if someone used ai to write something. if you can then it is bad code. they’re not talking about getting completion on a fn, they’re talking about letting an agent go and write chunks of the project.

        • uncouple9831@lemmy.zip
          link
          fedilink
          arrow-up
          1
          arrow-down
          9
          ·
          edit-2
          1 day ago

          So then the policy doesn’t make sense and should focus on what specific issues are associated with llm-generated code that are problematic. For example, I’ve seen llms generate fairly unreadable loops because it uses weird variable names. That’s a valid offense to criticize.

          However I’ve also read C code before so I’ve seen an obscene amount of human generated code with shitty variable names that don’t mean anything. So why is the shitty human C code ok but shitty LLM code is not? And if no shitty code is accepted (it’s gnome so I doubt that), then why does anyone need a new rule?

            • uncouple9831@lemmy.zip
              link
              fedilink
              arrow-up
              1
              arrow-down
              5
              ·
              1 day ago

              That’s cool, but why? I tend to use longer variable names that are mostly self-explanatory because, well, intellisense exists so I don’t really need to make them short.

            • uncouple9831@lemmy.zip
              link
              fedilink
              arrow-up
              1
              arrow-down
              6
              ·
              1 day ago

              Yes, it says there was an unnecessary try/catch, that’s pretty weak if that’s the only reason.

              • foenkyfjutschah@programming.dev
                link
                fedilink
                arrow-up
                4
                ·
                1 day ago

                read their text again, the problem is that people submit code that they don’t understand. and this will grow the more people decide to stay stupid / employ LLMs.

                • uncouple9831@lemmy.zip
                  link
                  fedilink
                  arrow-up
                  1
                  arrow-down
                  4
                  ·
                  edit-2
                  1 day ago

                  Well that’s an assertion they are claiming, maybe. I see people on lemmy claim that all of the time about people who use LLM tools but thinking a thing doesn’t make it fact.

                  Edit: I just reread the blog and actually see zero mention of that claim. So I’m not sure where you’re reading that I’m not seeing.

        • De Lancre@lemmy.world
          link
          fedilink
          arrow-up
          1
          arrow-down
          2
          ·
          1 day ago

          But if we talking about extensions, no one will debug your code. There like, 5 extensions that used consistently and others have 5-10 downloads. We have like, 5 extensions to hide top bar, cause each time developer just give up, so I don’t really understand this “rule” and reasons behind it.

        • ikidd@lemmy.world
          link
          fedilink
          English
          arrow-up
          4
          arrow-down
          4
          ·
          1 day ago

          This is Gnome we’re talking about here, they don’t GAF if extensions work or not. They’ll break them tomorrow if they feel like it.

            • ikidd@lemmy.world
              link
              fedilink
              English
              arrow-up
              1
              arrow-down
              3
              ·
              1 day ago

              uninformed

              I’ve used Gnome on and off for about a quarter century. There have been devs with very popular extensions that have sworn off Gnome because of their attitude towards breaking extensions. So if they’ve suddenly become concerned about breaking things people rely on to make Gnome marginally usable after Gnome itself has removed popular features, then that’s a recent trend. So pull the other one.

              • lastweakness@lemmy.world
                link
                fedilink
                arrow-up
                1
                ·
                edit-2
                8 hours ago

                Of course there are extension devs who left GNOME due to the lack of a stable API. But they were all looking for something that was inherently not possible with how extensions work in GNOME. I can’t blame them, “extensions” is a misnomer in this case after all. It’s actually more like userscripts being applied on a web page in a browser.

                If possible, take the time to read the link in my earlier comment, it should clear up a lot of misunderstandings about “GNOME devs intentionally breaking extensions” as most people seem to think of it as.

                Given how extensions work (monkey-patching), it’s actually really impressive that most extensions haven’t really broken since GNOME 45 and the steps taken by GNOME to that end are impressive. Even the human review being discussed here is part of that, it’s exactly because an extension can literally bring down a user’s shell (also similar to how a web page can crash due to a userscript), so they’re trying to reduce the chances of that happening.

                GNOME has always had a bit of a communication problem. They’re working on it. But I promise you, they’re all wonderful folks trying their best, even if they fail to convey that well sometimes.

        • uncouple9831@lemmy.zip
          link
          fedilink
          arrow-up
          2
          arrow-down
          19
          ·
          edit-2
          1 day ago

          Why would that be anyone other than the original author? This sounds like a hosting service is refusing to host things based on what tool was used in creation. “Anyone using emacs can’t upload code to GitHub anymore” seems equivalently valid.

          • vrighter@discuss.tchncs.de
            link
            fedilink
            arrow-up
            10
            ·
            2 days ago

            in the case of ai generated code, that is almost always the case. People say “but I review all my pet neural network’s code!” but they don’t. If they did, the job would actuallydtake longer. Reading and understanding code takes longer than writing it.

            • uncouple9831@lemmy.zip
              link
              fedilink
              arrow-up
              1
              arrow-down
              5
              ·
              1 day ago

              I don’t think this is in response to my message. If that was the intent, I think you need to define what “that” is, which is always the case.

              • vrighter@discuss.tchncs.de
                link
                fedilink
                arrow-up
                1
                ·
                18 hours ago

                “why would that be anyone but the original author?”

                That is what i was replying to, and I replied to the intended comment

                  • vrighter@discuss.tchncs.de
                    link
                    fedilink
                    arrow-up
                    1
                    ·
                    12 hours ago

                    no, the opposite. The problem with ai pull requests is that in most cases whoever submits them does not understand the code and expects someone else to review it for them (that’s if they are even aware of the concept of code reviews in the first place).

          • imecth@fedia.io
            link
            fedilink
            arrow-up
            14
            ·
            2 days ago

            GNOME manually reviews every extension, and they understandably don’t want to review AI generated code.

            • uncouple9831@lemmy.zip
              link
              fedilink
              arrow-up
              1
              arrow-down
              8
              ·
              edit-2
              1 day ago

              Oh…an actually human response. How refreshing. At least one person here got their rabies shot.

              Do they actually review it or is it like how android and apple “review” apps? And why would they be reviewing the code rather than putting it through some test suite/virus scanning suite or something? That is, this shit isn’t going away any time soon even if the bubble pops, so why not find a way to avoid the work rather than ban people who make the work “too hard”?

                • uncouple9831@lemmy.zip
                  link
                  fedilink
                  arrow-up
                  1
                  arrow-down
                  5
                  ·
                  1 day ago

                  I’m calm, but since you need to hear it: nobody has ever in the history of the human race received the command to “calm down” and had it make them calmer. So chill out broski.

                  • soc@programming.dev
                    link
                    fedilink
                    English
                    arrow-up
                    7
                    ·
                    1 day ago

                    Then do whatever you need to do to stop freaking out about other peoples’ right to choose to not deal with LLMs.

                • uncouple9831@lemmy.zip
                  link
                  fedilink
                  arrow-up
                  1
                  arrow-down
                  9
                  ·
                  edit-2
                  1 day ago

                  Oof this just makes it so much worse. It sounds like they have two complaints:

                  There are more extensions being made now. Good. If you can’t keep up, charge money to review them or something. Even charging 10 cents will drop submissions instantly.

                  The extensions have unnecessary try/catch blocks. And it’s not just any try catch blocks that aren’t necessary…it’s only the ai-generated unnecessary try catch blocks. Human-generated unnecessary try/catch blocks are fine. This is dumb and a dumb example because it’s a structure whose behavior is well understood and well defined. I add unnecessary try/catch blocks to my code all the time if I don’t feel like digging in at the moment to figure out all of the failure modes of some function. It’s only when a LLM does it that it upsets the poster. Ridiculous.

          • fodor@lemmy.zip
            link
            fedilink
            arrow-up
            8
            ·
            2 days ago

            Yes it would be someone else. If the code looks good then it might last a long time, and it could even be expanded upon. One key point of FOSS is that anyone can change it, and if it’s good, people will.

            • uncouple9831@lemmy.zip
              link
              fedilink
              arrow-up
              1
              arrow-down
              5
              ·
              edit-2
              1 day ago

              Great, so then it’s someone reading new code either way, so it shouldn’t matter if it’s in the LLM style or random human A’s style, it’s still something you have to read and learn.

              But also I wonder if there’s an analysis of how many of these extensions has ever been touched by more than a single human, ever. I don’t know, but I sure wouldn’t be surprised if the answer is 80%.

            • uncouple9831@lemmy.zip
              link
              fedilink
              arrow-up
              1
              arrow-down
              7
              ·
              1 day ago

              And is that something that happens regularly with gnome extensions? My recollection is they are a barely functioning collection of random trash code. Were they all written by contractors who got fired?

      • urandom@lemmy.world
        link
        fedilink
        English
        arrow-up
        6
        arrow-down
        1
        ·
        2 days ago

        It’s always some definition of works. The code never works in all cases, which works lead to people being annoyed with gnome for allowing the extension in the first place