▲ | muglug 5 hours ago | ||||||||||||||||
Yup — this doesn't match my experience using Rust with Claude. I've spent 2.5 years writing Rust professionally, and I'm pretty good at it. Claude will hallucinate things about Rust code because it’s a statistical model, not a static analysis tool. When it’s able to create code that compiles, the code is invariably inefficient and ugly. But if you want it to generate chunks of usable and eloquent Python from scratch, it’s pretty decent. And, FWIW, I’m not fluent in Python. | |||||||||||||||||
▲ | micahscopes 4 hours ago | parent | next [-] | ||||||||||||||||
With access to good MCP tools, I've had really good experience using claude code to write rust: https://news.ycombinator.com/item?id=44702820 | |||||||||||||||||
| |||||||||||||||||
▲ | js2 5 hours ago | parent | prev | next [-] | ||||||||||||||||
Hah... yeah, no, its Python isn't great. I'd definitely workable and better than what I see from 9/10 junior engineers, but it tends to be pretty verbose and over-engineered. My repos all have pre-commit hooks which run the linters/formatters/type-checkers. Both Claude and Gemini will sometimes write code that won't get past mypy and they'll then struggle to get it typed correct before eventually by passing the pre-commit check with `git commit -n`. I've had to add some fairly specific instructions to CLAUDE.md/GEMINI.md to get them to cut this out. Claude is better about following the rules. Gemini just flat out ignores instructions. I've also found Gemini is more likely to get stuck in a loop and give up. That said, I'm saying this after about 100 hours of experience with these LLMs. I'm sure they'll get better with their output and I'll get better with my input. | |||||||||||||||||
| |||||||||||||||||
▲ | Mockapapella 4 hours ago | parent | prev | next [-] | ||||||||||||||||
> When it’s able to create code that compiles, the code is invariably inefficient and ugly. Why not have static analysis tools on the other side of those generations that constrain how the LLM can write the code? | |||||||||||||||||
| |||||||||||||||||
▲ | tayo42 4 hours ago | parent | prev [-] | ||||||||||||||||
> Claude will hallucinate things about Rust code because it’s a statistical model, not a static analysis tool. I think that's the point of the article. In a dynamic language or a compiled language, its going to be hallucinating either way. If you vibe coding the errors are caught earlier so you can vibe code them away before it blows up at run time. | |||||||||||||||||
|