A pair of Rust kernel modules
A pair of Rust kernel modules
Posted Sep 13, 2022 13:10 UTC (Tue) by PengZheng (subscriber, #108006)In reply to: A pair of Rust kernel modules by milesrout
Parent article: A pair of Rust kernel modules
I'd better invest that time learning C++20/23.
Posted Sep 13, 2022 14:04 UTC (Tue)
by reijoslav (guest, #98915)
[Link] (3 responses)
Posted Sep 13, 2022 14:45 UTC (Tue)
by Wol (subscriber, #4433)
[Link] (1 responses)
Cheers,
Posted Sep 14, 2022 6:18 UTC (Wed)
by milesrout (subscriber, #126894)
[Link]
Posted Sep 14, 2022 6:19 UTC (Wed)
by milesrout (subscriber, #126894)
[Link]
Posted Sep 15, 2022 21:13 UTC (Thu)
by thecodedmessage (guest, #160911)
[Link]
Rust does not eliminate all bugs. It's true that Rust's safety features only prevent the behaviors that they're designed to prevent. Of course that's true -- no programming language can prevent all bugs, but Rust's safety features do prevent some very bad types of memory corruption that are infamous for causing problems in C and C++. Additionally, even 'unsafe' Rust does a better job at preventing those failures than C++, which in many cases doesn't even give you any tools to manage the problem, relying instead entirely on the programmer.
And yes, they tried to eliminate memory leaks in safe code and then realized that wasn't an achievable goal in line with their other goals. That doesn't mean that Rust is bad. Rust is much better at preventing memory leaks than C++, but it is still possible to leak memory. It's way harder to do by accident, though.
Rust is better than C++. The fact that it's not utopian or perfect doesn't mean that it's not better.
A pair of Rust kernel modules
A pair of Rust kernel modules
Wol
A pair of Rust kernel modules
A pair of Rust kernel modules
A pair of Rust kernel modules