News for hackers. Stuff that matters.
Re:Rust is now overall faster than C in benchmarks by jart on Sunday January 03, 2021 @04:20PM (#25625358)
Not for char. Compiler always assumes non-restrict for char pointers and arrays, which is important to remember if you're ever operating on a RGB or YCbCr matrix or something.
Re:Rust is now overall faster than C in benchmarks by bsder on Sunday January 03, 2021 @05:17PM (#25625758)
Huh.

Does that also hold for a "uint8_t"--which is often just a renamed unsigned char rather than being a genuine type of its own?

Re:Rust is now overall faster than C in benchmarks by Hello71 on Sunday January 03, 2021 @05:53PM (#25626030)
not according to the standard, but in practice yes, currently. there are arguments that it should be considered not for optimization reasons, but there is likely too much existing code relying on it to change behavior. (see related llvm, gcc bugs)
Re:Rust is now overall faster than C in benchmarks by jart on Sunday January 03, 2021 @05:35PM (#25625881)
Yes