• slazer2au@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    ·
    2 hours ago

    Bun’s founder experimented with a massive agentic rewrite from Zig to unsafe Rust.
    That experiment was merged days later and is now the official version.

    Wait, they ai yolo from a memory safe language to an unsafe version of a different memory save language?

    • FizzyOrange@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      19 minutes ago

      Sure, but only 5% of the Rust code is unsafe, which is clearly an improvement. And their plan is to reduce that amount over time.

      I’m no fan of AI slop but that point isn’t an issue.

        • Eager Eagle@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          19 minutes ago

          yes, but when you make a port from one language to another, usually you want to rewrite it as a translation first, then refactor later with the features that language provides. A port that refactors everything in the first release is too risky.

          The fact the translation has unsafe blocks only demonstrates the Zig version is not really safe as per Rust standards.