News for hackers. Stuff that matters.
Re:A Little Story About the `yes` Unix Command by wruza on Thursday October 12, 2017 @05:36AM (#15456747)
>because without adding a BufWriter in rust, stdout is line-buffered, so each line emits a write system call,

Why the hell is it line-buffered when writing to a pipe? Yet another common sense “enhancement”?

Re:A Little Story About the `yes` Unix Command by glandium on Thursday October 12, 2017 @08:30AM (#15457471)
It's always line buffered. Unlike python, where its behaviour depends on whether stdout is a tty or not.
Re:A Little Story About the `yes` Unix Command by wruza on Thursday October 12, 2017 @03:55PM (#15460822)
That doesn’t answer my question, let me reformulate it: what’s the rationale behind this behavior?