News for hackers. Stuff that matters.
Re:Claude Code uses Bun written in Rust now by atonse on Sunday July 19, 2026 @06:57AM (#48966845)
It’s made absolutely no negative difference, as we’ve seen in the real world in the last 60 days since the merge.

I feel weird having to defend reality; reality being that it was merged nearly 2 months ago and tons of people have had their pitchforks out without a shred of actual evidence that this made bun worse in any measurable way. But they still insist it was a mistake.

I’ve never met Jared or the bun team but I don’t understand all the personal attacks, I just feel the need to correct the facts. Literally who cares what language a JS toolset is written in?

It’s not like they ported JavaScriptCore (the actual JS runtime) to rust even. All that stuff is largely untouched.

Re:Claude Code uses Bun written in Rust now by jasode on Sunday July 19, 2026 @07:37AM (#48967173)
>Literally who cares what language a JS toolset is written in?

Maybe you're being coy by asking a rhetorical question you already know the answer to but I'll answer you as if you asked sincerely...

There are 2 different groups interacting with software products:

(1) end-users : this is where the "Who cares what language it's written in?!?" is usually applicable. E.g. The finance guys using MS Excel don't care whether it's written in assembly, BASIC, or C Language.

(2) code contributors and/or programming language enthusiasts who see other projects as "validation" of the whatever language they've invested in: these people definitely care.

For all the decades that computer languages have been debated, Group (2) will always discuss projects language choices. E.g. reddit.com switching from Lisp to Python, the Linux kernel fiercely debating future Rust contributions , the Typescript compiler switching from Javascript to Go, Bun switching from Zig to Rust, etc.

People try to lecture others in Group 2 about "don't make a programming language your identity" ... but people are human and they can't look at all the above language choices as totally detached observers. They like to talk about it!

If one is a Zig coder that contributed to the previous Bun Zig codebase, we can't expect them to be neutral observers.

Re:Claude Code uses Bun written in Rust now by estearum on Sunday July 19, 2026 @07:52AM (#48967288)
I think you're missing group 3, which is the "assume bad faith and/or bad outcome from any possible change to anything, and especially changes to open source projects that can be interpreted as exogenous, e.g. from an acquirer, and especially if that acquirer is a gigantic commercial entity."

There are not nearly enough disenfranchised Bun-on-Zig contributors to make a dent in this conversation. There are lots of Group 3s in every similar convo, for any combination of technology, project, and acquirer you can name.

Re:Claude Code uses Bun written in Rust now by atonse on Sunday July 19, 2026 @12:15PM (#48969406)
I think most of the naysayers are in group 3 because there’s a lot of anger but never a single link to a blog post or analysis done by anyone to demonstrate a regression. not one. There are some that analyzed the quality of the initial rust code and use of unsafe but Claude has been chewing through those as I understand.
Re:Claude Code uses Bun written in Rust now by simonw on Sunday July 19, 2026 @12:26PM (#48969487)
I thought that too but it looks like the usage of unsafe hasn't been trending down over time: https://news.ycombinator.com/item?id=48966569#48967630
Re:Claude Code uses Bun written in Rust now by ksec on Sunday July 19, 2026 @01:21PM (#48969954)
It was a PR issue more than anything else. It is also a proxy for Pro AI and Anti AI sentiment.

And for most part I don't think it was communicated well apart from the last blog post.

Re:Claude Code uses Bun written in Rust now by endospore on Monday July 20, 2026 @06:02AM (#48976590)
https://github.com/oven-sh/bun/issues/30719#issuecomment-446...

Personally I chose not to disclose my findings in public to avoid this kind of outcome. Having a good laugh with others is not as important as keeping the result of this experiment undisturbed.

This also eliminates the chance of another round of marketing of LLM ability based on actual human contributions and I suggest everyone who is able to analyze the code to do the same - so that they cannot misattribute our ability to LLMs.

Re:Claude Code uses Bun written in Rust now by rjzzleep on Sunday July 19, 2026 @08:05AM (#48967387)
What about Group x.

You just AI generated 1 millions lines of code claiming it's for safety. Who exactly is to make any kind of security guarantees about this?

Re:Claude Code uses Bun written in Rust now by conartist6 on Sunday July 19, 2026 @09:10AM (#48967931)
Don't forget the group asking really dumb pointless questions like "who legally owns the rewritten code"
Re:Claude Code uses Bun written in Rust now by ethbr1 on Sunday July 19, 2026 @09:43AM (#48968156)
Afaik, under current US law (Thaler v. Perlmutter 2025^), "the Copyright Act of 1976 requires all eligible work to be authored in the first instance by a human being".

With regards to AI-generated code, this means the copyrightability (at all, not with regard to who owns it) turns on whether or not a human was substantially involved in its creation.

Existing decisions require evidence of pretty heavy and continued human guidance to qualify.+

To wit, autonomous agent created code (prompt -> machine churns for hours -> output) is explicitly not eligible for copyright.

Functionally, this is a double-edged sword.

On the one hand, it means anything coded with autonomous agents by Meta, Google, et al. can be legally reused if it leaks (because no one could hold copyright on it).

On the other hand, it leaves copy-left open source licenses in a weird place. If you convert open source (even MIT/BSD-style) code into something else with an autonomous coding agent... the result has no copyright (nor can ever in the US).

In this instance, Bun was MIT-licensed, no? Then it was shoved mostly-autonomously through an LLM for the port.

Now Bun-Rust is technically still MIT licensed, but if push came to shove it seems like US law's current position is that Bun-Rust would now have no copyright license (because the manner in which it was developed renders it ineligible for copyright).

That's on the copyright side.

On the infringing usage side (i.e. whether you were entitled to shove a copyrighted work into a coding agent to produce something)... that's still TBD.

^ https://media.cadc.uscourts.gov/opinions/docs/2025/03/23-523...

+ https://garrettham.com/ai-generated-works-copyright/

Re:Claude Code uses Bun written in Rust now by eventhorizon77 on Sunday July 19, 2026 @04:11PM (#48971315)
Couldn't it be argued that Bun-Rust is still MIT licensed, because the old implementation was "in the first instance" authored by a human? All the machine did was translate it.

I think it's the "infringing usage" question that is more interesting. If the LLM trained on GPL-derived code, what does that mean for the end result?

Re:Claude Code uses Bun written in Rust now by simonw on Sunday July 19, 2026 @05:05PM (#48971644)
"If the LLM trained on GPL-derived code, what does that mean for the end result?"

Either it means nothing at all, or it means that a substantial portion of the code produced at some of the world's most valuable companies over the last two and a half years is GPL.

Re:Claude Code uses Bun written in Rust now by conartist6 on Sunday July 19, 2026 @06:35PM (#48972296)
Yeah you could argue that, but it's a messy argument. I'm wiling to imagine that they hadn't used AI to do the rewrite to Rust. It wouldn't have been all that hard to do with plain old syntax tree transformation (my expertise). The trickier question for me is the ownership at the boundary where prompts were turned into Zig code. That is not a process that could have been done with syntax tree transformation: creative freedom was given to the model as to how to do the work at that stage, and so that is the stage at which I'm least sure they could legally defend their claim to ownership.
Re:Claude Code uses Bun written in Rust now by ethbr1 on Monday July 20, 2026 @07:13AM (#48977188)
I feel like that's a lot of LLM use in a nutshell: sure, there's a more surgical scalpel available, but isn't it so much easier just to fling prompts at a magic box?
Re:Claude Code uses Bun written in Rust now by tokioyoyo on Sunday July 19, 2026 @03:12PM (#48970887)
What was your safety guarantee pre-rewrite? If CVE scanners and aggregators is your answer, then well, this applies to post-rewrite as well.
Re:Claude Code uses Bun written in Rust now by layer8 on Sunday July 19, 2026 @07:50AM (#48967275)
> who cares what language a JS toolset is written in?

Anthropic, apparently, not the least because they blanket-closed all issues submitted before the rewrite. If the language were irrelevant, it shouldn’t matter for the existing unfixed issues.

Re:Claude Code uses Bun written in Rust now by threatofrain on Sunday July 19, 2026 @10:48AM (#48968680)
Why would Anthropic be the answer you lead with? Why do we care if Anthropic is even in the conversation? What does it have to do with the huge number of users who don’t know or care who is behind Node, or how much is in C++?
Re:Claude Code uses Bun written in Rust now by doctorpangloss on Sunday July 19, 2026 @11:36AM (#48969092)
imagine being the leadership of the one of most valuable US private companies in the world. then you have to make something called a "pull request" that gets "reviewed" by someone named "Jarred" to make improvements to your stuff. do you see how that is untenable?

the language is relevant for political not technical reasons. you could say, blanket closing the Issues, getting rid of this thing called Jarred from your stack, etc., is really an attack on the GitHub and the GitHub Agitator Lifestyles, which is why so many commenters on Hacker News actually care.

Re:Claude Code uses Bun written in Rust now by pronik on Sunday July 19, 2026 @04:51PM (#48971574)
> blanket-closed all issues submitted before the rewrite

You'll need a citation for that. While I'm still not sure whether Claude Code's issue tracker is worth much (Anthropic doesn't seem to engage with individual issues a while lot), it still has 5k+ open issues ranging back to March 2025. Bun also still has all of its Zig-timeline issues, all 5k+ of them. So what's this about?

Re:Claude Code uses Bun written in Rust now by bbg2401 on Sunday July 19, 2026 @08:12AM (#48967431)
The crux is:

> What is the governance structure for Bun by the way? Couldn't find any documents/explanations about how it's supposed to work. I'm guessing it's essentially just "Anthropic decides what gets done and accepted" today?

And this is a valid question. You are not "defending reality" by refusing to listen to it.

In summary and based solely on my understanding:

- Jared misled people about the intentions of the migration. It's not the worst thing in the world, but it's certainly worthy of criticism.

- Jared has commented before about locking out human contributors from open source projects. Whether he was making a larger point is irrelevant as his comment stands on its own.

- Other Bun contributors, past and future, outside of those employed by Anthropic, did not and likely will not have equal access to the model Jared used for the rewrite.

Jared, working in the public Bun repository, used tooling not available to his community to experiment with a signficant migration. He dismissed all concerns and told people it's just a bit of fun, and that it shouldn't be taken seriously. Most of the controversy would have been avoided were the experiment done in private.

None of this is a big scandal but questions about the project are entirely justified.

Re:Claude Code uses Bun written in Rust now by cube00 on Sunday July 19, 2026 @09:12AM (#48967945)
> I'm guessing it's essentially just "Anthropic decides what gets done and accepted" today?

Similar to the Claude Code 60s timeout incident [1] it could just be "Jarade decides what gets done and accepted"

[1]: https://news.ycombinator.com/item?id=48949942

Re:Claude Code uses Bun written in Rust now by Grombobulous on Sunday July 19, 2026 @02:24PM (#48970508)
Sometimes the questions aren't justified, though, like when someone else’s project is someone else’s project.

It seems like when some folks see “open source” they think the project maintainers owe them something.

An open source MIT license of the source code is very different from being the original copyright holder.

Re:Claude Code uses Bun written in Rust now by re-thc on Sunday July 19, 2026 @07:42AM (#48967215)
> that this made bun worse in any measurable way

Issues on GitHub was mass closed claiming zig is no longer relevant without fixing the real issues.

Re:Claude Code uses Bun written in Rust now by atonse on Sunday July 19, 2026 @12:09PM (#48969356)
Whole classes of bugs WERE fixed by moving to rust. wouldn’t that result in mass closures of classes of bugs that were no longer relevant in rust? What would you prefer?
Re:Claude Code uses Bun written in Rust now by re-thc on Sunday July 19, 2026 @02:00PM (#48970290)
I would prefer they confirm before closing. It's AI / bot anyway. Instead it's just mass keyword zig = close. The bug can still exist post-port. None of it got "fact-checked".

In fact a lot of "feature requests" like npm compatibility related or missing specs etc ALL also got closed for being "zig" because reproduction and suggested solution were of course zig.

Again doesn't mean it got "auto fixed".

Re:Claude Code uses Bun written in Rust now by jdiff on Sunday July 19, 2026 @10:32PM (#48973770)
Whole classes of bugs are fixed by safe rust. This is not safe rust. As a line-by-line translation with unsafe forced anywhere necessary to make it compile, this should result in no classes of bugs fixed by moving to rust.
Re:Claude Code uses Bun written in Rust now by vermilingua on Sunday July 19, 2026 @08:01AM (#48967352)
Except that it hasn’t yet hit the real world, the live release is still 1.13.4, the last Zig version. Anthropic does not operate in the real world.
Re:Claude Code uses Bun written in Rust now by Tadpole9181 on Sunday July 19, 2026 @11:07AM (#48968831)
The canary build has been Rust for over a month, available to anyone. In that time it has been used in production for Claude Code and Prisma Compute.
Re:Claude Code uses Bun written in Rust now by atonse on Sunday July 19, 2026 @12:06PM (#48969338)
Not sure why this purely factual post got downvoted. Upvoted it.
Re:Claude Code uses Bun written in Rust now by sorenbs on Monday July 20, 2026 @05:35AM (#48976355)
We found the Rust based canary version to solve a number of memory leaks that we were struggling with in the Zig based 1.3. One of our engineers wrote up the details here: https://www.prisma.io/blog/bun-rust-rewrite-prisma-compute
Re:Claude Code uses Bun written in Rust now by well_ackshually on Sunday July 19, 2026 @07:24AM (#48967063)
There's two kinds of reliable open source projects:

* Open source because it ticks a checkbox but is only being really developed by a large team paid contributors and your changes (see: Chromium, most of Linux, Node, etc.)

* Open source because of belief that sharing it publicly will do good and collaboratively built by a very small group of core maintainers and others wanting to improve it.

Bun is now solidly into the third, absolute shit category: very small development team headed by a tech bro that shits out millions of lines of code he doesn't even know how they work and will inevitably collapse under its own weight while he swaps things out from under your feet.

It's not a language issue, it's a trustworthiness issue, and Bun was already pretty low in trust even before the Anthropic acquisition. In addition, we now have Claude Code running an unreleased version of Bun, for a while now: Bun is effectively not even open source anymore, just a source code dump from time to time.

Re:Claude Code uses Bun written in Rust now by CrimsonRain on Sunday July 19, 2026 @08:09AM (#48967414)
What a load of bs.

> Inevitable collapse

According to who? You? The well ackshually guy?

> Low in trust before acquisition

Cite your sources.

> Unreleased version

v140 is the canary version which has been available for a long time.

https://github.com/oven-sh/bun/releases/tag/canary

> Not open source anymore

Who died and made you the dictator of open source?

Your post is just a bunch of opinions and lies and speculation wrapped as facts.

Re:Claude Code uses Bun written in Rust now by embedding-shape on Sunday July 19, 2026 @09:13AM (#48967957)
> v140 is the canary version which has been available for a long time. https://github.com/oven-sh/bun/releases/tag/canary

What is actually going on with that tag? It has files uploaded in Jul 29, 2024 and files uploaded "6 hours ago" (some hours after Simon first published his blog post). Do they not do proper releases with immutable tags and instead use one tag kind of like a git branch that mutates and changes over time?

Re:Claude Code uses Bun written in Rust now by simonw on Sunday July 19, 2026 @09:17AM (#48967993)
Yeah, it looks like they constantly repoint the "canary" tag at whatever they think should be the new canary release.

I don't like that, personally. I think the project would be easier to reason about if they shipped alpha versions instead.

[dead]
Re:Claude Code uses Bun written in Rust now by simonw on Sunday July 19, 2026 @09:38AM (#48968124)
Did you create a burner account just to accuse me of bikeshedding Bun's release tag process?
Re:Claude Code uses Bun written in Rust now by jgalt212 on Sunday July 19, 2026 @09:14AM (#48967959)
> It’s made absolutely no negative difference, as we’ve seen in the real world in the last 60 days since the merge.

This is even more interesting given that prewar Bun was not a well respected code base. This matters if the code was bad, were the tests bad / not comprehensive as well? If so, the translation to rust whose sole / primary target was test-passing will have a fair amount of undocumented bugs in it.

> poster child for Zig programming language actually being the prime example of How Not To Write Zig Code

https://andrewkelley.me/post/my-thoughts-bun-rust-rewrite.ht...

Re:Claude Code uses Bun written in Rust now by NewsaHackO on Monday July 20, 2026 @02:33AM (#48974995)
Did he say this opinion before the rewrite, or when he was taking tens of thousands of Bun's money per month?
Re:Claude Code uses Bun written in Rust now by zzzeek on Sunday July 19, 2026 @09:57AM (#48968283)
this whole AI era has put the topic of "do we believe actual reality, or what we hoped/assumed/continue to insist would be reality" front and center. Every discussion is like this these days.
Re:Claude Code uses Bun written in Rust now by bmitc on Sunday July 19, 2026 @11:19AM (#48968944)
The outrage was more how the rewrite was communicated and defended, which was objectively poor.
Re:Claude Code uses Bun written in Rust now by pronik on Sunday July 19, 2026 @04:54PM (#48971586)
Which was completely bonkers -- it happened completely in the open, people were just outraged that something like this happens without asking them and not on a schedule they perceive as adequate. Most of them haven't really grasped what was happening and why. Many still don't.
Re:Claude Code uses Bun written in Rust now by cube00 on Sunday July 19, 2026 @07:57PM (#48972844)
> it happened completely in the open

You don't create PRs like this when you're working "completely in the open"

  test ci #30412
  No description provided.
https://web.archive.org/web/20260509235415/https://github.co...
Re:Claude Code uses Bun written in Rust now by tick_tock_tick on Sunday July 19, 2026 @10:57PM (#48973896)
You don't test CI before you publish stuff?
Re:Claude Code uses Bun written in Rust now by cube00 on Monday July 20, 2026 @12:43AM (#48974441)
I give the PR a proper title on creation. I don't see any reason to create a PR with a title of "test ci" and then rename it later to:

  Rewrite Bun in Rust #30412
Re:Claude Code uses Bun written in Rust now by tick_tock_tick on Monday July 20, 2026 @02:46PM (#48983148)
well you'd hate my work then plenty of people have zero issue opening

DRAFT: DON'T MERGE CI TEST

and then they forget to close em when they go another route and they sit around for 2 months until they auto close or they fix it up into something reviewable. It's been a thing at literally every place I've worked are you really saying you don't see that?

Re:Claude Code uses Bun written in Rust now by bmitc on Sunday July 19, 2026 @07:07PM (#48972520)
It wasn't out in the open. It was never announced or discussed ahead of time. It was just done because the company who purchased Bun wanted it done, and they only communicated it was happening once they started.

I don't consider the following comment to be good, honest, and open communication:

https://news.ycombinator.com/item?id=48016880#48019226

Re:Claude Code uses Bun written in Rust now by simonw on Sunday July 19, 2026 @07:18PM (#48972601)
What was dishonest about that comment?

> There’s a very high chance all this code gets thrown out completely.

... and a few days later he decided that the code wouldn't get thrown out. That doesn't make the comment itself dishonest, he didn't have a crystal ball.

You can absolutely argue that the rewrite was not communicated clearly once they committed to it, but I don't think the comment you linked to there stands as evidence of poor communication at the time it was written.

Re:Claude Code uses Bun written in Rust now by bmitc on Sunday July 19, 2026 @07:34PM (#48972697)
He knew he wasn't going to throw out the code when he made that comment.
Re:Claude Code uses Bun written in Rust now by simonw on Sunday July 19, 2026 @09:18PM (#48973388)
I think he didn't know. We are at an impasse.
Re:Claude Code uses Bun written in Rust now by queenkjuul on Monday July 20, 2026 @10:46AM (#48979623)
>It’s made absolutely no negative difference, as we’ve seen in the real world in the last 60 days since the merge.

The rust code is not yet in a stable release, and CC only switched to it in the latest version, so there's not been 60 days of widespread battle testing yet, so i don't see how we could possibly say it will have no negative difference. It hasn't, because nobody is using it yet. It still might.

>Literally who cares what language a JS toolset is written in?

I don't care what language it's in, but i do care how it is written and maintained. I'm not going to trust my projects to a runtime that was written by an LLM in two weeks with practically no human review