• faercol@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 day ago

      Hmmmm, the first blog posts about rewriting the backend part from Go to Rust are a few years old by now (early 2020) so it’s clearly not a “let’s vibecode everything in two weeks” kind of project.

      However… The later stages are probably vibecoded… Yeah, that would check out today.

    • nightlily@leminal.space
      link
      fedilink
      English
      arrow-up
      34
      arrow-down
      2
      ·
      3 days ago

      I get why vibe coders love Rust - it’s a lot harder to shoot yourself in the foot if rustc is checking your lifetimes, but holy shit is the code I’ve seen from them the most unholy mess. Rust is difficult enough to read at the best of times but LLMs don’t even bother with any kind of module structure. Just thousands of lines of vomit in single files and a worrying amount of unsafe.

      • gravitas_deficiency@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        4
        arrow-down
        1
        ·
        edit-2
        1 day ago

        Preamble: I am a huge LLM/codegen skeptic, for a litany of reasons.

        With that said, this honestly sounds like whoever did the prompting didn’t include something like this in the prompt, along with nuanced adversarial review loops:

        unsafe blocks are strongly discouraged, and must be specifically justified, and survive antagonistic review by a rust language specialist agent and software security specialist agent. Part of the intent of this reimplementation is to leverage the strengths of the rust language itself, and rampant unsafe usage directly contradicts that.

          • gravitas_deficiency@sh.itjust.works
            link
            fedilink
            English
            arrow-up
            1
            arrow-down
            1
            ·
            1 day ago

            No, I’m saying that there are ways to introduce feedback mechanisms and antagonistic review and specialist agents to improve the end result of what codegen crap gives you. It’s by no means perfect, but it’s a damn sight better than “make no mistakes”, and if the quality of the rust code is really that much of a shitshow, it’s probably not even being reviewed by a human before getting yeeted into prod, let alone the other things I outlined.

        • megopie@lemmy.blahaj.zone
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 day ago

          Sure, but adding adversarial loops, or, some complex addition to every prompt would increase the token usage massively, thus the cost.

          So, why bother with that?

          I could very well be wrong, but all indications I’ve seen have been that that the cost of the tokens needed to get something even vaguely acceptable is greater than the cost of just hiring someone, or a group, to do the job. Unless something needs to be done fast due to an immediate concern, and the cost is no object.

              • bumblebeer@lemmy.world
                link
                fedilink
                English
                arrow-up
                1
                ·
                1 day ago

                Well yes, I’m not saying it’s a free lunch. The point is a large up-front investment buys you unlimited tokens in perpetuity for no more than the cost of electricity to power the cluster — which can be surprisingly cheap for UMA machines.

                I’ve swapped off API models entirely and have been able to do a lot more useful work since I don’t have to worry about token cost or usage limits. Granted it’s slower per task (less tk/s), but overall much more productive, and private.

      • Fiery@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        3
        ·
        2 days ago

        Just tell the clanker to use modern practices poof fixed.

        Jokes aside a lot of that bad code can be detected by static linting tools and gated on, making it impossible for any of those to reach main.

      • Kacarott@aussie.zone
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 days ago

        At my work when I was instructed to vibe code a new app, I specifically chose rust because I was hoping for the AI bubble to burst soon, so then I’d be able to be a proper rust developer

      • boonhet@lemmy.zip
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 days ago

        Honestly sounds like LLMs have learned that from half the rust projects I’d seen before the LLM craze lol

    • TBi@lemmy.world
      link
      fedilink
      English
      arrow-up
      11
      ·
      3 days ago

      And this will probably give rust a bad name if most of the code is horrid vibe coded stuff. (Cuck coded?)