We can do better than line-buffered output

(nullprogram.com)

47 points | by zdw 3 hours ago

2 comments

  • abecedarius 16 minutes ago
    > flush the buffer if it’s been idle a short time

    I've thought this was the right default for a good while. 50 years ago when Unix was designed, maybe not.

  • wpollock 54 minutes ago
    In C, you can use setvbuf to control buffering on stdout. There are also Linux command line utilities you can use to control buffering, unbuffer and stdbuf.
    • usefulcat 25 minutes ago
      This is true, although neither of those by them selves will achieve what the author is aiming for.