Re:The state of the kernel Rust experiment
by unrealhoang on Friday December 19, 2025 @09:42AM
(#46326381)
All of `Vec` is much smaller than all of the place using Vec. IIRC, Vec is around 3k LoC. And for even low level code like Oxide & Android core, they are observed less than 4% of their code is inside or related to unsafe, that’s a massive improvement.
Yes, Rust is not new in term of allow building hard to misuse abstraction, it’s just allow abstraction over memory safety without relying on GC or runtime checks. Rust achieve this by adding capability to enforce shared XOR mutability with its borrowck which C++ couldn’t.
Re:The state of the kernel Rust experiment
by queejjd on Friday December 19, 2025 @09:54AM
(#46326501)
Your understanding is much shallower and more hollow than it was in the previous post you made, and your posts are not consistent.
Is the "unreal" in your name a reference to being an LLM bot?
Re:The state of the kernel Rust experiment
by unrealhoang on Friday December 19, 2025 @11:59AM
(#46328073)
Wow, now no more discussion and an accuse of bot? I’m flattered.
Also you are doing tech, be specific, what is much shallower or hollow?
If all of the Vec has to be "audited", or checked and reviewed, including all the code that is not inside unsafe blocks, how would the surface be any smaller?
> The point coming back to abstraction and responsibility, in Rust, you can build abstraction that is sound and guarantee memory safety from there.
Isn't it normal for programming languages to support building abstractions that can help with not only memory safety, but general correctness? C is a bit barebones, but lots of other programming languages, like C#, C++, Haskell and Scala support building abstractions that are harder to misuse.