logoalt Hacker News

danbrucyesterday at 1:45 PM6 repliesview on HN

Why does this require inventing lsr as an alternative to ls instead of making ls use io_uring? It seems pretty annoying to have to install replacements for the most basic command line tools. And especially in this case, where you do not even do it for additional features, just for getting the exact same thing done a bit faster.


Replies

tiagodyesterday at 1:54 PM

You don't have to install it. You can modify ls yourself too.

bicolaoyesterday at 2:44 PM

The author answered on lobster thread [1]. This is more of an io_uring exercise than an attempt to replace ls.

[1] https://lobste.rs/s/mklbl9/lsr_ls_with_io_uring

naileryesterday at 1:51 PM

`ls` is in C, `lsr` is in Zig. The `lsr` programmer probably doesn't want to make new code in C.

show 1 reply
mschuster91yesterday at 1:53 PM

> Why does this require inventing lsr as an alternative to ls instead of making ls use io_uring?

Good luck getting that upstreamed and accepted. The more foundational the tools (and GNU coreutils definitely is foundational), the more difficult that process will be.

Releasing a standalone utility makes iteration much faster, partially because one is not bound to the release cycles of distributions.

show 2 replies
kmeisthaxyesterday at 2:39 PM

[dead]