• lemmybeyourfwend@lemmy.org
      link
      fedilink
      arrow-up
      1
      ·
      56 minutes ago

      Difficult to erase entire products and projects built around C++ from one day to another. Yes, Rust is awesome and so is C++, they both have a place in this world 🤗

    • thingsiplay@lemmy.ml
      link
      fedilink
      arrow-up
      6
      ·
      3 days ago

      There are more experts and code in C++ than Rust. The entire world runs in C and C++. So working on those languages and expanding or refining them makes sense. Even if Rust takes over the world and is more used than C++ in the future (if that happens ever), it would still make to maintain and refine the language. Not everyone likes or wants to use Rust.

    • BeigeAgenda@lemmy.ca
      link
      fedilink
      arrow-up
      5
      ·
      3 days ago

      Even if we include LLMs porting code, the sheer amount of c++ code makes it not worth porting, and some legacy code just need occasional updates, especially embedded.

      I expect that even if porting becomes free, perfect and instantaneous, there will be plenty old c/c++ code around for decades.

      • HaraldvonBlauzahn@feddit.orgOP
        link
        fedilink
        arrow-up
        4
        ·
        edit-2
        3 days ago

        Even if we include LLMs porting code, the sheer amount of c++ code makes it not worth porting, and some legacy code just need occasional updates, especially embedded.

        It is more effective not to port old working code, which would cost a lot of resources, but to write new code in Rust, where this is possible. There have been a few studies on this, even from companies like Google. The thing is that new code is more likely to have bugs than working old code. So, spending effort on new code gives more safety for a given amount of effort and resources.

        On the other hand, it absolutely makes sense to write completely new projects in Rust, if the needed library support is there, since Rust tends to be more productive.

        Also, in embedded systems, space systems, systems with certification requirements and so on, Rust is making inroads. Though these are rather conservative areas where tools are not changed quickly.