News for hackers. Stuff that matters.
Re:Bzip2 crate switches from C to 100% rust by egorfine on Wednesday June 18, 2025 @06:32AM (#44308567)
> which were a replacement for the

You have a point here. I have to agree.

"X but rewritten in Z" is a terrible marketing, though. Makes me instantly want to hate the tool and its authors. (Love rust. Hate the vibe).

Re:Bzip2 crate switches from C to 100% rust by mprovost on Wednesday June 18, 2025 @07:10AM (#44308806)
Why the hate? It's a genuine question. When you rewrite something, you need to justify the effort somehow. The GNU coreutils started out as "the BSD utilities, but with the GPL!".
Re:Bzip2 crate switches from C to 100% rust by egorfine on Wednesday June 18, 2025 @10:09AM (#44310050)
Because the reimplementation authors skip all the complexities of designing the tool in the first place while getting right to the fun part (which is coding), and then they get to call themselves authors of a well known infrastructure tool.

Compare "I have typed a setuid() wrapper in rust" vs "I'm the author of sudo-rs".

Re:Bzip2 crate switches from C to 100% rust by scripturial on Wednesday June 18, 2025 @09:17AM (#44309638)
It’s a rust crate designed to be a native rust replacement for a rust c wrapper crate. It’s faster and easier to link to in rust projects.

How would you even tell people you made a better rust crate without using the word “rust?”

Re:Bzip2 crate switches from C to 100% rust by throwawaymaths on Wednesday June 18, 2025 @10:33AM (#44310256)
you would say "rewritten FOR rust" instead of "rewritten IN rust".
Re:Bzip2 crate switches from C to 100% rust by scripturial on Wednesday June 18, 2025 @11:57AM (#44311004)
It’s a rust crate that depended on c and is now literally “rewritten in rust”
Re:Bzip2 crate switches from C to 100% rust by throwawaymaths on Wednesday June 18, 2025 @12:28PM (#44311258)
> rust crate
Re:Bzip2 crate switches from C to 100% rust by egorfine on Wednesday June 18, 2025 @10:12AM (#44310083)
Why not spend the efforts to speed up the real zlib? So that the whole world actually gets to spin a bit faster.

Rust folks are claiming excellent interoperability with C binaries. Why the need for a rewrite then?

Re:Bzip2 crate switches from C to 100% rust by swiftcoder on Wednesday June 18, 2025 @10:45AM (#44310363)
Maybe because the speed up is easier to attain in a language where you aren't constantly worrying about introducing bugs? Maybe development is easier in a language with more modern tooling?

Interoperability runs both ways, everyone currently taking a dependency on the C library can swap in the rust library in its place and see the same benefits