Article 34TTW App automatically responds "yes" to boring installation dialogs

App automatically responds "yes" to boring installation dialogs

by
Rob Beschizza
from on (#34TTW)

yes.jpg

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! mwN7Lejpark

External Content
Source RSS or Atom Feed
Feed Location http://feeds.boingboing.net/boingboing/iBag
Feed Title
Feed Link http://feeds.boingboing.net/
Reply 0 comments