News for hackers. Stuff that matters.
Re:Rust is now overall faster than C in benchmarks by gambiting on Sunday January 03, 2021 @03:57PM (#25625174)
>>plain C strings

But.....there is no such thing. There are arrays of chars, the whole principle of C is "if you want to know the length of a string....just store it yourself". It's a bit like saying that two wooden planks don't have the same functionality as a cupboard. Like, you're technically correct, but the whole idea is that you can use the planks to build your own cupboard or literally anything else.

Re:Rust is now overall faster than C in benchmarks by jolux on Sunday January 03, 2021 @07:17PM (#25626616)
The comment was illustrating why not including the length is a problem: it lead to a community norm that is bad for performance (stdlib functions not taking string length).