I think there's a very strong dependence on exactly what kind of unsafe code you're dealing with. On one hand, you can have relatively straightforwards stuff like get_unsafe or calling into simpler FFI functions. On the other hand, you have stuff like exposing a safe, ergonomic, and sound APIs for self-referential structures, which is definitely an area of active experimentation.
Of course, in this context all that is basically a nitpick; nothing about your comment hinges on the parenthetical.
> Even if we accept the premise that unsafe Rust is harder than C (which frankly is ludicrous on the face of it)
It clearly is not ludicrous, but true, as you well know.
> we’re talking about a tiny fraction of the overall code of Rust programs in the wild.
Which is wrong, also because unsafe Rust can require way more validation of code than just the unsafe blocks themselves. Do you not know or understand the basics of unsafe Rust? If so, that counts both against you and even further against Rust. Know your language!
> With all due respect this may be the singular dumbest argument I’ve ever had the displeasure of participating in on Hacker News.
You are describing yourself, and you are the source of that, and your arguments regarding the blog posts of famous developers are severely lacking. You clearly have no shame, no honesty, nor any competence.
Well, you're the one asking for a comparison with C, and this subthread is generally comparing against C, so you tell us.
> Modern C++ provides a lot of features that makes this topic easier, also when programs scale up in size, similar to Rust. Yet without requirements like no universal aliasing. And that despite all the issues of C++.
Well yes, the latter is the tradeoff for the former. Nothing surprising there.
Unfortunately even modern C++ doesn't have good solutions for the hardest problems Rust tackles (yet?), but some improvement is certainly more welcome than no improvement.
> Which is wrong
Is it? Would you be able to show evidence to prove such a claim?
You have zero sense of perspective. Even if we accept the premise that unsafe Rust is harder than C (which frankly is ludicrous on the face of it) we’re talking about a tiny fraction of the overall code of Rust programs in the wild. You have to pay careful attention to C’s issues virtually every single line of code.
With all due respect this may be the singular dumbest argument I’ve ever had the displeasure of participating in on Hacker News.