r/linux • • Apr 15 '21

Kernel Rust in the Linux kernel

https://security.googleblog.com/2021/04/rust-in-linux-kernel.html
103 Upvotes

66 comments sorted by

View all comments

Show parent comments

-16

u/[deleted] Apr 15 '21

[removed] — view removed comment

7

u/throwaway6560192 Apr 15 '21

What Rust features? I don't know, maybe the borrow checker and other enforcement of memory safety?

There is right now no equivalent to the borrow checker in the C/C++ world. Static analysis can't compare to the borrow checker.

-2

u/[deleted] Apr 15 '21

[removed] — view removed comment

12

u/throwaway6560192 Apr 15 '21

You don't have a clue, do you?

It's copy-pasted wlifetime from clang

Except wlifetime came after Rust. Unless the Rust devs have a time machine, they can't have copy-pasted it. It also only catches some common errors, not as comprehensive as the borrow checker.

-3

u/[deleted] Apr 15 '21

[removed] — view removed comment

16

u/throwaway6560192 Apr 15 '21 edited Apr 15 '21

Straight up wrong. Rust borrow checker was mature much before wlifetime arrived in Clang (2019). wlifetime still isn't as comprehensive as the borrow checker.

Stop pulling stuff out of your ass.