• CanadaPlus@lemmy.sdf.org
    link
    fedilink
    arrow-up
    125
    arrow-down
    2
    ·
    edit-2
    9 months ago

    Agreed. If you need to calculate rectangles ML is not the right tool. Now do the comparison for an image identifying program.

    If anyone’s looking for the magic dividing line, ML is a very inefficient way to do anything; but, it doesn’t require us to actually solve the problem, just have a bunch of examples. For very hard but commonplace problems this is still revolutionary.

    • Buttons@programming.dev
      link
      fedilink
      English
      arrow-up
      32
      arrow-down
      2
      ·
      9 months ago

      I think the joke is that the Jr. Developer sits there looking at the screen, a picture of a cat appears, and the Jr. Developer types “cat” on the keyboard then presses enter. Boom, AI in action!

      The truth behind the joke is that many companies selling “AI” have lots of humans doing tasks like this behind the scene. “AI” is more likely to get VC money though, so it’s “AI”, I promise.

    • Mango@lemmy.world
      link
      fedilink
      arrow-up
      17
      ·
      9 months ago

      The correct tool for calculating the area of a rectangle is an elementary school kid who really wants that A.

    • Toribor@corndog.social
      link
      fedilink
      English
      arrow-up
      13
      ·
      9 months ago

      Exactly. Explaining to a computer what a photo of a dog looks like is super hard. Every rule you can come up with has exceptions or edge cases. But if you show it millions of dog pictures and millions of not-dog pictures it can do a pretty decent job of figuring it out when given a new image it hasn’t seen before.

    • flashgnash@lemm.ee
      link
      fedilink
      arrow-up
      7
      arrow-down
      1
      ·
      9 months ago

      I think it’s still faster than actual solutions in some cases, I’ve seen someone train an ML model to animate a cloak in a way that looks realistic based on an existing physics simulation of it and it cut the processing time down to a fraction

      I suppose that’s more because it’s not doing a full physics simulation it’s just parroting the cloak-specific physics it observed but still

      • CanadaPlus@lemmy.sdf.org
        link
        fedilink
        arrow-up
        3
        arrow-down
        1
        ·
        edit-2
        9 months ago

        I suppose that’s more because it’s not doing a full physics simulation it’s just parroting the cloak-specific physics it observed but still

        This. I’m sure to a sufficiently intelligent observer it would still look wrong. You could probably achieve the same thing with a conventional algorithm, it’s just that we haven’t come up with a way to profitably exploit our limited perception quite as well as the ML does.

        In the same vein, one of the big things I’m waiting on is somebody making a NN pixel shader. Even a modest network can achieve a photorealistic look very easily.

    • underisk@lemmy.ml
      link
      fedilink
      arrow-up
      89
      arrow-down
      9
      ·
      9 months ago

      the comic is about using a machine learning algorithm instead of a hand-coded algorithm. not about using chatGPT to write a trivial program that no doubt exists a thousand times in the data it was trained on.

      • Honytawk@lemmy.zip
        link
        fedilink
        arrow-up
        44
        arrow-down
        17
        ·
        9 months ago

        The strengths of Machine Learning are in the extremely complex programs.

        Programs no junior dev would be able to accomplish.

        So if the post can misrepresent the issue, then the commenter can do so too.

        • pearsaltchocolatebar@discuss.online
          link
          fedilink
          arrow-up
          31
          arrow-down
          3
          ·
          9 months ago

          Lol, no. ML is not capable of writing extremely complex code.

          It’s basically like having a bunch of junior devs cranking out code that they don’t really understand.

          ML for coding is only really good at providing basic bitch code that is more time intensive than complex. And even that you have to check for hallucinations.

          • kurwa@lemmy.world
            link
            fedilink
            arrow-up
            16
            ·
            9 months ago

            To reiterate what the parent comment of the one you replied to said, this isn’t about chat GPT generating code, it’s about using ML to create a indeterministic algorithm, that’s why in the comic it’s only very close to 12 and not 12 exactly.

          • BluesF@lemmy.world
            link
            fedilink
            arrow-up
            1
            arrow-down
            1
            ·
            9 months ago

            ML is not good for coding, it is good for approximately solving very complex problems.

        • underisk@lemmy.ml
          link
          fedilink
          arrow-up
          19
          ·
          9 months ago

          Yes that is what they are good at. But not as good as a deterministic algorithm that can do the same thing. You use machine learning when the problem is too complex to solve deterministically, and an approximate result is acceptable.

        • Pelicanen@sopuli.xyz
          link
          fedilink
          arrow-up
          17
          arrow-down
          1
          ·
          9 months ago

          I think the exact opposite, ML is good for automating away the trivial, repetitive tasks that take time away from development but they have a harder time with making a coherent, maintainable architecture of interconnected modules.

          It is also good for data analysis, for example when the dynamics of a system are complex but you have a lot of data. In that context, the algorithm doesn’t have to infer a model that matches reality completely, just one that is close enough for the region of interest.

        • xmunk@sh.itjust.works
          link
          fedilink
          arrow-up
          14
          ·
          9 months ago

          I strongly disagree. ML is perfect for small bullshit like “What’s the area of a rectangle” - it falls on its face when asked:

          Can we build a website for our security paranoid client that wants the server to completely refuse to communicate with users that aren’t authenticated as being employees… Oh, and our CEO requested a password recovery option on the login prompt.

          • ulterno@lemmy.kde.social
            link
            fedilink
            English
            arrow-up
            9
            ·
            edit-2
            9 months ago

            I got interested and asked ChatGPT. It gave a middle-management answer.
            Guess we know who’ll be the first to go.

        • funkless_eck@sh.itjust.works
          link
          fedilink
          arrow-up
          5
          arrow-down
          2
          ·
          9 months ago

          The biggest high level challenge in any tech org is security and there’s no way you can convince me that ML can successfully counter these challenges

          “oh but it will but it will!”

          when

          “in the future”

          how long in the future

          “When it can do it”

          how will we know it can do it

          “When it can do it”

          cool.

  • orca@orcas.enjoying.yachts
    link
    fedilink
    arrow-up
    44
    arrow-down
    2
    ·
    9 months ago

    Ahh the future of dev. Having to compete with AI and LLMs, while also being forced to hastily build apps that use those things, until those things can build the app themselves.

    • Klear@lemmy.world
      link
      fedilink
      arrow-up
      19
      ·
      edit-2
      9 months ago

      Let’s invent a thing inventor, said the thing inventor inventor after being invented by a thing inventor.

    • EdibleFriend@lemmy.world
      link
      fedilink
      arrow-up
      11
      arrow-down
      2
      ·
      9 months ago

      And also, as a developer, you have to deal with the way Star Trek just isn’t as good as it used to be.

      Because you’re all fucking nerds.

      (Me too tho)

    • JDubbleu@programming.dev
      link
      fedilink
      arrow-up
      5
      ·
      9 months ago

      I mean if you have access but are not using Copilot at work you’re just slowing yourself down. It works extremely well for boilerplate/repetitive declarations.

      I’ve been working with third party APIs recently and have written some wrappers around them. Generally by the 3rd method it’s correctly autosuggesting the entire method given only a name, and I can point out mistakes in English or quickly fix them myself. It also makes working in languages I’m not familiar with way easier.

      AI for assistance in programming is one of the most productive uses for it.

      • orca@orcas.enjoying.yachts
        link
        fedilink
        arrow-up
        4
        ·
        9 months ago

        Oh I use Copilot daily. It fills the gaps for the repetitive stuff like you said. I was writing Stories in a Storybook.js project once and was able to make it auto-suggest the remainder of my entire component states after writing 2-3. They worked out of the gate too with maybe a single variable change. Initially, I wasn’t even going to do all of them in that coding session just to save time and get it handed off, but it was giving me such complete suggestions that I was able to build every single one out with interaction tests and everything.

        Outside of use cases like that and getting very general content, I think AI is a mess. I’ve worked with ChatGPT’s v3.5-4 API a ton and it’s unpredictable and hard to instruct sometimes. Prompts and approaches that worked 2 weeks ago, will now suddenly give you some weird edge case that you just can’t get it to stop repeating—even when using approaches that worked flawlessly for others. It’s like trying to patch a boat while you’re in it.

        The C suite people and suits jumped on AI way too early and have haphazardly forced it into every corner. It’s become a solution searching for a problem. The other day, a friend of mine said he had a client that casually asked how they were going to use AI on the website they were building for them, like it was just a commonplace thing. The buzzword has gotten ahead of itself and now we’re trying to reel it back down to earth.

        • JDubbleu@programming.dev
          link
          fedilink
          arrow-up
          2
          arrow-down
          1
          ·
          edit-2
          9 months ago

          That was a pretty interesting read. However, I think it’s attributing correlation and causation a little too strongly. The overall vibe of the article was that developers who use Copilot are writing worse code across the board. I don’t necessarily think this is the case for a few reasons.

          The first is that Copilot is just a tool and just like any tool it can easily be misused. It definitely makes programming accessible to people who it would not have been accessible to before. We have to keep in mind that it is allowing a lot of people who are very new to programming to make massive programs that they otherwise would not have been able to make. It’s also going to be relied on more heavily by those who are newer because it’s a more useful tool to them, but it will also allow them to learn more quickly.

          The second is that they use a graph with an unlabeled y-axis to show an increase in reverts, and then never mention any indication of whether it is raw lines of code or percentage of lines of code. This is a problem because copilot allows people to write a fuck ton more code. Like it legitimately makes me write at least 40% more. Any increase in revisions are simply a function of writing more code. I actually feel like it leads to me reverting a lesser percentage of lines of code because it forces me to reread the code that the AI outputs multiple times to ensure its validity.

          This ultimately comes down to the developer who’s using the AI. It shouldn’t be writing massive complex functions. It’s just an advanced, context-aware autocomplete that happens to save a ton of typing. Sure, you can let it run off and write massive parts of your code base, but that’s akin to hitting the next word suggestion on your phone keyboard a few dozen times and expecting something coherent.

          I don’t see it much differently than when high level languages first became a thing. The introduction of Python allowed a lot of people who would never have written code in their life to immediately jump in and be productive. They both provide accessibility to more people than the tools before them, and I don’t think that’s a bad thing even if there are some negative side effects. Besides, in anything that really matters there should be thorough code reviews and strict standards. If janky AI generated code is getting into production that is a process issue, not a tooling issue.

  • 𝕽𝖚𝖆𝖎𝖉𝖍𝖗𝖎𝖌𝖍@midwest.social
    link
    fedilink
    arrow-up
    50
    arrow-down
    12
    ·
    9 months ago

    The sad thing is that no amount of mocking the current state of ML today will prevent it from taking all of our jobs tomorrow. Yes, there will be a phase where programmers, like myself, who refuse to use LLM as a tool to produce work faster will be pushed out by those that will work with LLMs. However, I console myself with the belief that this phase will last not even a full generation, and even those collaborative devs will find themselves made redundant, and we’ll reach the same end without me having to eliminate the one enjoyable part of my job. I do not want to be reduced to being only a debugger for something else’s code.

    Thing is, at the point AI becomes self-improving, the last bastion of human-led development will fall.

    I guess mocking and laughing now is about all we can do.

    • KevonLooney@lemm.ee
      link
      fedilink
      arrow-up
      25
      ·
      9 months ago

      at the point AI becomes self-improving

      This is not a foregone conclusion. Machines have mostly always been stronger and faster than humans, because humans are generally pretty weak and slow. Our strength is adaptability.

      As anyone with a computer knows, if one tiny thing goes wrong it messes up everything. They are not adaptable to change. Most jobs require people to be adaptable to tiny changes in their routine every day. That’s why you still can’t replace accountants with spreadsheets, even though they’ve existed in some form for 50 years.

      It’s just a tool. If you don’t want to use it, that’s kinda weird. You aren’t just “debugging” things. You use it as a junior developer who can do basic things.

      • 𝕽𝖚𝖆𝖎𝖉𝖍𝖗𝖎𝖌𝖍@midwest.social
        link
        fedilink
        arrow-up
        3
        arrow-down
        2
        ·
        9 months ago

        This is not a foregone conclusion.

        Sure, I agree. There’s many a slip twixt the cup and the lip. However, I’ve seen no evidence that it won’t happen, or that humans hold any inherent advantage over AI (as nascent as it may be, in the rude forms of LLMs and deep learning they’re currently in).

        If you want something to reflect upon, your statement about how humans have an advantage of adaptability sounds exactly like the previous generation of grasping at inherant human superiority that would be our salvation: creativity. It wasn’t too long ago that people claimed that machines would never be able to compose a sonnet, or paint a “Starry Night,” and yet, creativity has been one of the first walls to fall. And anyone claiming that ML only copies and doesn’t produce anything original has obviously never studied the history of fine art.

        Since noone would now claim that machines will never surpass humans in art, the goals have shifted to adaptability? This is an even easier hurdle. Computer hardware is evolving at speeds enormously faster than human hardware. With the exception of the few brief years at the start of our lives, computer software is more easily modified, updated, and improved than our poor connective neural networks. It isn’t even a competition: conputers are vastly more well equipped to adapt faster than we are. As soon as adaptability becomes a priority of focus, they’ll easily exceed us.

        I do agree, there are a lot of ways this futur could not come to pass. Personally, I think it’s most likely we’ll extinct ourselves - or, at least, the society able to continue creating computers. However, we may hit hardware limits. Quantum computing could stall out. Or, we may find that the way we create AI cripples it the same way we are, with built-in biases, inefficiencies in thinking, or simply too high of resource demands for complexity much beyond what two humans can create with far less effort and very little motivation.

        • KevonLooney@lemm.ee
          link
          fedilink
          arrow-up
          5
          ·
          9 months ago

          creativity has been one of the first walls to fall

          Uh, no? Unless you think unhinged nonsense without thought is “creative”. Right now, these programs are like asking a particularly talented insane person to draw something for you.

          Creativity is not just creation. It’s creation with purpose. You can “create art” by breaking a vase. That doesn’t mean it’s good art.

          • 𝕽𝖚𝖆𝖎𝖉𝖍𝖗𝖎𝖌𝖍@midwest.social
            link
            fedilink
            arrow-up
            1
            arrow-down
            1
            ·
            9 months ago

            And, yet, I’ve been to an exhibit at the Philadelphia Museum of Fine Art that consist of an installation that included a toilet, among other similarly inspired works of great art.

            On a less absurd note, I don’t have much admiration for Pollock, either, but people pay absurd amounts of oof for his stuff, too.

            An art history class I once took posed the question: if you find a clearing in a wood with a really interesting pile of rocks that look suspiciously man-made, but you don’t know if a person put it together or if it was just a random act of nature… is it art? Say you’re convinced a person created it and so you call it art, but then discover it was an accident of nature, does it stop being art?

            I fail to see any great difference. AI created art is artificial, created with the intention of producing art; is it only not art because it wasn’t drawn by a human?

            • KevonLooney@lemm.ee
              link
              fedilink
              arrow-up
              2
              ·
              9 months ago

              If you’re talking about

              https://en.wikipedia.org/wiki/Fountain_(Duchamp)

              that’s a seminal work of avant guard art. You are still talking about it 100 years later. It’s obviously great art.

              Art is a work of visual, auditory, or written media that makes you feel emotion. That’s it. Does this pile of rocks make you feel happy or sad or anything? Then it’s art.

              AI makes pictures like a camera does. It doesn’t make it art unless you make something that evokes emotion.

              • We’re saying the same thing. AI can create art. My point was that we used to claim that art was a domain that was unassailable by machines, and this obviously is not true. So now, humans - or the particular human to whom I was replying - had a new goalpost: adaptabiility.

                We’ll keep coming up with new goalposts where “humans have an edge” that will keep us relevant and ascendant over machines, and irreplaceable. I believe we’ll run out of goalposts faster than many people would like.

                You know, there is one small other hope I have: that, despite how we’ve raised them, our children will be better than us, and will stop the cycle of wealth concentration. It’s unlikely, but it’s the only chance I see.

        • someacnt_@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          9 months ago

          I do have one notion where we can have edge over. Human brain is quite optimized in energy usage, as a consequence of natural selection. Meanwhile, IIRC computers are optimized for speed, and so it often wastes energy. Now let’s see where this goes - will they be able to operate without gushing in energy?

    • Doc Avid Mornington@midwest.social
      link
      fedilink
      English
      arrow-up
      15
      arrow-down
      1
      ·
      9 months ago

      Well, we could end capitalism, and demand that AI be applied to the betterment of humanity, rather than to increasing profits, enter a post-scarcity future, and then do whatever we want with our lives, rather than selling our time by the hour.

  • Medli@lemmy.world
    link
    fedilink
    arrow-up
    16
    arrow-down
    1
    ·
    9 months ago

    To be fair the human had how many years of training more than the AI to be fit to even attempt to solve this problem.

  • audiomodder@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    9
    arrow-down
    1
    ·
    9 months ago

    Yea, but does the AI ask me why “x” doesn’t work as a multiplication operator 14 times while complaining about how this would be easier in Rust?

    • TonyTonyChopper@mander.xyz
      link
      fedilink
      arrow-up
      5
      ·
      edit-2
      9 months ago

      the future unifying metric for productivity should be joules per line of code. If you cost more than a machine you get laid off

  • lugal@sopuli.xyz
    link
    fedilink
    arrow-up
    5
    arrow-down
    4
    ·
    9 months ago

    This is all funny and stuff but chatGPT knows how long the German Italian border is and I’m sure, most of you don’t

    • xmunk@sh.itjust.works
      link
      fedilink
      arrow-up
      11
      arrow-down
      1
      ·
      9 months ago

      Nobody knows how long any border is if it adheres to any natural boundaries. The only borders we know precisely are post-colonial perfectly straight ones.

          • lugal@sopuli.xyz
            link
            fedilink
            English
            arrow-up
            4
            ·
            9 months ago

            I’ve tried, but chatGPT won’t give me an answer. So far, my personal record is Serbia - Iraq. If you find 2 countries that are further apart, yet chatGPT will give you a length of the border, feel free to share a screenshot!

    • SquirtleHermit@lemmy.world
      link
      fedilink
      arrow-up
      9
      ·
      9 months ago

      So I apparently have too much free time and wanted to check. So I asked ChatGPT how long the border was exactly, and it could only get an approximate guess, and it had to search using Bing to confirm.

      • Kuma@lemmy.world
        link
        fedilink
        arrow-up
        8
        ·
        9 months ago

        Here I am wondering why no one made the joke that the answer was not found (404) but chat gpt assumed it was the answer 😂

      • Blackmist@feddit.uk
        link
        fedilink
        English
        arrow-up
        3
        ·
        9 months ago

        Google’s AI gives it as:

        The length of the German-Italian border depends on how you define the border. Here are two ways to consider it:

        Total land border: This includes the main border between the two countries, as well as the borders of enclaves and exclaves. This length is approximately 811 kilometers (504 miles).

        Land border excluding exclaves and enclaves: This only considers the main border between the two countries, neglecting the complicated enclaves and exclaves within each country’s territory. This length is approximately 756 kilometers (470 miles).

        It’s important to note that the presence of exclaves and enclaves creates some interesting situations where the border crosses back and forth within the same territory. Therefore, the definition of “border” can influence the total length reported.

      • lugal@sopuli.xyz
        link
        fedilink
        arrow-up
        3
        ·
        9 months ago

        That’s a number I never got. I got either 700 something km or 1000 something. It’s only sometimes that chatGPT realizes that there are Austria and Switzerland in between and there is no direct border

    • orca@orcas.enjoying.yachts
      link
      fedilink
      arrow-up
      2
      ·
      9 months ago

      Make sure you ask the AI not to hallucinate because it will sometimes straight up lie. It’s also incapable of counting.