Live data from Hacker News

Ubuntu 26.10 completes transition to Rust-based coreutils

omgubuntu.co.uk

171–180 of 339 posts

Re: Ubuntu 26.10 completes transition to Rust-based coreutils

#171
post #152

I was bummed when I came across this: https://github.com/trifectatechfoundation/sudo-rs/issues/129...

I don't understand - I thought sudo-rs was supposed to be a drop-in replacement? If it implements a subset of features how can this be the case?

I don't think sudo-rs ever advertised itself as a drop in replacement. They seem pretty upfront that it isn't their goal. See this list:

https://github.com/trifectatechfoundation/sudo-rs#difference...

Re: Ubuntu 26.10 completes transition to Rust-based coreutils

#172

Earlier quoted context omitted.

"Stronger" is absolute bullshit. No data race prevention. No intra-object protection. Mandatory GC, and 5x the compute cost. Nothing like a statically safe language.

It's coreutils, there shouldn't be any threads to be data racing.

Haven't threads been one of the reason some core util got faster?

Re: Ubuntu 26.10 completes transition to Rust-based coreutils

#173
post #114
post #39

Was there something wrong with how they are currently written or do they just want the badge that says they converted to Rust?

Neither. They basically see Rust as the future. They want to be able to attract young contributors and to hire young employees who are excited about Rust and who want the safety features. Bear in mind, the average age of the Linux developer is increasing. They also see technical benefits in Rust. And they are increasing test coverage of both the Rust tools and the tools written in C, IIRC. My source is this interview…

Canonical hasn't contributed anything to GNU coreutils in the time since the switch was announced, just to be clear.

Re: Ubuntu 26.10 completes transition to Rust-based coreutils

#174

I really don't understand why Canonical rushes this. If 'rm' can't remove all possible directory entries, that is a big issue: $ podman run --rm -it ubuntu:26.10 $ apt update -y; apt upgrade -y $ rm --version rm (uutils coreutils) 0.10.0 $ gnumkdir -p $(yes a/ | head -n $((32 * 1024)) | tr -d '\n') $ rm -rf a Segmentation fault (core dumped) rm -rf a $ ls a a $ gnurm -rf a $ ls a ls: cannot access 'a': No such file o…

but it segfaulted in a memory safe way.

Re: Ubuntu 26.10 completes transition to Rust-based coreutils

#175
post #172

Earlier quoted context omitted.

It's coreutils, there shouldn't be any threads to be data racing.

Haven't threads been one of the reason some core util got faster?

Only GNU sort uses threads. There is still some room for improvement there, if anyone wants to take a shot at it. :)

Re: Ubuntu 26.10 completes transition to Rust-based coreutils

#176
post #126

Earlier quoted context omitted.

I think ubuntu wants to kill desktop linux. No other explaination of why they push firefox inside snap, which then proceeds to constantly crash, when firefox used normally works completely fine. I haven't tried chromium but I presume it's the same issue. At work I'm forced to use ubuntu and I placed snapd on hold and added mozilla's own apt repository to my configuration to get firefox. At least in the past few month…

Firefox installed as a snap feels sluggish to me. When I install a Ubuntu system, the first thing I do is to uninstall any snap and install the apt versions of things, possibly adding official PPAs or using Guix to install software.

why bother with ubuntu at all ? If you want ubuntu but without snap out of the box, Zorin is 1 option. Or if you also hate gnome, linux mint.

Re: Ubuntu 26.10 completes transition to Rust-based coreutils

#177
post #68

Earlier quoted context omitted.

It's a stack overflow which means it's using recursion and for historical reasons that don't make sense any more, stacks are teeny tiny on 64-bit Linux - apparently only 8 MB on Linux! I'm not sure why they don't raise it to something reasonable like 4 GB. I guess because they want consistency with 32-bit? Maybe we can finally change it if/when they phase out support for 32-bit Linux. Apparently it might not be that…

OIC. Rust doesn't guarantee optimizing tail recursion. How unfortunate for a language that's getting widespread adoption.

I don't think that's related? The bug alluded to looks something like

    function rm(node) {
        for (const child of ls(node))
            rm(child);
        unlink(node);
    }
and no amount of tail call optimization will save you here, because this isn't tail recursion. Of course you could rewrite it using an explicit stack + tail recursion, but then you might as well be using a while loop.

Re: Ubuntu 26.10 completes transition to Rust-based coreutils

#178
post #122

Earlier quoted context omitted.

I did, and the original dev of the component fixed it within a few days. It was straightforward, a backwards reading of a spec, reordered. The fix is still sitting unmerged many months later. This surprised me since I thought the project was in heavy bugfix/compat mode. I won’t touch it until I see some velocity on open bugs.

Fork Ubuntu and threaten their business model, that’ll get their attention. Only half joking.

There's very little incentive to switch. When people release for Linux they almost always first/only test it works on Ubuntu - hence it's going to be the least buggy. (ex: GOG only seemingly tested games on Ubuntu)

So the switching cost is buggy software. You'd need something radically different that brings enough new features to the table to make it worth it the switch and dealing with bad/non-existant support.

I think something like Nix/Guix but with stable library versions that matches Ubuntu/Debian LTS ones 1-to-1 could get traction

Re: Ubuntu 26.10 completes transition to Rust-based coreutils

#179
post #168

I would be very curious about a bit more concrete and substential criticism what is bad (or good) about how the both versions, that goes beyond general arguments like: Just because it is Rust, it is not safe! It worked before, don't replace it! etc. Not that these are not valid points of criticism, but in my opinion if we have two core utils we can (and should) pick the better one after careful continous evaluation.…

> since I usually found oddities that they probably did not intend to be that way.

Or it could be you don't have the context like they did. Maybe some hardware bug/quirk that happens on some exotic machine that you don't have.

Re: Ubuntu 26.10 completes transition to Rust-based coreutils

#180
post #126

Earlier quoted context omitted.

They need to kill snap ...

I think ubuntu wants to kill desktop linux. No other explaination of why they push firefox inside snap, which then proceeds to constantly crash, when firefox used normally works completely fine. I haven't tried chromium but I presume it's the same issue. At work I'm forced to use ubuntu and I placed snapd on hold and added mozilla's own apt repository to my configuration to get firefox. At least in the past few month…

sandboxing a browser makes total sense. my firefox and chromium running as snaps never crashed a single time for as long as I can remember, and I use both every day, at the same time.
Post reply on HN