Live data from Hacker News

Claude Code uses Bun written in Rust now

simonwillison.net

691–700 of 920 posts

Re: Claude Code uses Bun written in Rust now

#691
post #663

Earlier quoted context omitted.

Can you elaborate on the unusual part?

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.

[deleted]

Re: Claude Code uses Bun written in Rust now

#692
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!

That's why it matters for people to hold the control of the tech, not companies, as I've already mentioned quite clearly.

LLM is here to stay, keep denying the fact won't work. What does is to make the tech so abundant, it flushes the bad actors, such as for-profit AIs, completely out. It's either this, or get crushed by for-profit AIs, pick one.

Re: Claude Code uses Bun written in Rust now

#693

Bah. Personally my take on the entire affair is quite negative, whatever Jarred or Simonw says about it. I think Bun owned by Anthropic and the entire rewrite with AI is not the real point (even if it's quite interesting, though). My take is that Jarred, and Bun,didn't demonstrate a serious, adult approach, from "this is my branch, you are overreacting" message to just proceeding with a 1mil+ PR merged in less than m…

I don't know, I feel as though Bun went about it much more maturely than zig at any point in the process, from the initial attempted zig compiler commit by the Bun team to the Zig dev team member response to the Bun Rust blog post. Also, I think that fallout over this whole event will definitely favor Bun versus Zig.

It's a weird way to frame the event. Yeah, Andrew (Zig)'s responses were astonishingly immature, but it doesn't matter. Even if Andrew literally ate baby seals for breakfast and kicked puppies as a hobby, it wouldn't make Bun look better. You'd notice that the parent comment didn't even mention zig at all.

Re: Claude Code uses Bun written in Rust now

#694
post #123

Earlier quoted context omitted.

I think you’re missing a word or two.

Based on comments elsethread, I think what was meant is: You can install it now with “bun upgrade --canary”, or something along those lines. However, people also report that the canary version doesn’t identify itself as version 1.4.

It does.

Re: Claude Code uses Bun written in Rust now

#695
post #55

Earlier quoted context omitted.

I guess the point is none of it matters, CC users didn't notice or don't care except an exceptionally small minority.

The lowest of the bars

But the only one that matters?

Seems like this is delivering business value.

Re: Claude Code uses Bun written in Rust now

#697
post #421

Earlier quoted context omitted.

Because there's no legal way to use Claude Code on subscription otherwise

Exactly. Their tech choices were not an issue because other things mattered more to users.

Yes. "People don't use alternatives not because they literally aren't allowed to, but because other things matter more"

Re: Claude Code uses Bun written in Rust now

#698
post #663

Earlier quoted context omitted.

Can you elaborate on the unusual part?

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.

I do this in Unity because allocations/GC cause hitches. it's pretty normal thing to do there's even the built in pooling libraries so you can pre-allocate 10,000 gameobjects when the game starts. I haven't played with ECS/DOTS yet but I assume it does something similar.

Re: Claude Code uses Bun written in Rust now

#700
post #639

Earlier quoted context omitted.

Why not using Swift?

Swift is very weak outside Apple ecosystem, compared to Rust. Not sure nowadays, but Swift used to have breaking changes each major release, that's a non go for a big project.

But Swift has a stable ABI which neither Zig nor Rust could provide.
Post reply on HN