| ▲ | arrsingh 6 hours ago | |||||||||||||||||||||||||||||||
I don't understand why claude code (and all CLI apps) isn't written in Rust. I started building CLI agents in Go and then moved to Typescript and finally settled on Rust and it was amazing! I even made it into an open source runtime - https://agent-air.ai. Maybe I'm just a backend engineer so Rust appeals to me. What am I missing? | ||||||||||||||||||||||||||||||||
| ▲ | armanj 6 hours ago | parent | next [-] | |||||||||||||||||||||||||||||||
claude code started as an experimental project by boris cherny. when you’re experimenting, you naturally use the language you’re most comfortable with. as the project grew, more people got involved and it evolved from there. codex, on the other hand, was built from the start specifically to compete with claude code. they chose rust early on because they knew it was going to be big. | ||||||||||||||||||||||||||||||||
| ▲ | Verdex 3 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||
While the LLM rust experiments I've been running make good use of ADTs, it seems to have trouble understanding lifetimes and when it should be rc/arc-ing. Perhaps these issues have known solutions? But so far the LLM just clones everything. So I'm not convinced just using rust for a tool built by an LLM is going to lead to the outcome that you're hoping for. [Also just in general abstractions in rust feel needlessly complicated by needing to know the size of everything. I've gotten so much milage by just writing what I need without abstraction and then hoping you don't have to do it twice. For something (read: claude code et al) that is kind of new to everyone, I'm not sure that rust is the best target language even when you take the LLM generated nature of the beast out of the equation.] | ||||||||||||||||||||||||||||||||
| ▲ | bilekas 6 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||
Think about your question, depending on the tool, Rust might not be needed, is high level memory performance and safety needed in a coding agent ? Probably not. It's high speed iteration of release ? Might be needed, Interpreted or JIT compiled ? might be needed. Without knowing all the requirements its just your workspace preference making your decision and not objectively the right tool for the job. | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||
| ▲ | Lucasoato 6 hours ago | parent | prev [-] | |||||||||||||||||||||||||||||||
[dead] | ||||||||||||||||||||||||||||||||