This description of C++ is misleading at best (C++ is used for “Air Travel”?), but saying its used to “make Linux” is just wrong.

  • vzq@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    2 months ago

    A very specific subset of a very specific version of C++.

    Unless they went all in on the recent C standard.

    • deadcream@sopuli.xyz
      link
      fedilink
      arrow-up
      9
      arrow-down
      2
      ·
      2 months ago

      Linux kernel doesn’t use C++ at all.

      Though if you widen the definition of “Linux OS” beyond the kernel then it’s used in many places of course (especially KDE).

            • deadcream@sopuli.xyz
              link
              fedilink
              arrow-up
              6
              ·
              2 months ago

              Not, there is very little Rust in the kernel. It’s still WIP and there no real world Rust drivers in the mainline repo yet. It will probably change “soon”, but even then Linux will remain 99% C for the foreseeable future. You can’t just rewrite something like that in Rust.

      • vzq@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        2 months ago

        I don’t think you understood the post.

        C++ was a strict superset of C for many many years. Until very recently, all C was definitionally also C++.