Okay, I primarily write code in Rust but can I just say, so, so, so, so, so, so,...

@Elizafox@treehouse.systems

Okay, I primarily write code in Rust but can I just say, so, so, so, so, so, so, so many Rust programmers are just like... I don't even know how to be nice about this... but I will try.

They do not understand unsafe other than "that's that thing I avoid." They do not understand that kernels need unsafe. They do not know the limitations of unsafe to a full degree. They don't understand how we replaced C UB with a whole class of poorly-defined UB in Rust. In Rust, the standard is "whatever LLVM deems UB is UB" and "Miri is the authoritative tool but it's also not the agreed-upon model and also it changes every few years."

To be fair, I believe the Rust devs understand this, and wish to formalise the model, but the problem is formalising these things requires lots of specialist domain knowledge that is pretty much impossible to find.

But the point is, so many Rust programmers only know safe programming, and do not understand the needs of unsafe programming, or its extensive limitations and workarounds that people have had to do, because the model is not rigorous yet and so you have to be careful to stay within the lines of what is known to be okay. Those lines are blurry and difficult to detect.

Too may Rust programmers still have the bullshit RIIR mentality. I don't think RIIR is a healthy way to think of things. You shouldn't RIIR unless there is a compelling reason to. "Memory safe" is not applicable to anything that requires unsafe. A lot of stuff requires unsafe to a heavy degree, and it can be difficult to isolate unsafe code. I've made Rust code segfault before. It's not difficult when you're working with weird pointer shit.