News for hackers. Stuff that matters.
Re:Speed of Rust vs. C by TazeTSchnitzel on Saturday March 13, 2021 @09:22AM (#26446727)
Yes, C99 added that keyword, and you can use it in C code. (C++ is a more complicated matter, I believe…)

But I think it's pretty uncommon in practice. One reason is that the C compiler has no borrow checker to help you notice when you're using `restrict` unsafely.

(Also, there's the whole “strict aliasing” hell…)

Re:Speed of Rust vs. C by petschge on Saturday March 13, 2021 @02:34PM (#26449248)
It's not that uncommon in HPC codes. I.e. one of the places where speed matters.