Will there be performance and security improvements?

  • Haugerud
    link
    fedilink
    arrow-up
    13
    arrow-down
    1
    ·
    1 year ago

    You can use compile time polymorphism in C++ without any runtime performance cost.

    • PuppyOSAndCoffee@lemmy.ml
      link
      fedilink
      arrow-up
      2
      arrow-down
      2
      ·
      1 year ago

      Compile time has got to be part of the convo esp when it comes to the kernel. The Linux kernel is one of the few bits where end-users are actively encouraged to compile from source. It is a feature!

      Adding C++ compilitis is pain for what gain, from a kernel pov.

      I am not a big fan of c++ overall however that is because other languages have emerged that are sweeter than C that gate some of the people issues with C++.

      Anyone who has ever had a thing that was like a thing but not exactly the thing, in C, knows C ain’t great at that.

      • cmeerw@programming.dev
        link
        fedilink
        arrow-up
        8
        ·
        1 year ago

        The description says:

        In this video, we’ll do a deep dive on what C++ Polymorphism is, what “virtual” does under the hood, and ultimately why it is SUCH a performance hit compared to languages like C and Rust.

        This is not about compile-time polymorphism.