Email or username:

Password:

Forgot your password?
Top-level
Alyssa Rosenzweig πŸ’œ

@lina @dougall While working on these userspace Mesa changes today, I did not hit a single GPU kernel driver bug. Not. A. Single. Bug.

This is thanks to Lina's phenomenal efforts. She took a gamble writing the kernel driver in Rust, knowing it would take longer to get to the first triangle but believing it would make for a more robust driver in the end. She was right.

A few months of Lina's Rust development has produced a more stable driver than years of development in C on certain mainline Linux GPU kernel drivers.

I think... I think I have Rust envy πŸ¦€β€‹

....Or maybe just Lina envy πŸ˜Šβ€‹

9 comments
emk

@alyssa @lina @dougall I have been super impressed with the early Linux kernel driver work in Rust. I'd built a toy "kernel" while reading the early parts of os.phil-opp.com/ and it was really enjoyable. But seeing that start to happen in a real kernel is amazing.

Coding in Rust just feels solid.

Jonas Greitemann

@alyssa @lina @dougall That is crazy impressive! I wondered how long it would take for Rust inside of Linux to produce tangible benefits. Turns out, not long at all!

karolherbst 🐧 πŸ¦€

@alyssa @lina @dougall I'm really happy that we didn't had a lot of bikeshedding on the Rust topic overall and didn't settle on any compromises either. There were voices of having code touching DRM APIs to not be rust and other nonsensical requests. So I'm glad we as the DRM community "enabled" @lina to work on that :)

ITzTravelInTime

@alyssa @lina @dougall I just hope that way more linux software is moved to rust, especially when it comes to drivers, it just makes sense in the context of low level software to avoid classes of instabilities all together like rust does compared to C.

Btw i also think that linux needs some object oriented driver interfaces, like macOS does, it's amazing how much work it saves for the driver developer.

Asahi Linya (朝ζ—₯γ‚Šγ«γ‚ƒγ€œ)

@ITzTravelInTime @alyssa @dougall Linux is already object oriented! It's just really awkward because it's doing it using a language that isn't ^^;

With Rust abstractions, you end up getting a much more OOP-style interface that fits the kernel APIs better than C! ✨

twitter.com/LinaAsahi/status/1

amarioguy

@alyssa @lina @dougall

nice :) maybe a tad ambitious but linux scheduler in rust eventually? /s

(but seriously the progress on AGX has been amazing, makes me glad to be part of the community lol. i'm debating using rust for the sep driver when that time comes lol)

Go Up