Live data from Hacker News

Claude Code uses Bun written in Rust now

simonwillison.net

601–610 of 920 posts

Re: Claude Code uses Bun written in Rust now

#601

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.

> If rewrites are so easy, why not rewrite CC in a native language? Would’ve been a hell of a lot cheaper.

It was unpleasantly surprised when I learned the hard way that LLMs are not much better at translating than writing from scratch.

The more you look into how they work, the more you see that it doesn't really give them a huge advantage, if the classes are big enough. You can tell them to break each function up and translate them one-by-one, but the errors compound, you can't test most of it until you have a lot done, and in the end, it really isn't much faster (and sometimes it seems to be a lot slower) then just telling them to start over from scratch.

The downside is... If you have a system that already works, you don't want to start from scratch and test everything all over again...

Re: Claude Code uses Bun written in Rust now

#603

Earlier quoted context omitted.

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

> 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. I don't know how you can't see it, to me it's blindingly obvious: risk aversion. Let's say the risk for a problem is 1%; hell, let's put it at 0.1% even. For a company at this scale even that amount of risk is too much. I trust Opus/Fable to drive prod database migrations and…

Going to give a short reply to one point because I’m about to go to sleep (I try to make an effort to be honest as to why I’m not fully engaging with the entire comment) but re: strawman, I don’t think so. When Dario Amodei is saying SWEs will be replaced soon [0], I think it follows that then he believes Claude can write a native app as well as a native app dev.

0 - https://finance.yahoo.com/news/anthropic-ceo-predicts-ai-mod...

Re: Claude Code uses Bun written in Rust now

#604

Earlier quoted context omitted.

> 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. I don't know how you can't see it, to me it's blindingly obvious: risk aversion. Let's say the risk for a problem is 1%; hell, let's put it at 0.1% even. For a company at this scale even that amount of risk is too much. I trust Opus/Fable to drive prod database migrations and…

Going to give a short reply to one point because I’m about to go to sleep (I try to make an effort to be honest as to why I’m not fully engaging with the entire comment) but re: strawman, I don’t think so. When Dario Amodei is saying SWEs will be replaced soon [0], I think it follows that then he believes Claude can write a native app as well as a native app dev. 0 - https://finance.yahoo.com/news/anthropic-ceo-predi…

CEOs love to promise the sky and the stars. Color me unimpressed.

Now whether they can do it -- that's a separate, and a much more interesting, discussion.

Re: Claude Code uses Bun written in Rust now

#605

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

> 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 whatever you like automatically. This is a spectrum, it's not just 0% vs 100%. Even Fable frakked up a few things really badly in my professional work (though to its credit after a very detailed 2h chat it self-corrected and fixed all the blunders). I would…

[flagged]

Re: Claude Code uses Bun written in Rust now

#606

Earlier quoted context omitted.

As much as an enthusiast dev like myself hates it -- this is innately true, way too often. I am 46 y/o and still excited to code and solve problems with code and I still have trouble to admit to myself sometimes that people make dozens of millions with PHP and the tech hardly matters when you can throw bodies at the problem (and when that throwing of bodies at the problem actually solves it, of course).

> I still have trouble to admit to myself sometimes that people make dozens of millions with PHP Or many billions. eg. Facebook was originally written in PHP. As a 52 y/o who cares deeply about software development as an art I don't have trouble admitting that the tech hardly matters relative to the economics, that was obvious to me very early in my career. I have just never really cared because there has always been…

I hear you on the worry, I have the same (and probably so do most devs even).

But IMO the endless churning of code will slow down, if it has not already. Quantity does not equal quality as we know, it even erodes it. There are already consulting companies that are "vibe-code fixers".

I am also not sure it's about "elegant" code. What we might call elegant has multiple measurable axii f.ex. well-isolated effectful code layer so you can easily static-code-check it, domains and enforcement of boundaries between them, bespoke linting to enforce business processes and standing code discipline, and many others.

Re: Claude Code uses Bun written in Rust now

#607
post #411

Earlier quoted context omitted.

> why not rewrite CC in a native language? It's hell to maintain for not much gain (for a use case like this at least). As much as it's become a meme, JS and web tech in general has become extremely portable and stable. I also don't think Anthropic bought bun to make their TUI better. They could have forked it, they bought bun because it incidentally was excellent for the way agents prefer to work and they wanted to…

I thought maintenance was free with LLMs???

I don't think it's that kind of maintenance like code.you need to test cross compiling and running on different platforms. I guess js acts like how the jvm is

Re: Claude Code uses Bun written in Rust now

#608

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.

i got annoyed by this especially the memory use and non portability aspect of bun so I had claude (lol) and kiro cook up my own agent. it runs on linux, openbsd and even on omnios and esp32. it's just a personal project so there are probably rough edges, but I am using it on my clockworkpi uconsole daily now. https://github.com/mischief/clm

Re: Claude Code uses Bun written in Rust now

#609

Earlier quoted context omitted.

Is Claude Code bottlenecked by performance? I think a JS runtime is fine because the ecosystem of tools is very large and plugins are easy.

Why is ecosystem of tools and plugins a bottle neck when they literally own Claude models and as per their boss, code is so cheap that anything us just an English sentence away?

I knew this was going to be the first reply.

The answer is because you still need at least one human to develop and test any tool, integration, feature.

Re: Claude Code uses Bun written in Rust now

#610
post #257

Earlier quoted context omitted.

So Anthropic ships with unfinished version of bun. Doesn’t sound like responsible software deployment

They can ship with whatever they want as long as it works.

Given the permissions Claude Code gets on many systems they should be more professional.

They are basically testing the rust port on user machines.

Who come that since the rise of AI all principles of software development are thrown over board?

Post reply on HN