Google talk at REBASE'26: Agentic Coding is not going to save C++
So the REBASE'26 conference happened recently, and besides the whole thing of what Carbon has achieved or never will, there are talks like this one from Google folks, regarding what they are doing with their C++.
The talk is all about the recent ongoing migration discussed on Google security blog, and other related efforts.
74
Upvotes
43
u/tartaruga232 MSVC user, r/cpp_modules 4d ago
One of their slides at 2:36 mentions "C/C++ security bugs". I'm not yet sure if I should continue listening.
26
u/IceMichaelStorm 4d ago
Ragebait title. If the conf really says it like this, THEY do the ragebait.
Or it’s just a trash conference or at least trash talk
65
u/Kronikarz 4d ago
Talks like this make me realize I got out of the industry at the exact right time
6
u/amoskovsky 2d ago
Ahaha, RIP Carbon!
56
u/Anxious-Resist8344 4d ago
It seems there are not many ways these days to stay relevant in "big company" but to create power points talking about memory safety, C++ and Rust :)
What's wrong with "let's fix all the vulnerabilities coming in until there's nothing else to fix"?
In the Agentic Coding Era languages don't matter much, but since humans will always matter, language familiarity is key!
8
u/TerribleFault7929 3d ago
“We'll see,” said the Chinese farmer.
21
u/xp30000 3d ago
Putting aside Rust evangelism (seems it is more fun evangelizing Rust than reading Rust code) why stop at Rust, it's an awkward middle ground. Rust forces the developer (or the AI agent) to fight the borrow checker dealing with lifetimes, Pin, Arc<Mutex<T>>, explicit memory layout to achieve zero-cost abstractions without a garbage collector. GC + formal verification is the way forward with Agents.
For Rust, modern C++ fixes many memory issues that are from C days, is better at compile time metaprogramming, faster to iterate (yup, only Rust can do that LOL). What is left is a very specific niche of system programming and the inability to give talks that you rewrote everything in Rust.
16
u/jeffmetal 4d ago
I'm sure when profiles land in 3 Years and they address only some of the memory safety issues and none of the lifetime issues it will be good enough for companies to not want to port to rust.
24
u/notthatsocrates 3d ago
Rust evangelism, ignore and carry on.
15
u/UndefinedDefined 3d ago
The reality is that without explicit lifetime annotations C++ will never get safer and companies such as Google would just abandon its use. I mean it makes sense, because Google uses maybe only two containers in the standard library - std::string and std::vector - everything else is in Abseil, because what C++ offers is just plain bad.
5
u/James20k P2005R0 3d ago
There's a few things that are really interesting that I think are fun to pick up on:
So we have:
Its also fascinating to see how ramshackle security is at google. Instead of the random-internal-patch security vulnerability being discovered as part of a dedicated security cleanup effort (and why was that patch never contributed back?), it was caught by one of the classic get-noticed lets-ai-stuff projects. Given that it was catchable, they apparently don't use tooling to do security work on old legacy dependencies like this
Don't get me wrong, I think Rust is cool and concrete memory safety guarantees are important, but if companies like Google put this engineering effort on fuzzing/testing the original code they'd likely have gotten a huge amount of the benefit. Now they have to deal with and maintain FFI bindings (which are really nontrivial if they involve pointers) for a library that's likely to see minimal security work on it again, until the next google engineer wants to give a talk
1
u/JohnDuffy78 3d ago
wake me up when they start messing with https://github.com/protocolbuffers/protobuf
1
u/AccordingWarthog 3d ago edited 3d ago
LLMs being good at exploiting memory safety bugs in C++ code is, at first glance, a strong reason to use a more memory safe language such as Rust. But presumably we shouldn't care about all C++ code, only that which we'd likely deploy. And nowadays all production code gets (or at least should get) reviewed by an LLM.
So what if we narrow our focus to just C++ code that passes review by those same powerful LLMs that can exploit memory bugs? Can't we consider such code to be an approximately "memory-safe" subset of C++? I wonder how such LLM-reviewed C++ stacks up against LLM-reviewed Rust in terms of bug density (memory or otherwise). Are LLMs better/faster at reviewing Rust code than C++ code, like humans are (according to this talk)?
0
u/13steinj 3d ago
Yeah, I'm not surprised, for better or worse. Top models (with company zero data retention agreements) still fail the tests I give fairly horrendously.
0
u/reini_urban 3d ago
So they rewrote their C++ to Rust in Android. But then they complain about safeties. Why didn't they rewrite it to an actually safe language then?
-3
u/Street_Struggle_598 3d ago
We are going to have agent created languages soonish anyways
-16
u/ezoe 3d ago
C++ was headed to a completely wrong direction. It prioritize metaprogramming, static reflection and silly lightweight pseudo concept expressed as nothing but an extension of template metaprogramming.
These features were invented to reduce the boiler plate code written by human hand. Because humans are bad at writing the boiler plate code.
But with AI coding tool, the cost of writing boiler plate code is now free. The problems C++ tried to solve for the past 2 decades became irrelevant now.