Remix.run Logo
GuB-42 a day ago

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?

jeremyjh a day ago | parent | next [-]

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.

59nadir a day ago | parent [-]

Well, yeah, it's just good marketing and Bun ultimately doesn't matter anyway, not to the wider ecosystem and especially not to Anthropic. The only purpose Bun had for Anthropic was as a way of getting attention, so that's what they used it for.

tbrockman 20 hours ago | parent | prev | next [-]

In isolation, yes, that does seem like it would have been the better decision for Claude Code, but it also would have severely diminished the value of their Bun/oven.sh acquisition.

Claude Code isn't the only user of Bun (it's probably not even the only user of it internally at Anthropic), and this way they get to keep the Javascript runtime (and other tooling) that their coding models may one day, if not already, prefer to use when given the opportunity. For those kind of apps, you'll probably also eventually find that--what do you know!--Anthropic also has their own cloud offering (instead of Bun being the one to build one) that specializes in running and managing those applications for you. Even if all they get is a community of developers that choose to use Bun over other options, that gives them power and seats at tables they wouldn't have if they just rewrote Claude Code in Rust.

That'd be my best guess, anyhow.

ozozozd 14 hours ago | parent [-]

So they had to rewrite Bun instead of Claud Code because they “already had bought Bun.”

This thread is filled with non-sequiturs.

aurareturn 20 hours ago | parent | prev [-]

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.

snek_case 14 hours ago | parent | next [-]

People widely report very high memory and CPU usage.

Not all of the memory usage is the fault of Bun/JS. Some of it is likely memory leaks (holding on to data it shouldn't). However, some of the blame does go to using JS. In Rust you can tightly pack your data if you want to, but in JS you can't have nested structs for example. Every object referencing another object is two separate chunks of memory, each with a header, and a pointer from one object to the other. GCs also use more memory. The overhead adds up.

Building a CLI program in JS is a bad choice, and nobody should be defending this decision. Especially since Claude Code is very much able to write Rust code, and they've shown it can port code. Just port Claude Code to Rust directly.

thewhitetulip 16 hours ago | parent | prev | next [-]

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?

aurareturn 15 hours ago | parent [-]

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.

thewhitetulip 14 hours ago | parent [-]

Why? Use agent bruh. Even the bun rewrite post said that agents do writing testing everything!!!

Unless AI overlords lied and we do need humans

aurareturn 14 hours ago | parent [-]

They had a human oversee the bun rewrite, didn't they?

thewhitetulip 13 hours ago | parent [-]

that's the hypocrisy I was pointing out. Lol

For their work they extensively test using humans with deep expertise

But while marketing they say just vibe code bruh

And here they can't even rewrite CC in rust? Why not! Use 1000000 agents!! Write it in platform specific binary! SAAS is dead, that's what he claimed. So what's stopping him from writing the harness in Rust or C than ReactJS?

aurareturn 12 hours ago | parent [-]

What hypocrisy? Anthropic never said you don't need a human anymore.

thewhitetulip 12 hours ago | parent [-]

I think we are not living in the same universe if you claim this. And I can't speak with someone who doesn't live in the same universe

aurareturn 12 hours ago | parent [-]

Show me where Anthropic claims you don't need any humans anymore to build working, production ready software.

thewhitetulip 11 hours ago | parent [-]

> The "General Labor Substitute": He rejects the idea that his employment forecasts are "doom marketing". Instead, he asserts that AI will act as a general substitute for human labor, noting that most software engineering could be entirely automated within 1 to 2 years

When someone says all Software engg could be automated within 1yr they don't mean 'oh use our agents and keep human in loop'

They mean 'AI superior than humans fire all humans and all SWEs will be jobless'

I am not going to reply to you going forwards as I can't speak with someone who lives in a different universe

simonw 7 hours ago | parent | next [-]

Have you watched the video where that was said, as opposed to just reading interpretations of it from people with their own assumptions?

https://youtu.be/02YLwsCKUww?is=UsJrcLRgdSUd38Jt

Here's a transcript: https://gist.github.com/simonw/0050b4ce40439b97598d4ffdb273d...

thewhitetulip 4 hours ago | parent [-]

I summarised the transcript using LLM just like our AI overlords intended.

aurareturn 10 hours ago | parent | prev [-]

News flash: most of software engineering is already automated. When was the last time you wrote code?

They did not claim there is no human involved.

8 hours ago | parent [-]
[deleted]
kingds 12 hours ago | parent | prev [-]

it does seem to be very much bottlenecked by performance, yes. very slow to start up, for example.