Live data from Hacker News

Claude Code uses Bun written in Rust now

simonwillison.net

311–320 of 920 posts

Re: Claude Code uses Bun written in Rust now

#311

Maybe I’m taking crazy pills, but I’m still stuck on “why the hell does a TUI need to run in terminal React by way of JavaScript” The fact that Anthropic felt the need to buy a runtime so they could make their TUI better speaks more to the quality of engineering than anything else IMO. If rewrites are so easy, why not rewrite CC in a native language? Would’ve been a hell of a lot cheaper.

So the code for the web, the desktop app, and the cli where largely similar.

The component trees have to be rewritten, only the non-view related JS code can be reused.

Re: Claude Code uses Bun written in Rust now

#312
post #209

Why all the mess with Bun? Couldn't they have rewritten Claude Code in Rust directly? No more need for a JS runtime, better performance, etc... If their agents can do Zig to Rust, why not JS to Rust?

I know, its so confusing. Its almost as if the bun rewrite to Rust has absolutely fuck all nothing to do with Anthropic's product strategy.

Re: Claude Code uses Bun written in Rust now

#313
post #150

Earlier quoted context omitted.

Indeed as much I dislike the approach Bun took, at least the port appears to be working. TS7 is going to cause problems for downstream users because Go is the wrong language to use for something that has to run in WASM.

> TS7 is going to cause problems for downstream users because Go is the wrong language to use for something that has to run in WASM. Is there a huge need to run that typechecking on browsers?

It is incredibly useful

Re: Claude Code uses Bun written in Rust now

#314
post #290

Maybe I’m taking crazy pills, but I’m still stuck on “why the hell does a TUI need to run in terminal React by way of JavaScript” The fact that Anthropic felt the need to buy a runtime so they could make their TUI better speaks more to the quality of engineering than anything else IMO. If rewrites are so easy, why not rewrite CC in a native language? Would’ve been a hell of a lot cheaper.

JavaScript is dynamic and supports live reload which means iterations are far faster than would be in a compiled language--even for LLMs. This is especially useful when you're trying to evaluate behaviors while changing state surgically.

If you are relying on live updates to change state in a dynamic language then you are not doing it "surgically", unless there is some other definition that means hitting it softly with a large rock.

Re: Claude Code uses Bun written in Rust now

#315

Earlier quoted context omitted.

Because I’ve been told that Fable can do anything :-) My question is moreso “why was it ever JS in the first place” & the cost of a native rewrite would be cheaper than acquiring Bun no matter how you shake it

>Because I’ve been told that Fable can do anything I hear some version of this anecdote constantly yet despite using all these prompting tools since 2019 I have never once heard a lab or professional say “x model can do anything” Can you provide me whatever specific source you heard for this?

>I have never once heard a lab or professional say “x model can do anything”

Yeah, they "merely" say that they're about to break the singularity in a couple of years, that it's too capable to be safe to release, that it's going to take 50% (or all, depening on the day and audience) of programmers out of work, that it's smarter than Nobel prize winners, that their programmers don't write anything themselves anymore, and things to that effect.

Re: Claude Code uses Bun written in Rust now

#316

Earlier quoted context omitted.

>Because I’ve been told that Fable can do anything I hear some version of this anecdote constantly yet despite using all these prompting tools since 2019 I have never once heard a lab or professional say “x model can do anything” Can you provide me whatever specific source you heard for this?

It’s hyperbolic and intended to generalize the sentiment I perceive from others. Dario Amodei said in January that he expected software engineers to be replaced [0], so I suppose the quote should be extended to “can do anything… a software engineer can do” And I think we can all agree that SWE is on the more complex end of all white collar jobs. So, my thinking is that if SWE can hypothetically be replaced, so can ma…

So then nobody actually has ever said that and its explicitly hyperbole

So then its misleading in the extreme to say “I’ve been told AI can do anything”

It amplifies hype when people make claims like this by including hyperbolic statements as though they are reflective of the state of the discussion.

Re: Claude Code uses Bun written in Rust now

#317

Earlier quoted context omitted.

>Because I’ve been told that Fable can do anything I hear some version of this anecdote constantly yet despite using all these prompting tools since 2019 I have never once heard a lab or professional say “x model can do anything” Can you provide me whatever specific source you heard for this?

It’s hyperbolic and intended to generalize the sentiment I perceive from others. Dario Amodei said in January that he expected software engineers to be replaced [0], so I suppose the quote should be extended to “can do anything… a software engineer can do” And I think we can all agree that SWE is on the more complex end of all white collar jobs. So, my thinking is that if SWE can hypothetically be replaced, so can ma…

Code is the killer app for LLMs so software developers are the easiest to replace.

Re: Claude Code uses Bun written in Rust now

#318

Earlier quoted context omitted.

>Because I’ve been told that Fable can do anything I hear some version of this anecdote constantly yet despite using all these prompting tools since 2019 I have never once heard a lab or professional say “x model can do anything” Can you provide me whatever specific source you heard for this?

> I have never once heard a lab or professional say “x model can do anything” Yeah, they "merely" say that they're about to break the singularity in a couple of years, that it's too capable to be safe to release, that it's going to take 50% (or all, depening on the day and audience) of programmers out of work, that it's smarter than Nobel prize winners, that their programmers don't write anything themselves anymore,…

Who is “they?”

Again… provide me a quote from someone doing this every day that says: “they're about to break the singularity in a couple of years”

The only people saying this stuff are random Internet commenters, breathless reporters and reactionaries.

The only person on record for a statement like this was Geoff Hinton about radiologists and he has since walked back his statement

Re: Claude Code uses Bun written in Rust now

#319
post #236

Maybe I’m taking crazy pills, but I’m still stuck on “why the hell does a TUI need to run in terminal React by way of JavaScript” The fact that Anthropic felt the need to buy a runtime so they could make their TUI better speaks more to the quality of engineering than anything else IMO. If rewrites are so easy, why not rewrite CC in a native language? Would’ve been a hell of a lot cheaper.

It largely works and it's a massive business success. This is the classic engineer asking the 'why this technology?' to what amounts to a business question. They chose it early on, it works, and it makes obscene amounts of revenue. End of story. That doesn't mean it was the "greatest" choice, or has a perfect technical architecture. Rewrites are never easy, even the bun rewrite. But a non-UI developer tool with a rig…

So Claude isn't great for everything?!?

Re: Claude Code uses Bun written in Rust now

#320
post #236

Earlier quoted context omitted.

It largely works and it's a massive business success. This is the classic engineer asking the 'why this technology?' to what amounts to a business question. They chose it early on, it works, and it makes obscene amounts of revenue. End of story. That doesn't mean it was the "greatest" choice, or has a perfect technical architecture. Rewrites are never easy, even the bun rewrite. But a non-UI developer tool with a rig…

> It largely works and it's a massive business success. This is the classic engineer asking the 'why this technology?' to what amounts to a business question. Your counter argument would be valid for a 2000 or a 2020 business decision about some tech stack. But the whole point of their product is that it supposedly nullifies such "business" concerns around the use of technology, by making it cheap and fast to build w…

Yeah, this is what I’m trying to get at.

There’s two arguments in competition:

1. LLMs make it cheap (in the time sense) and easy to build

2. Rewrites and/or writing something in a native app or program is harder and more time consuming

I think I am willing to take it as an axiom that a native version of CC would be superior from a user perspective. Performance, etc.

I just don’t see how one can say that building things reliably good is easy now when the company providing these tools can’t even do it well.

Post reply on HN