*The Rustification of Bun#

Rewriting 500,000 lines of Zig into another language would be a gargantuan undertaking if done by hand. “A rewrite in another language would take a small team of engineers a full year. It would mean freezing bugfixes, security fixes or feature development for that time,” Sumner wrote.

Instead, Sumner went with Claude. He spun up about 50 dynamic Claude Code workflows, reaching a peak of about 1,300 lines of code per minute and generating over a million lines of Rust code. The job took 11 days and cost about $165,000 at API pricing. Claude Fable did most of the heavy lifting.

top 50 comments

sorted by: hot top controversial new old
[–] 97 points 3 months ago

They also moved to Codeberg: https://codeberg.org/ziglang ❤️

  • source
  • [–] 82 points 3 months ago* (last edited 3 months ago) (3 children)

    I, for one, am glad they are volunteering as guinea pigs in an experiment to see how long a popular project can survive LLM slop.

    And if they harm javascript's popularity in the process and projects start to look elsewhere... that's an added benefit ;-)

  • source
  • hideshow 3 child comments
  • [–] 78 points 3 months ago (7 children)

    There's no way a million lines of code were reviewed in 11 days. Not by a human at least.

  • source
  • hideshow 7 child comments
  • [–] 8 points 3 months ago (1 child)

    No need, you just ask the AI to "make no mistakes", then you spawn a second AI to review the first AI's output, and then you ask a turdthird AI to review the output of the second AI. Easy peazy. No need for pesky engineers and their stupid human inefficiency. /s

    Non-ironically though, I think that's exactly what they did. I have watched Prime's video about this, and, although I was second-screening his video, I believe he mentioned that they used this "technique".

  • source
  • parent
  • hideshow 1 child comment
  • load more comments (1 reply)
  • [–] 54 points 3 months ago

    What a waste of resources for an unreviewed and unmaintainable pile of junk.

  • source
  • [–] [S] 33 points 3 months ago* (last edited 3 months ago) (7 children)

    How much is one million lines of code?

    If a senior engineer works in a well-defined, well-architected greenfield project, and does extensive tests, 10,000 lines of code written in one year are very productive. The amount of new code per person-year will be much less in larger projects - a good indicator is the line count and the estimated value of the Linux kernel (40 million lines in 2025, redeveloping it in 2011 would have already cost 2200 million Euros, which would pay e.g. 36000 person-years for mid-level German software developers, that would mean 1111 lines per person-year{actually about half of that because of the interim growth of line count in the meantime }- and most software projects can only dream about so much actual value.)

    So, you can say 1,000,000 lines of code generated in 11 days are probably 100 person-years of technical debt.

    One caveat: It is relatively simple to auto-translate code in restricted languages like Java, Python, or Rust to unrestricted languages like C or C++. In that case, enforced invariants (like "no use of freed memory" or "sharing data across threads xor mutation") become implicit, but verbatim translation is often possible.

    The other direction will require a re-design..

  • source
  • hideshow 7 child comments
  • [–] 26 points 3 months ago (1 child)

    Kelley is artisan, Sumner is a factory manager. Indeed they cannot be using same tools or work on the same floor or within the same building. Blind trust in AI (even with guardrails) is a recipe for disaster. They have jumped to Rust to add more guardrails to their AI lunacy but it won't hold for long. At this point there's no single human who actually knows or understands the code and AI code is proven to have durability issues at scale. So direct rewrite gives a quick boost as code is ported from somewhat reviewed base onto new platform, but as new code gets added this will dissipate. It sounds like Bun issue is systemic Zig Rust or Pixie dust won't fix it.

  • source
  • hideshow 1 child comment
  • [–] 9 points 3 months ago

    My modest career in software development has shown me that the real value of a developer isn't how much code they can write, it's how well they understand the existing code base. LLMs can't understand because that requires memory larger than an LLM's context window, by orders of magnitude.

  • source
  • parent
  • [–] 19 points 3 months ago (1 child)

    I'll never update Bun again. And maybe I'll just revert back to Npm.

    What a shit show.

  • source
  • hideshow 1 child comment
  • [–] 14 points 3 months ago (2 children)

    Since we introduced claude enterprise, number of unexpected bugs skyrocketed tremendously

  • source
  • hideshow 2 child comments
  • [+] 11 points 3 months ago
    load more comments
    view more: next ›