3 ms·
I would put more money on C++ seeing a resurgence contingent on C++ modules getting solid support, than Rust displacing C++ in the enterprise. C++ has a legend
by pphysch 4y ago
I would put more money on C++ seeing a resurgence contingent on C++ modules getting solid support, than Rust displacing C++ in the enterprise.
C++ has a legendary ecosystem, and many great modern language features for writing safe maintainable code, but the antiquated approach to header files makes it painful to learn and unproductive.
- cmrdporcupine 4y agoUnfortunately I think C++ modules are too little too late. It will take a decade for it to propagate fully through the C++ ecosystem, and even then it will remain fragmented in terms of build systems, packaging, coding styles/standards, etc. I'm not expecting C++ to go away, and in fact I actually like working in both C++ and Rust (though prefer Rust) so don't much care. But I don't think the addition of modules is going to lead to a resurgence in the language overall.
- pphysch 4y agoSure, it will take forever for modules to get everywhere, but you only need a few solid frameworks/libraries with module support for it to matter. And the big win IMO is just that it makes it easier to get a MVP off the ground, whether or not it is backed by module-compatible external libraries. The C++ dependency/build story is not that miserable nowadays with modern CMake, git submodules, vcpkg, etc.
- bryanlarsen 4y agoI'd take the other side of that bet.
- ReflectedImage 4y agoRust is quicker to learn, does concurrency really really well and sits in the exact same space as C++. C might survive Rust?, but I think C++ is toast.
- pjmlp 4y agoSo when is the Rust compiler being bootstrapped? Made available on CUDA by NVidia? Made available on Playstation SDK by Sony? Made available on HPC clusters and compiler toolchains by the respective research labs? There so many use cases for C++ that Rust still doesn't have a sound story as replacement.