News for hackers. Stuff that matters.
Re:Rust is now overall faster than C in benchmarks by arcticbull on Sunday January 03, 2021 @03:24PM (#25624892)
I think you'd be hard pressed to find more than a handful of usual C programmers, even in embedded, who know what the __restrict keyword does, let alone are rigorous in its application.
Re:Rust is now overall faster than C in benchmarks by steveklabnik on Sunday January 03, 2021 @03:26PM (#25624908)
I've always wondered if the reason why Rust keeps running into llvm bugs around restrict is that it is used so sparingly, and the semantics being unclear enough, that these codepaths just aren't exercised as often.
Re:Rust is now overall faster than C in benchmarks by pjmlp on Monday January 04, 2021 @05:42AM (#25629667)
Besides the previous answer, it isn't supported by ISO C++ (although it does exist as extension), because the majority of the WG thinks it will go the same way as register and inline in the long run.