Live data from Hacker News

Claude Code uses Bun written in Rust now

simonwillison.net

161–170 of 920 posts

Re: Claude Code uses Bun written in Rust now

#161

Incidentally, Claude Code has been very buggy for me lately (much more so than before). Lots of TUI rendering issues causing, e.g., the conversation history to be garbled etc.

Every time I resize my window now, the output is completely garbled. I often have to ask it to repeat itself just so I can see what it just said. This isn’t a new thing, but it feels like it’s gotten worse. This is on Windows

Re: Claude Code uses Bun written in Rust now

#162
post #83

Earlier quoted context omitted.

>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 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'…

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?

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

#163
post #141

All the emotion of speculations aside, how it runs? It boots faster yeah, but what about RAM and CPU usage? Weird dead loop or dead locks? If it run as good as before or even better, then that's kinda impressive. I'm a developer so I really don't like it when AI might took my job, but if everyone on this planet could create a software for themselves exactly as how they wanted with just a few simple demands, that will…

> Think of it as a democratization of technology

Incredibly naive take when these models are closed behind (for now subsidized) paywalls.

This "democratization" argument is so nauseating, seems like the Bun port to Rust as a marketing piece (the primary motivator) sold it well!

Re: Claude Code uses Bun written in Rust now

#164
post #18

Earlier quoted context omitted.

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…

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 th…

> 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

#165

Earlier quoted context omitted.

[flagged]

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 speculati…

> 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

#166
post #18
post #5

Earlier quoted context omitted.

Why does changing to Rust kill the project? I don't understand the point here.

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…

> 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

#167
post #67

The port of Bun, which has >5000 open github issues, is used in Claude Code, which has >11000 open github issues. Do people use Bun in things that are expected to work reliably? Have any such projects tried the upgrade yet?

11k in two years vs 5k in two weeks? You're right, numbers speak for themself.

Did Bun mass-close issues that predated the rewrite? It doesn't look like they did, as the oldest open issue is from 2021 and there are many from 2022, but maybe they did something that killed most of the old issues.

Re: Claude Code uses Bun written in Rust now

#168
post #148

Earlier quoted context omitted.

People shouldn’t overthink blog posts. Just write what’s on your mind and have fun.

The motivation is obviously clear. No-one would be doing that for fun 24/7, only covering about AI and nothing else without getting paid for it. If anyone else did that on HN, they would be accused of slop with their domain blacklisted.

There are many people with unbridled enthusiasm and an ability to write fast

Knowing Simon - he’s very much both :)

Re: Claude Code uses Bun written in Rust now

#169
post #10
post #5

Earlier quoted context omitted.

Why does changing to Rust kill the project? I don't understand the point here.

I am impartial on the matter, but I think one of the reasons Bun became a thing in the first place was because of Zig attracted a small but very active developer community. Switching from Zig to Rust effectively alienates that community.

Bun became a thing because it provided some specific benefit to js ecosystem. Zig enabled the rapid development. The people who contributed were definitely helpful but they can still choose to help or not and new people will step up too

Re: Claude Code uses Bun written in Rust now

#170

It's a transpile. And not even a good one. The generated code is far from idiomatic rust. Some may consider it an abomination.

Is it important to be idiomatic if the project meets its goals around memory safety?

If it's not idiomatic, the memory safety won't be guaranteed.
Post reply on HN