← Back to context

Comment by Levitating

2 months ago

I am still just shocked that Claude Code was written in Typescript, not C++, Rust or Python.

It also somehow messed up my alacritty config when I first used it. Who knows what other ~/.config files it modifies without warning.

I'm surprised Python is on that list. TypeScript doesn't seem like a terrible choice, as it can leverage vast ecosystems of packages, has concurrency features, a solid type system, and decent performance. C++ lacks as robust of a package ecosystem, and Python doesn't have inbuilt types, which makes it a non-starter for larger projects for me. Rust would have been a great choice for sure.

  • Python and C++ have been used for countless large projects— each one for many more than typescript. It’s all about trade-offs that take into account your tasks, available coders at the project’s commencement, environment, etc.

    • People like to put companies that are household names on pedestals, but the choices they make are mostly guided by what their people can do and which choices give them the most value for free. They mostly operate how smaller companies do but they have a bigger R&D budget to address issues like scale that the larger market has little incentive to solve.

      1 reply →

  • > I'm surprised Python is on that list.

    I mostly mentioned it because it is pre-installed on some (linux) systems. Though of course if you're trying to obfuscate the sourcecode you need to bundle an interpreter with the code anyway.

    But it has historically been used for big programs, and there are well established methods for bundling python programs into executables.

Anthropic acquired Bun. Clearly, Bun is not a runtime for C++, Rust, or Python. For an engineering project, strongly typed TypeScript was basically the only possible choice for them.

  • I am not following your logic. Anthropic acquired Bun and so all of their end-user software should use it?

    Or am I missing sarcasm?

    • Is Anthropic's acquisition of Bun alone still not enough to infer their tech stack? What more obvious signals would be needed?

      Also, honestly, given the speed constraints of large models, it makes almost no difference what language an agent is written in. The small performance differences between programming languages do not even begin to matter compared with network latency, let alone the speed at which a large model streams tokens.