Show Your Support: Did you know that you can get Phoronix Premium for under $4 per month? Try it today to view our site ad-free, multi-page articles on a single page, and more while the proceeds allow us to write more Linux hardware reviews. At the very least, please disable your ad-blocker.
Rust-Written Replacement To GNU Coreutils Progressing, Some Binaries Now Faster
GNU Coreutils provides some of the common and important command-line tools on Linux systems and other platforms. The GNU Core Utilities include commonly-used commands like cat, ls, rm, chmod, mkdir, wc, whoami, and dozens of others. Sylvestre Ledru and other developers have been working on a Rust-based Coreutils to gut out the C code and instead use this modern programming language priding itself on memory safety and security.
uutils/coreutils is the Rust replacement to the C-based GNU Coreutils.
Ledru posted an update today on Rust Coreutils, which recently saw its v0.0.12 release. There are now dozens of contributors each month contributing 400+ patches to this effort.
Not only should the Rust Coreutils be more secure, but for some binaries they are now seeing "significantly" better performance than out of the GNU package for commands like head, cut, and other common ones. They remain on the challenge of closing the compatibility gap for these utilities with the upstream GNU commands. One of their lone remaining binaries still to be implemented is stty.
Along with their optimizations and compatibility work, the developers are also going to be seeing about allowing Debian and Ubuntu the ability to easily switch by default to the Rust Coreutils without requiring any hacks / funky configurations.
More details as to the current state of Rust Coreutils via Sylvestre Ledru's blog. The code for the project is hosted on GitHub.