|
|
|
|
|
by adev_
25 days ago
|
|
> I find Claude just terrible at writing C++ I dont use Claude. I use DeepSeek and it is very capable. I have found Gemini and Mistral4 equally capable. One thing I realised however is that Agents adapts to the existing code style: - Give them a modern, polish C++ codebase and they will produce clean modern C++
- Give them a legacy codebase and they will produce a festival of raw pointer spaghetti and loose themselves. It seems that evem for A.I there is 10^6 variations of C++. - Force them to use span and string_view and 90% of boundaries problem and lifetime go away. It seems to ease their reasoning. - A single line in the AGENTS.md is enough for them to properly use fully sanitizers in their test.
- They are pretty good at leveraging defensive programming if asked to. Few negative points:
- They are still pretty bad at reasoning about memory hierarchy and memory allocation. But thats hardly surprising, very few codebase do it properly.
- You need to explicitly list your dependencies and build system or it's a festival of reimplementation. I have beem pretty successful with Nix so far. |
|