pixelbeat

Joined 18 years ago

Karma
1,141
Submissions
137
Member since
Sep 12
http://www.pixelbeat.org/ http://twitter.com/pixelbeat_
View on Hacker News

Recent submissions

Comment · 21 days ago
We take such reports seriously. I couldn't find any when searching again
Comment · 22 days ago
Where did you report those coreutils issues?
Comment · 8 months ago
How the latest coreutils leveraged terminal hyperlinks to directly link to the full online documentation
Comment · 1 year ago
Phoronix didn't link the full NEWS: https://savannah.gnu.org/news/?id=10816

Some extra notes...

Accurate (cgroup aware) nproc is important, as detailed in: https://danluu.com/cgroup-throttling/

The new base58 encoding performs well being around 500 times faster than arbitrary int implementation internal to cpython 3.13 for example

Comment · 1 year ago
GNU coreutils can be built as a single binary with ./configure --enable-single-binary. One can install this variant on Fedora for example with the coreutils-single package, and this is used in some container images.
Comment · 1 year ago
FWIW GNU coreutils' shuf uses reservoir sampling for larger inputs to give bounded memory operation
Comment · 1 year ago
42/2
Comment · 1 year ago
Comment · 1 year ago
Nice article. See also: https://www.pixelbeat.org/programming/stdio_buffering/

It's also worth mentioning a recent improvement we made (in coreutils 8.28) to the operation of the `tail | grep` example in the article. tail now notices if the pipe goes away, so one could wait for something to appear in a log, like:

    tail -f /log/file | grep -q match
    then_do_something
There are lots of gotchas to pipe handling really. See also: https://www.pixelbeat.org/programming/sigpipe_handling.html
Comment · 1 year ago
Comment · 2 years ago
Comment · 2 years ago
One might be wondering why 'test' and '[' are separate binaries at all. This is to give maximum flexibility wrt copying binaries etc. Note one can build coreutils like busybox as a single binary, by just `./configure --enable-single-binary` at build time. This is already available as an option on Fedora at least through the coreutils-single (1.2MB) package.
Comment · 2 years ago
Sounds like a case of: https://www.pixelbeat.org/programming/sigpipe_handling.html

uutils uses the coreutils test suite, so it makes sense to add a test case for that, which uutils will eventually get to. I'll do that now.

Comment · 2 years ago
yes(1) is the standard unix way of generating repeated data. It's good to do this as quickly as possible. I really don't understand why so many get annoyed with this code. 130 lines isn't that complicated in the scheme of things.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton