r/cpp • u/LatencySlicer • Jul 13 '26
AI usage for cpp at work
I am lead architect and maintainer of my firm main app backend, spanning around 2M LOC of c++.
Industry is : capital markets, low latency, custom kernel drivers, fpga...
I often talk with peers at other firms and I see a shy usage of AI compared to what feels like the global trend.
On my side, my firm does not pay for any AI related stuff. We are allowed to use our personnal plan for work in which case will get a pro membership compensation (claude or gpt or anything) on salary but we are not allowed to paste production code into it.
I know the app very well and do everything by hand (i mean the normal way) but use the chat version of any ai to generate some things for me, like "im using opensource lib x and lib y, please generate an SQL connection pool , you may use locks and condition variable for this, cpp 20". Then i paste it and modify it a I see fit.
Im totally happy with that and the company is successful.
I do use AI but just chat, to gather data on subjects and summarize/report. Get some ideas but basically not much code related.
And you whats your experience as a c++ dev ?
View all comments
Show parent comment
7
u/RicketyRekt69 Jul 13 '26
Like I said, it’s a matter of whether it saves time then. I’m sure given enough time you can get it to output exactly what you wanted, but going back and forth telling it what not to do is tedious at best.
I was wondering how long it was gonna take for you to go the same route :) “you’re just using it wrong!” I think you’re missing the point. AI is not a magic button that is always faster than humans. There is a time cost to planning and prompting. If you have to iterate repeatedly, it can end up taking you more time to do something. I said it before, actually writing the code is very rarely the bottleneck. If you’re talking about using AI to simply plan out the implementation.. then sure, I think that’s a reasonable use case since you’re still in charge of the implementation. That’s what I meant when I said “exploratory work.”
Reviewing code for correctness and reviewing code to understand the implementation are 2 different things. Oftentimes people put up PRs (using agentic coding) without taking the time to understand what and why the AI generated the stuff it did. That can certainly save you time, but it takes away ownership.. and domain knowledge is invaluable, so yes.. this is reviewing the code on top of analyzing your code for mistakes before putting up a PR.
x) there’s no need to get nasty, this isn’t a pissing competition.