Announcement

Collapse
No announcement yet.

More Rust Code Readied For Linux 6.3 - Closer To Having Rust Drivers Upstreamed

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #11
    Originally posted by mmstick View Post

    Rust has been the most loved programming language in each annual StackOverflow survey for the last seven years.
    Being loved and being actually used are two different things. Most codebases still rely on C++ and it will take time to get things the other way.

    EDIT:

    Originally posted by Weasel​
    Sounds to me like he's living in a big delusion like all "Rustaceans".
    Nevermind, yet another troll who can't contain his ego.
    Last edited by darkbasic; 13 February 2023, 10:53 AM.
    ## VGA ##
    AMD: X1950XTX, HD3870, HD5870
    Intel: GMA45, HD3000 (Core i5 2500K)

    Comment


    • #12
      Originally posted by jeisom View Post
      Are there any other drivers currently being written in rust other than the Apple Silicon gpu driver yet? I know it isn't upstreamed yet, but it is currently a functional driver written in rust.
      As a proof-of-concept, two fully functional drivers were written. One is a NVME driver, the other a p9 filesystem driver. I think they're in the main "Rust for Linux" tree, but otherwise they shouldn't be too hard to find with google.

      The NVME driver is remarkable for being pretty much as fast as the C version without much attention being paid to optimization at all, and the p9 driver is interesting because it uses the async/await syntax for asynchronous operations.

      The purpose of both of these was to be a proof of concept though. It's uncertain if they will ever be upstreamed, as they duplicate existing functionality.

      Comment


      • #13
        Originally posted by uid313 View Post
        the father behind $FOO says that $FOO has unfairly got a bad reputation
        Don't you see the big bias red flag ?

        modern C++ is much more safe and secure than it used to be back in the days and that they're working on improving C++ to make it even more safe and secure
        * "Modern C++" means something different for everybody, and is very often not an option, unless you're willing to RewriteItInModernC++ everything.
        * Most C++ improvements come with big caveats, like subtle gotchas or huge amount of work to set up. Rust gives higher assurances for much less work.
        * C++ has some fundamental issues that prevent it from being as safe and improving as quickly as Rust. There will always be a gap.

        Comment


        • #14
          Originally posted by StarterX4 View Post
          Maybe now time for Go to get upstreamed as well?
          It took more than 30 years for them to introduce another programming language into the kernel*. Linus was always against doing that and only the appearance of Rust changed this.
          So I'd be very surprised if we see any new language entering the Linux kernel in the next 10 years.

          * Special cases like perl for scripts or assembler set aside.

          Comment


          • #15
            Originally posted by uid313 View Post
            Bjarne Stroustrup the father behind C++ says that C++ has unfairly got a bad reputation and claims that modern C++ is much more safe and secure than it used to be back in the days and that they're working on improving C++ to make it even more safe and secure.
            Well, reputation is always a result of the past, so what was he expecting?

            Comment


            • #16
              Originally posted by uid313 View Post
              Bjarne Stroustrup the father behind C++ says that C++ has unfairly got a bad reputation and claims that modern C++ is much more safe and secure than it used to be back in the days and that they're working on improving C++ to make it even more safe and secure.
              Improving safety is always a good thing and should be encouraged. However, to be useful for the huge existing code base, the language itself will need to evolve to first deprecate and then eliminate any existing unsafe features and practices (i.e. force people to step up and move forward). There is likely to be a colossal push-back from the community if the language does not allow them the ability to continue to use unsafe code if they want (rust has their unsafe block).

              Comment


              • #17
                Originally posted by StarterX4 View Post
                Maybe now time for Go to get upstreamed as well?
                A garbage collected language is pretty much dead on arrival for low-level programming such as the Linux kernel.

                Comment


                • #18
                  “There are two kinds of languages: the ones people complain about and the ones nobody uses.”

                  Comment


                  • #19
                    Originally posted by Nth_man View Post
                    “There are two kinds of languages: the ones people complain about and the ones nobody uses.”
                    Which one is Rust?

                    Comment


                    • #20
                      Originally posted by uid313 View Post
                      Bjarne Stroustrup the father behind C++ says that C++ has unfairly got a bad reputation and claims that modern C++ is much more safe and secure than it used to be back in the days and that they're working on improving C++ to make it even more safe and secure.
                      Of course he has to say that. You think he would trash-talk his own product???

                      Comment

                      Working...
                      X