Lurker News

Comments (215) 23 threads

Earlier comments
Dowwie#
It's exciting to see so many problem solvers use Rust to improve core linux utilities. I've been using Exa as an 'ls' replacement for some time now. 'fd' looks promising but has room to grow, still. Finding a file and then acting upon it is an important feature that ought to be addressed.
hehno1 reply#
I'm honestly wondering when will we have the whole coreutils rewritten in Rust.
oblio1 reply#
The docs don't say: is this meant to replace Busybox or the actual GNU coreutils? As in, all GNU features and flags (which are generally much more comprehensive and IMO nicer than plain old POSIX features).
dbaupp#
I do think it (optionally) provides a busybox-esque single-binary interface, but I do not know whether this also translates into a busybox-esque command-line interface.
adwhit1 reply#
ripgrep, exa and now fd... any other CLI tools I should cargo-install?
rahiel1 reply#
You can't install this with cargo. Una is a Haskell program; you can get it with `stack install una`.
seagreen#
Whoops, good point. In the long run I think Una's a good candidate for being installed at the systems level, because you really want to install unzip, etc. along with it.

EDIT: The idea being that if you install it with your system package manager it can have unzip etc. as dependencies so that's taken care of automatically.

pmoriarty1 reply#
I wonder how this compares to the speed of zsh's globbing, which is what I've mostly switched to using instead of find.
sharkdp#
zsh globs are about a factor of 5 slower (for this example):

    > time fd -sIe jpg > /dev/null
    1,24s user 0,77s system 758% cpu 0,265 total

    > time ls ~/**/*.jpg > /dev/null
    0,53s user 0,97s system 98% cpu 1,518 total

Load more comments