this post was submitted on 15 Jul 2026
130 points (97.8% liked)

Programming

27704 readers
393 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.

top 40 comments
sorted by: hot top controversial new old
[–] liuther9@lemmy.world 4 points 1 hour ago

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

[–] talkingpumpkin@lemmy.world 43 points 8 hours ago* (last edited 1 hour ago) (1 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 ;-)

[–] thedeadwalking4242@lemmy.world 8 points 3 hours ago

The market can remain irrational longer then you can remain liquid as they say

[–] vext01@feddit.uk 55 points 12 hours ago (2 children)

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

[–] Baizey@feddit.dk 30 points 8 hours ago

It took the llm 11 days to generate the code

It doesn't seem to say anywhere anyone reviewed it in any time

[–] locuester@lemmy.zip 42 points 11 hours ago

Ew. Reviewing code is so 2024

[–] statelesz@slrpnk.net 39 points 12 hours ago

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

[–] uuj8za@piefed.social 64 points 13 hours ago

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

[–] Scrollone@feddit.it 13 points 11 hours ago (1 children)

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

What a shit show.

[–] bitfucker@programming.dev 1 points 3 hours ago

Please save yourself from lunacy by using pnpm. You can always use shamefullyHoist to get the npm compatibility

[–] droopy4096@lemmy.ca 20 points 12 hours ago

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.

[–] HaraldvonBlauzahn@feddit.org 23 points 13 hours ago* (last edited 13 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 3 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 9 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 7 hours ago* (last edited 3 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