Hacker News new | ask | show | jobs
by aurareturn 12 days ago
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.

3 comments

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.

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.

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

They had a human oversee the bun rewrite, didn't they?
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?

What hypocrisy? Anthropic never said you don't need a human anymore.
it does seem to be very much bottlenecked by performance, yes. very slow to start up, for example.