News for hackers. Stuff that matters.
Re:Bugs Rust Won't Catch by theteapot on Wednesday April 29, 2026 @03:57AM (#47945357)
Probably a dumb question, but is GNU Core utils interested in / planning on doing its own rust rewrite?
Re:Bugs Rust Won't Catch by greatgib on Wednesday April 29, 2026 @06:18AM (#47946317)
The rewrite in Rust is mostly vanity and marketing but not based on a real technical need...

So I don't see why they would want to do that.

Re:Bugs Rust Won't Catch by kibwen on Wednesday April 29, 2026 @06:52AM (#47946555)
Canonical's usage of uutils is likely for marketing. But the codebase itself was developed for fun, as an excuse for people to have a hands-on way to learn Rust back before Rust was even released, with a minor justification as being cross-platform. From the original README in 2013:

Why?

----

Many GNU, linux and other utils are pretty awesome, and obviously some effort has been spent in the past to port them to windows. However those projects are either old, abandonned, hosted on CVS, written in platform-specific C, etc.

Rust provides a good platform-agnostic way of writing systems utils that are easy to compile anywhere, and this is as good a way as any to try and learn it.

https://github.com/uutils/coreutils/blob/9653ed81a2fbf393f42...

Re:Bugs Rust Won't Catch by PunchyHamster on Wednesday April 29, 2026 @07:24AM (#47946805)
>Canonical's usage of uutils is likely for marketing

Currently their usage is actively worsening the security of their distro

Re:Bugs Rust Won't Catch by Avamander on Wednesday April 29, 2026 @09:06AM (#47947844)
These things were caught and basically all of them weren't covered by any test suite (not even GNU coreutils'). It's a bit bold to claim that it's actively worsening it when it's not an LTS.
Re:Bugs Rust Won't Catch by ok123456 on Wednesday April 29, 2026 @11:49AM (#47950086)
That's generally what you call introducing new semantic bugs.
Re:Bugs Rust Won't Catch by pseudalopex on Wednesday April 29, 2026 @09:48PM (#47957118)
> It's a bit bold to claim that it's actively worsening it when it's not an LTS.

It is LTS now. And not LTS releases are releases.

Re:Bugs Rust Won't Catch by dapperdrake on Wednesday April 29, 2026 @12:30PM (#47950699)
Welcome to building something new.
Re:Bugs Rust Won't Catch by ragall on Wednesday April 29, 2026 @07:11PM (#47955913)
New things can be made optional and tested outside production, and should not be rolled out in an LTS edition.
Re:Bugs Rust Won't Catch by thesuperbigfrog on Thursday April 30, 2026 @08:56AM (#47961708)
>> should not be rolled out in an LTS edition.

The Rust coreutils were first rolled out in the previous release which was not LTS:

https://canonical.com/blog/canonical-releases-ubuntu-25-10-q...

Re:Bugs Rust Won't Catch by ragall on Thursday April 30, 2026 @12:08PM (#47964592)
That was for 6 months only and in an intermediate version that many don't update to, especially in production environments.
Re:Bugs Rust Won't Catch by dapperdrake on Wednesday April 29, 2026 @12:29PM (#47950692)
Isn't this how Kernighan and late Ritchie (K&R) ended up with unix and C?

Honestly, brilliant guys.

When C got its own standards committee they even rejected Ritchie's proposal to add fat pointers to C before it was too late to add them. Instead, we got the C abstract machine.

Re:Bugs Rust Won't Catch by pxc on Wednesday April 29, 2026 @11:47AM (#47950052)
I thought it was a learning exercise, and maybe some corporations also like it because it has more permissive licensing.
Re:Bugs Rust Won't Catch by wpollock on Wednesday April 29, 2026 @01:03PM (#47951224)
Thomas Jefferson famously said that "A coreutils rewrite every now and again is a good thing". Or something like that.

When I was a beta tester for System Vr2 Unix, I collected as many bug reports as possible from Usenet (I used the name "the shell answer man". Looking back I conclude that arrogance is generally inversely proportional to age) and sent a patch for each one I could verify. Something like 100 patches.

So if this rust rewrite cleans up some issues, it's a good thing.

Re:Bugs Rust Won't Catch by collinfunk on Wednesday April 29, 2026 @02:33PM (#47952472)
At the current moment I would be against it. The language and library is changing too fast. Also, Rust has some other things that make it hard to use for coreutils. For example, Rust programs always call signal (SIGPIPE, SIG_IGN) or equivalent code before main(). There is no stable way to get the longstanding behavior of inheriting the signal action from the parent process [1]. This is quite annoying, but not unique to Rust [2].

[1] https://doc.rust-lang.org/beta/unstable-book/compiler-flags/... [2] https://www.pixelbeat.org/programming/sigpipe_handling.html

Re:Bugs Rust Won't Catch by safercplusplus on Thursday April 30, 2026 @01:54AM (#47958668)
I think the concern is that the writing may be on the wall for (the current memory-unsafe version of) Coreutils. Despite the bugs and incompatibilities, Canonical seems to have decided that the memory safety of uutils is worth it. And those two downsides, the bugs and incompatibilities, will likely attenuate quickly, compelling the other distros to follow suit in adopting uutils before long.

So the continued popularity of Coreutils might, I think, depend on Coreutil's near-term publicly announced and actual memory safety strategy. As I suggested in my other comment, there are (somewhat nascent) options for memory safety that do not require a rewrite of the code base. (For linux x86_64 platforms, depending on your requirements, that might include the "fanatically compatible" Fil-C.) And given the high profile of Coreutils, there are likely people willing to work with the Coreutils team to help in the deployment of those memory safety options.