3 ms·
When cat writes to stdout, it doesn't block waiting for grep to process that data. It will certainly do that if the buffer is full. prevents the implicit bloc
by userbinator 1y ago
When cat writes to stdout, it doesn't block waiting for grep to process that data.
It will certainly do that if the buffer is full.
prevents the implicit blocking
No, that's exactly the case of implicit blocking mentioned above.
Does anyone else find this article rather AI-ish? The extreme verbosity and repetitiveness, the use of dashes, and "The limitation isn't conceptual—it's syntactic" are notable artifacts.
- Joker_vD 1y agoIf anything, the pre-pipe style of prog1 -input input_file -output tmp1_file prog2 -input tmp1_file -output tmp2_file && del tmp1_file prog3 -input tmp2_file -output tmp1_file && del tmp2_file ... progN -input tmpX_file -output output_file && del tmpX_file is more in line with the author's claimed benefits of the pipes than the piped style itself. The process isolation is absolute, they are separated not just in space, but in time as well, entirely!
- bediger4000 1y agoFile management suddenly becomes an issue. If old file tmp1_file remains from a previous run, then prog1 fails, you get "old" output. Pipes avoid file management entirely.
- 1718627440 1y ago> It will certainly do that if the buffer is full. You can consider that an OS/resource specific limitation, rather than a limitation in the concept.
- Joker_vD 1y agoNah. Having built-in automatic backpressure is one of the most underappreciated things about the UNIX pipes.
- 1718627440 1y agoFully agree. This is still a representation of the available resources.
- geysersam 1y ago> Does anyone else find this article rather AI-ish? After reading the whole thing, yes! Specifically it feels incoherent in the way AI text often is. It starts by praising unix pipes for their simple design and the explicit tradeoffs they make, and then proceeds explaining how we could and should make the complete opposite set of tradeoffs.
- 1718627440 1y agoAlso the headings are just sprinkled at intervals and don't really fit the text.
- kej 1y agoThat would explain the strangeness of the recent spherical cows article from the same site, as well.