3 ms·
If you use stderr, you get this for free: stderr is always unbuffered (see https://linux.die.net/man/3/stderr https://linux.die.net/man/3/stderr).
by jcalvinowens 3y ago
If you use stderr, you get this for free: stderr is always unbuffered (see https://linux.die.net/man/3/stderr https://linux.die.net/man/3/stderr).
- yla92 3y agoI did not know this. Thank you. Updated my blog post!
- throwawaymaths 3y agoThis is why the default-to-teach print in ziglang is std.debug.print -- this goes to stderr and the name implies you should yank them before cutting a release
- yla92 3y agoThat makes sense. For example, with curl, I have been redirecting the output from stderr to stdout with 2>&1 and grep to filter. Now, I am seeing the dots connected why apps like curl sends the output to stderr!