Recently I stumbled upon a post which takes a closer look at the yes
command line tool. The main purpose of it is to write endless stream of a single letter y
at a ridiculous speed.
On the first glance this seems like a really simple problem, just two lines of Nim and you're done, right?
while true:
echo "y"
And indeed, this gives us plenty of y
's. But when we take a look at the write speed..