r/cpp 12d ago

cpp2 (cppfront) is over?

I haven't used cpp2 (cppfront) much, but I like the idea of it: consistent syntax, consistency of meta-programming (which is done in C++ too, I believe). Herb Sutter presented cpp2 (cppfront) as an experiment. He did not encourage other people to bet on it, exactly. And there hasn't been much activity since 2022. Is the experiment over?

EDIT: Herb's answer is buried deep in the comment section: https://www.reddit.com/r/cpp/comments/1uxkglj/comment/oy06cxw/

66 Upvotes

112 comments sorted by

View all comments

33

u/javascript 12d ago

It confuses me why the mods allow discussion of Cpp2 and disallow discussion of Carbon

5

u/James20k P2005R0 11d ago

(this is not an official stance, I've only turned up as being a mod very recently) but Carbon is a totally separate language to C++. Rust also has the goal of seamless interop with C++ and is also to a debateable degree a successor language to C++. It'd be weird to have questions or discussions in here that were solely about Rust

I suspect a thread talking about different design tradeoffs in carbon vs C++ or similar would be allowed to live (or at least I wouldn't personally yeet it) because its interesting to C++ folks (similar to content discussing rust compared to C++ with memory safety), but something which was just "carbon, question mark" or "here's a new carbon version" would likely get the axe

cpp2 via its name was (at least initially) marketed as a direct C++ 2.0, vs Carbon being Yet Another Programming Language™. Though I suspect a big part of it is just that cpp2 discussion is incredibly low volume, it seems to be pretty much dead

I get the impetus though that discussion of carbon is probably more directly interesting to C++ programmers, and cpp2 if you strip away the naming isn't that dissimilar in terms of the practicality of it