If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
Announcement
Collapse
No announcement yet.
More Rust Code Readied For Linux 6.3 - Closer To Having Rust Drivers Upstreamed
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.
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.
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.
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?
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).
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