Announcement

Collapse
No announcement yet.

Rust Null Block Driver Published To Begin Experimenting With Rust For Linux Storage

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

  • Rust Null Block Driver Published To Begin Experimenting With Rust For Linux Storage

    Phoronix: Rust Null Block Driver Published To Begin Experimenting With Rust For Linux Storage

    To help facilitate the exploration of the Rust programming language for Linux storage purposes within the kernel, Samsung engineer Andreas Hindborg has published a null block driver written in this memory-safe programming language...

    Phoronix, Linux Hardware Reviews, Linux hardware benchmarks, Linux server benchmarks, Linux benchmarking, Desktop Linux, Linux performance, Open Source graphics, Linux How To, Ubuntu benchmarks, Ubuntu hardware, Phoronix Test Suite

  • #2
    There are 217 usages of `unsafe` keyword in this Rust driver implementation

    Comment


    • #3
      Originally posted by Sergey Podobry View Post
      There are 217 usages of `unsafe` keyword in this Rust driver implementation
      The driver is implemented entirely in safe Rust, with all unsafe code fully contained in wrappers for C APIs.​
      From patch message.

      Comment


      • #4
        Why not rewrite the Bible in Rust, newspapers, parking tickets, C, the dead sea scrolls, lord of the rings and the hitchhiker's guide to the galaxy... It all needs to be rewritten in rust because some people believe everything will be better, the grass greener, the air fresher... Even Greta Thunberg should be rewritten in Rust especially if you believe Rust is a typo for Trust...

        http://www.dirtcellar.net

        Comment


        • #5
          Originally posted by piotrj3 View Post

          "The driver is implemented entirely in safe Rust, with all unsafe code fully contained in wrappers for C APIs.​"

          From patch message.
          Yes, that's generally why you use the "unsafe" keyword. That patch line is horribly misleading though. All it says is "none of the Rust code is in unsafe keyworded bits, only the C". Which is better than having Rust code in unsafe keyworded blocks but the C that the driver uses is still just as able to shoot itself in the foot as any other C code is.

          Comment


          • #6
            Originally posted by waxhead View Post
            Why not rewrite the Bible in Rust, newspapers, parking tickets, C, the dead sea scrolls, lord of the rings and the hitchhiker's guide to the galaxy... It all needs to be rewritten in rust because some people believe everything will be better, the grass greener, the air fresher... Even Greta Thunberg should be rewritten in Rust especially if you believe Rust is a typo for Trust...
            Heh, the world would probably be better off if political types had less memory issues.

            Comment


            • #7
              Originally posted by Sergey Podobry View Post
              There are 217 usages of `unsafe` keyword in this Rust driver implementation
              You may wish to examine the situation more carefully.

              Originally posted by waxhead View Post
              Why not rewrite the Bible in Rust,
              The English Standard Version suffices quite well for my needs.

              Originally posted by waxhead View Post
              newspapers,
              Does this make them safer to read?

              Originally posted by waxhead View Post
              parking tickets,
              If there's one thing I actually want to malfunction, it's parking tickets.

              Originally posted by waxhead View Post
              C,
              YES!!!

              Originally posted by waxhead View Post
              the dead sea scrolls,
              These are already written in Hebrew with some being Aramaic.

              Originally posted by waxhead View Post
              lord of the rings
              As an alternative, you can read The Lord of the Rings in Esperanto.

              Originally posted by waxhead View Post
              and the hitchhiker's guide to the galaxy...
              I have neither seen nor read this, but I'm told I should.

              Originally posted by waxhead View Post
              It all needs to be rewritten in rust because some people believe everything will be better, the grass greener, the air fresher...
              Not everything will be better, but there will be far fewer security issues with peoples's code.

              Originally posted by waxhead View Post
              Even Greta Thunberg should be rewritten in Rust especially if you believe Rust is a typo for Trust...
              How dare you!​

              Comment


              • #8
                Originally posted by wswartzendruber View Post
                Not everything will be better, but there will be far fewer security issues with peoples's code.
                Using a slower, fatter language for convenience in instances where speed and memory usage matter greatly is not the answer or the Linux kernel would be written in Java. The answer to bad coders is not putting training wheels on bits of the kernel where they're a big detriment, it's not allowing bad coders to contribute code to those areas in the first place.

                Comment


                • #9
                  Originally posted by TheMightyBuzzard View Post

                  Using a slower, fatter language for convenience
                  Rust is neither slower nor fatter.

                  Originally posted by TheMightyBuzzard View Post
                  it's not allowing bad coders to contribute code
                  If we only allow unicorns to contribute then nothing will ever be done.

                  Comment


                  • #10
                    Originally posted by dremon_nl View Post
                    Rust is neither slower nor fatter.
                    See, that tells me you're unqualified to participate in this discussion. It absolutely is provably both and every Rust dev who knows anything about their language knows this and will tell you so. Is it as slow as Java or other high level languages? No. But absolute adherence to memory safety on every allocation absolutely does come at a cost that can not be avoided.

                    Comment

                    Working...
                    X