News for hackers. Stuff that matters.
Re:Zlib-rs is faster than C by gf000 on Sunday March 16, 2025 @06:36PM (#43383190)
Rust is plenty fast, in fact there are countless examples of safe rust that will trivially beat out C in performance due to no aliasing, enabling better vectorization among others. Let alone being simply a more expressive language and allowing writing better optimizations (e.g. small strings, vs the absolutely laughable c-strings that perform terribly, but also you can actually get away with sharing more stuff in memory vs doing defensive copies everywhere because it is safe to do so, etc)

And there is not many things we have statistics on in CS, but memory vulnerabilities being absolutely everywhere in unsafe languages, and Rust cleaning up the absolute majority of them even when only the new parts are written in Rust are some of the few we do know, based on actual, real life projects at Google/Microsoft among others.

A memory safe low-level language is as novel as it gets. Rust is absolutely not just hype, it actually delivers and you might want to get on with the times.

Re:Zlib-rs is faster than C by throwaway2037 on Monday March 17, 2025 @12:46AM (#43385295)

    > absolutely laughable c-strings that perform terribly
Not much being said here in 2025. Any good project will quickly switch to a tiny structure that holds char* and strlen. There are plenty of open source libs to help you.
Re:Zlib-rs is faster than C by saagarjha on Monday March 17, 2025 @05:40AM (#43386634)
I take that you consider most major projects written in C to not be "good"?
Re:Zlib-rs is faster than C by sophacles on Monday March 17, 2025 @11:19AM (#43389500)
Most major software projects are not good, no matter what language.