1 karma · joined Dec 1, 2026 (2d ago) · 2 submissions
comment 1d ago · link · parent
I've had occasional issues with building Rust packages, but it's been rare and for specific reasons; Arduino code that was clearly marked as only having experimental LLVM support, a time when I messed up my system paths and broke GCC in general, etc. I wish Rust's Embassy had examples that didn't rely on being in its git repo, but I was able to migrate a project out with two hours of work.
Compare that with trying to compile C++ code and the difference in night and day. The only non-library C++ projects I've had build without much issue are SDL2/3 examples and the occasional open-source game like Endless Sky. Everything else, especially if it relies on a semi-proprietary library? A day or two of fighting with build systems with occasional fights after that.
I had one professional project I was working on where someone buried an '--as-needed' flag in a CMake file that got installed in custom SDK code, so nobody could figure out how to link any sort of .so into the project. Of course, the idiots who made that solution also had Eclipse projects using CMake to generate new Eclipse projects filled with autogenerated code. The fact that the C++ ecosystem even allows those sorts of shenanigans is its own level of red flag.
comment 2d ago · link · parent
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.