Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>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”?



It's always line buffered. Unlike python, where its behaviour depends on whether stdout is a tty or not.


That doesn’t answer my question, let me reformulate it: what’s the rationale behind this behavior?




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: