2 ms·
> You gotta remember that most of the heavy hitters in Linux Kernel development haven't even commented yet. There is nothing to comment yet. I've read those dr
by ordu 5y ago
> You gotta remember that most of the heavy hitters in Linux Kernel development haven't even commented yet.
There is nothing to comment yet. I've read those driver, it seems unconvincing for me despite me being a rust fanboy. Linus said about panics, I agree completely with him, and with the possibility to get rid of those panics. There is unsafe code where it shouldn't be, for example driver uses unsafe to create and to initialize a semaphore. I believe this unsafety could be removed by using Pin or something like, but when it removed, then it would be the time to comment. And I mean it. Kernel code heavily uses list_head, for example, which is PITA with rust. How to deal with it? I'm not sure that the rust will be better than C, just because it would be rust used in a C style, but it doesn't work. When I met Rust for the first time, I tried it with a C style of designing programs. Many people do, and it just doesn't work.
For now it is impossible to judge how rust will help, we might believe that it will help, because rust is a safety-oriented language, blah-blah-blah. But it is a belief, not something that we could touch, play with, see how it helps and how it obstructs.