Later on in deployment, it will go somewhere else. Somewhere that has been evaluated for being able to handle it.
In that way, /dev/null is to storage what `true` is to execution - it just works.
Both (along with a lot of the standard utilities) are a testament to what talented C programmers plus years of people beating on them in unintended ways can achieve in terms of reliability/stability.
Shellshock [0] is a rather famous example, but bugs like that are rare enough that they make the news when they're found.
[0] https://en.wikipedia.org/wiki/Shellshock_%28software_bug%29
The correct spelling is “seems”. I first assumed it was a typo, but since you did it twice I thought you might like to know.
This would lead to impossible states, like
if cat foo | false; then echo hmm; fi
Producing output sometimes, depending on whether or not `cat foo` or `false` return value was used
[0] https://lists.gnu.org/archive/html/bug-bash/2015-06/msg00010...
Given that this statement begins with "joking aside", I have to assume it is either a meta-joke or an uninformed opinion. Taking the subsequent sentence into account thoroughly reinforces the former.
Well played. :-)
Wait: that's just not true.
Carry on.
sudo mknod /dev/null c 1 3 && sudo chmod 666 /dev/null
might do it on many systemsHowever with a single server, it doesn't perfectly linearly scale with multiple clients. I'm getting
1 client: 5GB/s
2 clients: 8GB/s
3 client: 8.7GB/s
dd if=/dev/zero of=/dev/null bs=1M status=progress
A second dd process hits the same speed. yes | pv > /dev/null
I hope that in my next rewrite I can advance to larger block sizes. yes $(printf %1024s | tr " " "y") | pv > /dev/null
About the same throughput as letting yes output a single character. I guess Unix pipes are slow.Or string concatenation, or pipeviewer.
https://github.com/coreutils/coreutils/blob/master/src/yes.c
copy c:\file nul
It's been there since DOS or more likely CP/M :)
best post of the week ^^
The Chinese comments ("issues") also seem to be the same kind of jokes as the English ones, "no code means no bugs, perfect", etc., from the few I tried getting translations of. I imagine this went viral on Chinese social media, which makes sense since it's the sort of joke that's easy to translate and doesn't depend on particular cultural assumptions or anything.
Considering there is no way to read back data written to /dev/null it will not be useful for storing database data.
Your humor unit might be defective.
‘return 5’
Discussed on HN a few times, but apparently not for a few years now: https://hn.algolia.com/?q=http%3A%2F%2Fwww.supersimplestorag...
Specifically, these definitions require that transactions appear to execute in some serial order, and place no constraints on that serial order. So the database can issue all reads at time zero, returning empty results, and all writes at the time they happen (because who the hell cares?).
The lesson? Demand real-time guarantees.
https://www.linusakesson.net/programming/pipelogic/index.php
Past HN post: https://news.ycombinator.com/item?id=15363029
cluckindan•4h ago
Truly, it is the only database which can be scaled to unlimited nodes and remain fully CAP.
thfuran•3h ago
ozim•3h ago
I am putting my marketing hat on right now.
pasteldream•3h ago
https://inutile.club/estatis/falso/
the_jeremy•3h ago
tgma•3h ago
pasteldream•3h ago
inopinatus•1h ago