this post was submitted on 15 Jul 2026
141 points (98.0% liked)

Programming

27704 readers
460 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
 

*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 24 points 15 hours ago* (last edited 14 hours ago) (2 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..

[–] eager_eagle@lemmy.world 3 points 4 hours 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

[–] HelloRoot@lemy.lol 5 points 11 hours ago (1 children)

that would mean 1111 lines per person-year

not sure if I understand correctly, but this sounds off

[–] HaraldvonBlauzahn@feddit.org 1 points 9 hours ago* (last edited 4 hours ago)

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