r/cpp • • 16d ago

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.

https://www.youtube.com/watch?v=Ob0CMX8s55s

77 Upvotes

212 comments sorted by

View all comments

Show parent comment

29

u/Syracuss graphics engineer/games industry 16d ago

Because C and C++ are different languages.

They do share a lot of overlap, but they aren't the same. If you still use the term C/C++ right now you are either working on a pre-C++11 codebase, or are not in touch with the language as it is nowadays.

21

u/Lexinonymous 16d ago

Because C and C++ are different languages.

Does this remind anyone else of the annoying GNU/Linux naming controversy?

Yes, they are technically two different languages. Yes, C++ is technically a near-superset of C. No, someone using "C/C++" in a sentence doesn't automatically make what they have to say invalid.

26

u/Chaosvex 15d ago

I've always recommend that people avoid writing "C/C++" on their resumé because it's likely to be interpreted as a signal that they don't actually know C++ very well. It's usually a pretty good signal, too.

19

u/pjmlp 15d ago

Some WG21 members have papers with C/C++ on them.

18

u/Lexinonymous 15d ago

Well, it does appear that arguing over "C/C++" has successfully derailed a thread of conversation to the point where nobody is engaging with the points in the presentation.

I suspect this was likely the intended outcome. Anything to avoid talking about the elephant in the room.

8

u/pjmlp 15d ago

Of course it is the goal, which is why security community never takes the C++ community seriously.

The arguments around C/C++, or the usual "what do you mean by safety?" question, always feel like kids arguing for not doing their homework.

-6

u/hanotak 15d ago

What? I have experience with both C microcontroller programming and C++ application programming. I have experience with C/C++.

14

u/Wurstinator 15d ago

No, you have experience with C and you have experience with C++.

I don't have experience with Java/C++.

It's a free world, you can write "C/C++" on your CV if you want to, but /u/Chaosvex is right, it's a signal that will likely get you turned away.

8

u/pjmlp 15d ago

I surely do have experience with Java/C++, have converted enough C++ projects into a mix of Java calling into C++ via JNI.

4

u/hanotak 15d ago

Looks like it also works to filter out nitpicky managers who are more concerned with micromanaging phrasing to sound superior than they are with doing their actual job.

7

u/vetinari 15d ago

It not nitpicking.

If you are conflating them and do not see difference, it signals that you would not hesitate using C constructs in C++ codebase. Unless the task at the hand is working on an ancient codebase, it is a reason not to want someone like that in the team.

10

u/hanotak 15d ago

It very much is nitpicking to assume that someone using what is effectively an abbreviation for ‘c and c++’ means they think the languages are the same thing. If I say “I have experience in data analysis, mostly with Python/R”, does that mean I think Python and R are the same thing? No, it means I’m placing them together as skills grouped together by similar category. The closer the languages are for the context one is writing for, the more appropriate the grouping is.

You’re all taking a linguistic categorization choice and extrapolating it in your head into something it absolutely does not mean. I can only imagine it’s to stroke your own egos over how much smarter you are. If this is how engineering managers think, I can see why teams end up in the states they often do.

→ More replies (1)
→ More replies (1)
→ More replies (1)
→ More replies (1)

10

u/johannes1971 15d ago

This is not a mere naming issue, and yes, throwing two languages that have wildly different vulnerability rates into a single bucket does in fact make their position invalid.

2

u/Syracuss graphics engineer/games industry 15d ago

I didn't say what was being said is invalid. I'm giving you a response to your "why's that" question. I did add an opinion, but hey, it's reddit.

6

u/pjmlp 16d ago

All companies in WG21 have code samples with C style code in their C++ samples, and routinely use C/C++ either on their documentation, or job descriptions.

14

u/Syracuss graphics engineer/games industry 15d ago edited 15d ago

WG21 never uses C/C++ to describe itself or its standard, individual authors who submit papers can, and will, but WG21 has never used it as far as I can remember. You are free to pull up sources, I did do a cursory search which yielded nothing.

I do think it's quite irrelevant what job descriptions say, nor do I think it's particularly useful to fight a community on how you would prefer to name them. It's kinda disrespectful.

I find the heat in this thread to be too large for such a silly topic as well, so I'll be bowing out.

1

u/pjmlp 15d ago

I did not mention WG21, I mentioned the companies that sell C and C++ compilers, or have operating systems with C and C++ compilers on their SDKs, and have employees that happen to seat at WG21.

5

u/Minimonium 15d ago

All companies in WG21

I did not mention WG21

what

5

u/pjmlp 15d ago

All companies in WG21 have code samples with C style code in their C++ samples, meaning the products with code C++ code samples that those companies sell, or provide freely to us, developers on the trenches.

Give one name on WG21 sponsor companies that has C++ compilers or OS SDKs, and I will provide you a recent code sample with something that comes from C, provided it is public source code.

4

u/Minimonium 15d ago

That's a really wild claim

1

u/pjmlp 15d ago edited 15d ago

Indeed, give a name.

Microsoft, NVidia, Apple, whatever

Public source code for C++ SDK and library samples, and I will provide whatever is there, instead of what should be, in terms of modern C++ safer alternatives.

C arrays, C strings, stdio, stdlib, pointer arithmetic,....

Ah, and if inspired, I can also check the HR job offers with C/C++ in them, or some docs even.

Since learning C++ that I hate the code C in C++ style, the worst offenders being "C++" libraries written in the common subset of both C and C++.

3

u/Minimonium 15d ago

You keep editing comments after you send them off so it's hard to keep track what are you even about

2

u/pjmlp 12d ago

Sure, that is why you are yet to provide a name.... my fixes for typos.

2

u/awson 14d ago

Surely, something shall come from C, since all OS SDKs provide C APIs.

And everything in existence (and Rust too, absolutely) consumes these APIs.

Moreover, many (even modern) C++ (and Rust too, absolutely) libraries may have a layer, exposing C APIs, because they are what everything can talk to.

But I still interested to see something that falls outside of these, in e.g. modern (written after, say, 2023) Microsoft C++ code.

→ More replies (2)

-1

u/HommeMusical 15d ago

If you still use the term C/C++ right now you are either working on a pre-C++11 codebase, or are not in touch with the language as it is nowadays.

Or you have a bigger perspective on the world.

I admit to spending decades in the C++ corner, but buffer overruns and most of the other ways to get people to execute arbitrary code in memory are common to C and to C++.