An Interest In:
Web News this Week
- April 20, 2024
- April 19, 2024
- April 18, 2024
- April 17, 2024
- April 16, 2024
- April 15, 2024
- April 14, 2024
October 12, 2017 04:56 am PDT
Original Link: http://feeds.boingboing.net/~r/boingboing/iBag/~3/mwN7Lejpark/app-automatically-responds-y.html
App automatically responds "yes" to boring installation dialogs
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.
Lessons learned
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!
Original Link: http://feeds.boingboing.net/~r/boingboing/iBag/~3/mwN7Lejpark/app-automatically-responds-y.html
Share this article:
Tweet
View Full Article