Fucking traitorous scum

  • some_guy@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    66
    arrow-down
    4
    ·
    5 days ago

    Torvalds’s first publicly released chatbot code was in January this year, when he vibe-coded a project in Python because he didn’t know enough Python. The programming language kids learn in high school. The guy who runs the kernel couldn’t get his head around Python.

    I’m pissed at the AI companies for all kinds of things like hiking computer parts prices and the impending destruction of the economy when the lies hype dies. But this is a weak ass argument.

    The guy who created the Linux kernel and git can absolutely get his head around Python. He’s just allocating his time and energy toward kernel development rather than learning Python and rightly so. Besides, maybe he just hates the language. I know I do, but I started with Perl, so that shaped the way I like to work.

    • late_pessimistic@slrpnk.net
      link
      fedilink
      English
      arrow-up
      17
      arrow-down
      6
      ·
      5 days ago

      because he didn’t know enough Python. The programming language kids learn in high school. The guy who runs the kernel couldn’t get his head around Python.

      This is such an ignorant thing to say. Python syntax is indeed simple and is taught in high schools, but neither means learning to program in Python is easy or doesn’t take a lot of time.

        • nik9000@programming.dev
          link
          fedilink
          arrow-up
          2
          ·
          4 days ago

          I genuinely love the idea of the $1 after a match. It feels so natural in perl! So many things are text matching.

          But! But! But!! Those $ variables are dynamic scoped! If you call a method and it matches stuff you lose the variables!

          I’ll bet there is a way around it. But it made me so sad.

          • raspberriesareyummy@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            3 days ago

            Yes, regex handling in Perl is the smoothest I have ever seen, and it matched the first description I heard of perl as “the best tool for text processing”. I have done big things with that.

            Those $ variables are dynamic scoped! If you call a method and it matches stuff you lose the variables!

            My match scopes typically looked like so:

            if ($inString =~ /^([ \t]+)(.*)$/) {
                my $indent = $1;    # store first match
                my $remainder = $2; # store second match
                
                # do stuff
            }
            

            (not tested, just edited by hand to anonymise)

            • nik9000@programming.dev
              link
              fedilink
              arrow-up
              1
              ·
              3 days ago

              I think it came up more like

              if ($inString =~ /^([ \t]+)(.*)$/ && has_a_cow($2)) {
              

              For me. I dunno. I was never good at perl. I just wanted to hack something together.

              • raspberriesareyummy@lemmy.world
                link
                fedilink
                arrow-up
                1
                ·
                3 days ago

                I did bigger parsing tools in perl, so I often matched a lot of expressions and needed them all in variables. Not only to save the $N variables, but also for code readability, I would then store the matches in proper variable names

    • destructdisc@lemmy.worldOP
      link
      fedilink
      arrow-up
      11
      arrow-down
      8
      ·
      5 days ago

      Sure. But that’s like an English literature scholar deciding they want to write a pamphlet, but in French, despite knowing very little French – so instead of learning French, or just writing the pamphlet in English, or asking someone who knows French to translate…they use AI to write the thing. That’s really stupid.

      • CarrotsHaveEars@lemmy.ml
        link
        fedilink
        arrow-up
        16
        arrow-down
        2
        ·
        5 days ago

        Absolutely. If you don’t have time to do anything else, just fucking stay away from it. Don’t fucking pretend to contribute to an area, while in reality you’re just polluting it and destroying the natural environment at the same time.