←back to thread

lsr: ls with io_uring

(rockorager.dev)
335 points mpweiher | 5 comments | | HN request time: 0s | source
Show context
danbruc ◴[] No.44604591[source]
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(6): >>44604637 #>>44604660 #>>44604674 #>>44604716 #>>44605151 #>>44605208 #
mschuster91 ◴[] No.44604660[source]
> 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.

replies(2): >>44604730 #>>44604763 #
1. WorldMaker ◴[] No.44604763[source]
In the history of Unix its also a common way to propose tool replacements, for instance how `less` became `more` on most systems, or `vim` became the new `vi` which in its day became the new `ed`.
replies(2): >>44605043 #>>44605868 #
2. nailer ◴[] No.44605043[source]
> instance how `less` became `more` on most systems

How `more` became `less`.

The name of 'more' was from paging - rather than having text scroll off the screen, it would show you one page, then ask if you wanted to see 'more' and scroll down.

'less' is a joke by the less authors. 'less is more' etc.

replies(1): >>44606047 #
3. JdeBP ◴[] No.44605868[source]
Yes and no. We don't really have the equivalent of comp.sources.unix nowadays, which is where the early versions of those occurred, and comp.sources.unix did not take just anything. Rich Salz had rules.

Plus, since I actually took stevie and screen and others from comp.sources.unix and worked on them, and wasn't able to even send my improvements to M. Salz or the original authors at all, from my country, I can attest that contributing improvements had hurdles just as large to overcome back then as there exist now. They're just different.

4. yencabulator ◴[] No.44606047[source]
For a while there was a less competitor named most.
replies(1): >>44606902 #
5. JdeBP ◴[] No.44606902{3}[source]
It hasn't gone away.

* https://freshports.org/sysutils/most/

* https://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/misc/most/i...

* https://packages.debian.org/sid/most

One can even get pg still, with Ilumos-based systems; even though that was actually taken out of the SUS years ago. This goes to show that what's standard is not the same as what exists, of course.

* https://illumos.org/man/1/pg

* https://pubs.opengroup.org/onlinepubs/9699919799.2008edition...