A version of Yes, an app that says "y" at maximum speed, is built-in to unix-based operating systems. You can test it by firing up a terminal, typing "yes", and then watching it fill your window; you'd usually pipe it to another app or script. But there's a problem: it can only generate 51 megabits per second worth of yes, and something must be done about it.
The trivial program yes turns out not to be so trivial after all. It uses output buffering and memory alignment to improve performance. Re-implementing Unix tools is fun and makes me appreciate the nifty tricks, which make our computers fast.
As benchmarked by the author's computer, 3GB/s of yes is now possible!
• You’ll never guess how much the computer originally cost.
The Universal Serial Bus specification was introduced by a consortium of large tech companies in 1996 to standardize the way peripherals connect to computers. In this episode of Nostalgia Nerd on YouTube, you can learn about the history of USB, and why the connector configurations change so frequently. This 20-minute video was more interesting than […]
The miniature model supercomputers that Cray salespeople carried sometimes hit eBay, and they’re getting quite pricey. This 3.75″ tall scale model of the Cray X-MP, once the world’s fastest computer, is on offer for $700. I wonder, if you put a Rasberry Pi in it, would the resulting machine be faster than a Cray X-MP? […]
It’s almost shocking to say…but there’s actually an incredible amount of manhood wrapped up in how well you cook a steak. Of course, no one would argue your grilling abilities are THAT important. Or that how well you sear a prime slab of beef should have any bearing on your social standing or feeling of […]
The notion of two people sleeping in the same bed always inspires romantic visions of love and intimacy. However, most quickly realize that the romance of sleeping together is often quickly replaced by the realities of the act. One partner snores. The other talks in their sleep. One grinds their teeth. The other hogs the […]
Add Internet of Things to the shortlist of those actually benefiting from the effects of the COVID-19 pandemic. You might not realize it, but the organizing principle that is bringing more automation to the world is actually proving to be a major asset as human beings are forced to stay home and away from the […]