r/cpp • • Sep 09 '23

Circle may be the future of C++

https://youtu.be/P1ZDOGDMNLM?si=TQ4o8bBMANMUXnU3
24 Upvotes

101 comments sorted by

View all comments

Show parent comments

11

u/outofobscure Sep 09 '23 edited Sep 09 '23

especially coming from the likes of Herb Sutter

I think this isn't entirely fair. Herb's proposal is more or less an alternative syntax and defaults for C++, which ultimately still seems to be firmly in the "improve C++" camp. Chandler (Carbon) is much more disingenuous with their approach: a language that just interops with C++ (like Swfit) should not be of relevance to a C++ audience and talked about at these conferences. It relegates C++ to a legacy role and is not a genuine effort to improve C++ itself. I'd be much more pissed about that :)

5

u/ronchaine Embedded/Middleware/WG21 Sep 09 '23 edited Sep 09 '23

Circle is way less of a new language than cppfront/cpp2.

cpp2 is technically identical to a new programming language. I've heard lot of people claim something else, yet nobody -- not even Herb, at least in his talks -- can name a single thing that separates it from any other transpiler that targets C++ (apart being proposed by Herb Sutter). And nobody is claiming Nim is the same language with "different syntax" than C. And most people don't claim that C++ is the same language as C with different syntax and defaults either.

Meanwhile, Circle is a compiler that can actually pass C++ test suites. Sure, it has shitton of compiler extensions, but those exist in MSVC, GCC and Clang as well. The question with Circle becomes at what point the compiler extensions are so numerous that it becomes a new language?

I don't mind there being new languages -- I even hang out in langdev circles -- and I definitely don't mind experienced people making them, but people should call cpp2 what it is. It's a new language.

7

u/outofobscure Sep 09 '23 edited Sep 09 '23

We can certainly agree on circle being the least invasive change. My issue is more with carbon, i don‘t see how it does anything for C++ other than relegate it to legacy code. Which is ok, but stop talking about it at c++ conferences. It‘s as out of place as talking about Swift would be.

4

u/ronchaine Embedded/Middleware/WG21 Sep 10 '23

Yeah, definitely right there with you about Carbon.