this post was submitted on 15 Jul 2026
176 points (97.3% liked)

Programming

27738 readers
378 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 50 comments
sorted by: hot top controversial new old
[–] talkingpumpkin@lemmy.world 67 points 1 day ago* (last edited 1 day ago) (2 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 ;-)

[–] draco_aeneus@mander.xyz 3 points 1 day ago

Bun is not nearly popular enough to have a measurable impact on the JavaScript community, no matter what happens with it.

[–] thedeadwalking4242@lemmy.world 19 points 1 day ago (1 children)

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

[–] MonkeMischief@lemmy.today 5 points 1 day ago* (last edited 1 day ago)

I miss "We can remain stupid longer than you can remain solvent." and "Ape together strong."

[–] bookmeat@fedinsfw.app 7 points 1 day ago
[–] uuj8za@piefed.social 84 points 2 days ago

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

[–] vext01@feddit.uk 65 points 2 days ago (3 children)

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

[–] alphabethunter@lemmy.world 5 points 23 hours ago

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 turd~~third 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".

[–] Baizey@feddit.dk 45 points 2 days ago (3 children)

It took the llm 11 days to generate the code

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

[–] justastranger@sh.itjust.works 1 points 22 hours ago

11 days and $165,000

They code review in prod, like REAL PROGRAMMERS HOO RAH

load more comments (1 replies)
[–] locuester@lemmy.zip 55 points 2 days ago

Ew. Reviewing code is so 2024

[–] statelesz@slrpnk.net 49 points 2 days ago

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

[–] liuther9@lemmy.world 11 points 1 day ago (1 children)

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

[–] cornshark@lemmy.world 7 points 1 day ago (1 children)

Because devs are adding more features faster than before? Or because the quality of each feature is low?

[–] badmin@lemmy.today 5 points 1 day ago
  1. The bugs were always there. And some are just not happy with their incompetence getting surfaced/exposed.
  2. 🟢 All of the above.
[–] HaraldvonBlauzahn@feddit.org 32 points 2 days ago* (last edited 2 days ago) (5 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..

load more comments (5 replies)
[–] Scrollone@feddit.it 17 points 2 days 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 8 points 1 day ago

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

[–] droopy4096@lemmy.ca 20 points 2 days ago (1 children)

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.

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.

load more comments
view more: next ›