Not a C++ dev, but people should just let C++ be the future of C++. It's moot at this point. It's doing a disservice to both C++ and these attempts at "replacement" or "successor" languages. Circle, Carbon, Cpp2/CppFront et al. I know it's tempting to try and make it more palatable to the C++ devs by implying that these languages are natural evolutionary successors of C++, but they clearly are not. They are new languages. If they can't stand on their own, they have no business being in the business (pun intended).
Sorry but the panic about safety is a legitimate concern. Many large existing codebases are in domains with increasing demands that are unlikely to be satisfied without large safety improvements. C++ is at a risk of becoming a niche language for amateurs in future if safety stays optional.
OK, but that problem is not solved by designing a new language that is NOT C++ and adding an insane amount of auto generated code for interop etc (see carbon). Improvements should be made directly to C++. Having a new language still puts C++ at the risk of being relegated to legacy code.
The reason why people are making successor languages in the first place is specifically because "Oh, just fix C++" is not an option without severely breaking compatibility guarantees, and even old existing code, and this is someone the committee is unwilling to do.
This goes beyond just "allowing an ABI break to fix std::regex", which is already not acceptable to people. If you want to get proper safety guarantees, then a lot of old C++ just won't compile anymore since it's build with features whose safety is more or less impossible to verify.
Hence we get successor languages: We want old code to compile, and we want safety. You can't have both without some sort of 'successor' model.
The Video of Circle posted and Herb's proposal actually show quite clearly that we CAN have both without inventing a whole new language. But yes, a bit more willingness from the committee to change things is probably required. I see no reason why we can't have "profiles" or something similar (like these feature flags in circle) which make it possible to improve without breaking anything. To me that is preferable over something like carbon which is a new language with C++ bindings disguised as the savior of C++, i find that really dishonest as it makes no attempt at actually improving C++ but instead is a typical google style power grab. Fortunately it‘s nothing to worry about as it will probably be abandoned just like every other google project.
The committee is fully against forks or flags or featuresets like this in any form that might cause two divergent C++ languages to appear. This suggestion has been brought up for many arguments and shot down explicitly and repeatedly
It‘s the only feasible way forward, i‘m sure they will eventually come to this conclusion. It‘s wrong to think that it would be two divergent C++, other languages did this, for example JS introducing strict mode, nobody would claim it led to divergence. You compile new code with the new switches and old code without them and gradually modernize. There is no issue at all other than laziness. Having opt in features doesn‘t make it two languages, it‘s still one language with options, it‘s literally just a semantic nonsense argument. There are a million compiler switches already that many times even ignore the standard or change things the standard doesn‘t even specify.
I don't disagree with you necessarily, but there's no committee proposal for anything like this, and changing the mind of the bulk of the committee is extremely difficult. That's the core reason as to why we have successor languages, its extremely difficult to fix C++ as-is for non technical reasons
i don't really follow the day to day opinions of committee members closely, so i believe what you say, but i'm arguing from a practical standpoint: if that's the reason successor languages crop up and might even gain traction, then that will also strongarm some changes in the committee's opinions unless they want to completely give up on C++.
33
u/peripateticman2023 Sep 09 '23
Not a C++ dev, but people should just let C++ be the future of C++. It's moot at this point. It's doing a disservice to both C++ and these attempts at "replacement" or "successor" languages. Circle, Carbon, Cpp2/CppFront et al. I know it's tempting to try and make it more palatable to the C++ devs by implying that these languages are natural evolutionary successors of C++, but they clearly are not. They are new languages. If they can't stand on their own, they have no business being in the business (pun intended).
I'm just tired of this whole nonsensical parade.