Live data from Hacker News

Claude Code uses Bun written in Rust now

simonwillison.net

851–860 of 920 posts

Re: Claude Code uses Bun written in Rust now

#851

Earlier quoted context omitted.

I think it’s completely applicable here. Nobody who worked in the 80s or 90s would have selected this solution.

> Nobody who worked in the 80s or 90s would have selected this solution How does this support your argument? The tech didn't even exist in the 80s or 90s. Saying "They wouldn't have made the same choices 40 years" is meaningless in this context. There's a lot of things they wouldn't have done back then that we do today. And this is a field that has been changing by the week recently, which makes even less appropriate…

Let me clear up your confusion.

I did not say they wouldn’t used react in the 90s (obviously). Anybody familiar with terminal uis (a technology which did exist) and perhaps any other ui system would not have chosen this design.

And no it’s not just me as evidenced by the many confused comments any time this is brought up.

Re: Claude Code uses Bun written in Rust now

#852
post #48

Earlier quoted context omitted.

That PR is the rust rewrite. That's some time in the past now. As of this comment, there is no tagged 1.4 release. This is the present. Anthropic is using apparently a version of Bun that is not publicly available. This is orthogonal to it being Rust-based, as all Bun releases now will be.

Come on, "not publicly available"? You know how git works right? Each Claude release probably has the HEAD of main compiled as "1.4.0" until there is a real official release.

The commit hash reported by "1.4" doesn't exist in the public repo

Re: Claude Code uses Bun written in Rust now

#853

Earlier quoted context omitted.

Disingenuous, much? I've only ever had claude code crash once (after it decided to spawn like 12 subagents and got my laptop swapping like mad). If you're crashing every 5 minutes, either you have a cursed build, or you need to do a memtest.

It's not disingenuous, claude code has over 5k issues that are ignore plus thousands of more that were just silent closed. This is a product by a company worth supposedly $1trillion and they can't even make one of their starship products not shit the bad within 5 minutes? These are the same engineers telling us for the last 3 years that coding is solved? Like it's pathetic, and it's pathetic you're falling for it too…

I have standards.

I have a literal Star Trek conception on my literal Star Trek device. Impossible to even think about how inconceivable this stuff was years ago.

And you’re complaining because they use react.

The epitome of entitlement, first world problems and privilege all together.

Re: Claude Code uses Bun written in Rust now

#854
post #681
post #663

Earlier quoted context omitted.

All necessary memory is allocated at initialization. The application is not allowed any allocations during it's normal runtime. This is how it avoid memory bugs. Not a lot of people write programs this way.

A lot of people write software like this when predictable latency is a hard requirement.

Andrew Kelleys original motivation for creating Zig was language that allowed precise low-level control for real-time audio processing.

"Kelley describes why he created Zig, when other options including C, C++, Rust, and Go already exist. He said he set out to develop a digital audio workstation. He tried Go, but found interoperability with C libraries difficult, and said the garbage collector caused audio delays. He tried C++, or coding C-style using a C++ compiler, but found that small mistakes led to memory corruption bugs that took weeks to fix. He tried Rust but "really struggled to write code that would satisfy Rust's rules," and spent a month trying to make font rendering work."

https://www.theregister.com/software/2026/05/28/zig-creator-...

Re: Claude Code uses Bun written in Rust now

#855
post #85

Earlier quoted context omitted.

You, by your own admission, haven't even written a single line of Zig despite having ~31 Zig projects on GitHub. I don't think your knowledge of the language is to be trusted in almost any capacity. This might seem harsh but I don't trust someone who's experience with a language amounts to slopping out 30+ repositories and not even engaging with the language normally.

I guess that since you haven't built the car you're driving, your opinions on it are null and void as well. Anyone who actually believes that I can't have ANY sound opinion on Zig after 31 projects building with it should get their head examined for brain tumors. I mean, it's not like I have to deal with all the positive and negative effects of things written in it. It's not like I've had to solve problems in it that…

Honestly, I wasn't harsh enough... Though I don't think I could write a better post showing how useless your opinion on things actually is than the one you wrote yourself.

And no, I don't think you can have any valuable opinions on Zig since you don't write it. In your analogy you're not even driving the car, but it doesn't surprise me that you can't figure that out.

Re: Claude Code uses Bun written in Rust now

#856

Earlier quoted context omitted.

My Turbo Pascal programs could calculate and print to the screen faster than could be read, on a 486. With DOS however. I picked the P90 because I remember running Linux ~1.0 and/or NT on it, with real multitasking and services etc. Those soaked up many of the cycles. Another story, around Y2k/Win2k was asked to write a C program to record all the files/sizes on the C: in to file. Then something would be installed, m…

"The most amazing achievement of the computer software industry is its continuing cancellation of the steady and staggering gains made by the computer hardware industry." — Henry Petroski

Yup, Andy giveth what Bill taketh away.

Re: Claude Code uses Bun written in Rust now

#857
post #501

Earlier quoted context omitted.

Eh, the rendering of Claude Code is genuinely such a mess. I have quit claude code over it because when used as a terminal in PHPStorm it sometimes gets so bad that it becomes hard to use. This isn't a minor nitpick, it's a pretty major UX issue. Not saying it's like a massive business downside because I'm just one of a few users, maybe this affects their bottom line a little bit, but probably not by much. Regardless…

You don’t have to use these “tools”.

Indeed, and I said I stopped using the tool in the comment I made.

Re: Claude Code uses Bun written in Rust now

#858
post #537

Earlier quoted context omitted.

Zig is a DOA language for other reasons though. The reason why Rust enthusiasts act so morally superior is because they are: > Rob Pike, an unsafe guy, may insist that a small language and garbage collection are enough. But the typesafe visionary Grzegorz Wielbodłąński understands the deeper truth: every invalid state permitted by a compiler is a tiny act of civilizational sabotage. https://x.com/typememetics/status/…

The post you linked to seems to jump to conclusions, to say the least. For example: > One probable outcome of an unsafe-language-dominant world is full Andrew communism, which is precisely what Andrew “Smelley” Kelley proposes: abolish ICE and replace the market economy with a globally distributed network of community-maintained allocators. > Rather than a commercial product, software becomes a “public good,” ultimat…

I don't know, Andrew "Smelley" Kelly has some big beginner energy..

Re: Claude Code uses Bun written in Rust now

#859
post #649

Earlier quoted context omitted.

You don't test CI before you publish stuff?

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

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

#860
post #848
post #825

Earlier quoted context omitted.

You mean except the bugs in the zig version and any future CVEs?

I meant continuing to develop it

why would anybody invest all that time to understand and maintain a mess (according to the creator of zig) of 500k lines of zig code?
Post reply on HN