News for hackers. Stuff that matters.
Re:A Little Story About the `yes` Unix Command by xurukefi on Thursday October 12, 2017 @05:48AM (#15456796)

  import sys

  while True:
      sys.stdout.write("y\n" * 2**16)
gives me over 4GiB/s
Re:A Little Story About the `yes` Unix Command by omlettehead on Thursday October 12, 2017 @03:08PM (#15460447)
Sure, but you're building strings in memory. It might not be a lot of memory, especially if you're able to run Python, but the native `yes` command can run on the smallest of embedded systems, which is why its speed is impressive.