"Every time you write code or introduce third-party services, you are introducing the possibility of failure into your system. I have far more faith in xargs than I do in Hadoop." (/via @affanzbasalamah)

@affanzbasalamah @jpmens I think I have read this one years ago, but I still went "holy moley xargs has the -P option for parallel processing??". Apparently I had forgotten about it.

I use GNU Parallel, and it still has its use, because it offers a convenient CLI for supplying work items directly in the parallel call:

parallel git fetch ::: clacke upstream

With xargs that would instead be the slightly more tedious:

printf '%s\n' clacke upstream | xargs -n 1 -P 0 git fetch

But for scripting I'd go with xargs to eliminate the dependency on yet another package ... as the article suggests. 😀
@affanzbasalamah @jpmens 1 day later: I'm reminded that I'm actually using GNU parallel for running tests for fractalide. I'm moving that code into racket2nix proper now, and it will use xargs instead.
@affanzbasalamah @jpmens In the spirit of the article, at one job we treated Apache httpd, xsltproc and awk as a business integration toolset.
Sign in to participate in the conversation

Invite-only Mastodon server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!