211

*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.

you are viewing a single comment's thread
view the rest of the comments
[-] HaraldvonBlauzahn@feddit.org 33 points 3 days ago* (last edited 3 days ago)

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..

[-] HelloRoot@lemy.lol 5 points 3 days ago

that would mean 1111 lines per person-year

not sure if I understand correctly, but this sounds off

[-] HaraldvonBlauzahn@feddit.org 1 points 3 days ago* (last edited 2 days ago)

More like 500 lines per person-year.

You can do the math yourself:

  • how many lines of code does the linux kernel have?

  • what is the estimated value of the kernel, which is the hypothetical cost to re-create it?

  • what do you think the seniority of a linux kernel developer is?

  • what annual salary do they make in the country which uses Linux most - the US?

  • now divide kernel value by annual salary to get man-years, and lines of code by man-years to get average lines of code per year

Result: Typing in code that somehow compiles was never the bottleneck

[-] eager_eagle@lemmy.world 3 points 3 days ago

you can't compare the tech debt because it's essentially a line by line translation from an existing codebase, not 1M brand new lines of code

[-] ReptilianCleric@lemmy.zip 1 points 2 days ago

That's...irrelevant.

Really. The specific details of the task doesn't change that this was automated. Until it's reviewed, it's basically a pile of Schrödinger's bugs and security holes. That's the technical debt.

[-] eager_eagle@lemmy.world 3 points 2 days ago* (last edited 2 days ago)

It really isn't. A line by line translation doesn't introduce new logic and doesn't change the system architecture. Saying it carries the same tech debt as brand new code is just not true.

[-] anomnom@sh.itjust.works 2 points 2 days ago

Assuming the llm did it line by line without changing anything during an arbitrary hallucination.

[-] eager_eagle@lemmy.world 1 points 2 days ago

and that's a different problem entirely

this post was submitted on 15 Jul 2026
211 points (97.7% liked)

Programming

27744 readers
610 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 3 years ago
MODERATORS