by YankeeYahoo · 2d ago · 0 comments
It's always had a dependence on C that's caused tension between backwards compatibility and ease of use. Pre-C++11 file streams required a char* filename and .c_str() all over the place, so you had to think about C++ and C strings all the time. C++ also predated things like UTF-8, so things like EBCDIC support have had to be considered; apparently dropping EBCDIC for C++14 caused a bit of drama from banks.
C++ bridges between assembly and higher level languages. Using it to interface with Python, Rust, or Java requires either using SWIG or a similar tool, or using lots of 'extern "C"' in your C++ code. Writing C++ for a microcontroller with QT on a TFT display requires asset packing during the build process that's nothing like making a database. Then there's the constant issues of manual memory management vs STL containers that has only gotten more apparent with newer languages.
C++11 really overhauled the language. That helped a lot with cleaning up rough edges but the ISO committee in charge doesn't seem to know what it wants. Trailing return types (auto x() -> int) were just an odd feature to add in my opinion. There are also hordes of compiler specific extensions that haven't been standardized which don't always play well with newer standard features (GCC target_clones with templates, for example).
People have made comments about std::embed and #embed and the drama that went into getting it through the ISO committees and into C23 and C++26. I'd recommend reading some of the posts of the original author who made it happen for more of the history. Basically though, there was an absurd level of bureaucracy to get through to make anything happen. https://thephd.dev/full-circle-embed
Lastly, I don't think there's ever been a cohesive ecosystem around C++. Linux vs. Windows vs. Embedded vs. SunOS vs. IBM Mainframes vs. Web development vs. Military. Until the ecosystem as a whole decides they want things to get better, I don't think we'll see much traction on tools better than CMake and the like.
No comments yet.