Anyone who knows me knows I'm a huge Rustacean. I absolutely love Rust and think...
Quin @TheQuinbox@dragonscave.space
Anyone who knows me knows I'm a huge Rustacean. I absolutely love Rust and think it's one of the best programming languages in the world for me as an individual. But...I really don't see why we had to rewrite coreutils in Rust. It is true that C code is vulnerable to memory bugs, but it's also true that coreutils have been around for almost twice as long as I've been alive and they're probably one of the most battletested pieces of software on the planet, beaten by SQLite, which is also...C! Me and friends have also found deviations in uutils from GNU coreutils. We reported them and they got fixed, but we could've also just spent this energy on finding and fixing the maybe one or two niche memory bugs that still exist in coreutils after decades of fuzzers and millions of developers using them. Again, I love Rust. I have multiple large projects in it and I think it is a fantastic technical achievement and a great language. But rewriting everything in Rust to avoid possible memory safety bugs feels misguided. There are absolutely cases where this makes sense too, to be clear. The first example that comes to mind is liblouis, the braille translation library. Almost all of their CVE's were memory related, and it's maintained by pretty much one guy who has said that making it Rust willl not only make it safer but bring joy back into maintanence. I 100% respect and agree with that, and have even contributed to louis-rs with a pull request. But I don't think everything needs to be rewritten in Rust. Should new code be written in it? For the most part, absolutely, yes. But throwing away 35+ years of C code to possibly avoid memory safety bugs feels deeply misguided to me.