Path: ...!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro Newsgroups: comp.os.linux.misc Subject: Re: The joy of pipes Date: Sun, 17 Nov 2024 07:59:44 -0000 (UTC) Organization: A noiseless patient Spider Lines: 31 Message-ID: References: <20241112111426.00007245@gmail.com> <20241114160907.0000252b@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 17 Nov 2024 08:59:45 +0100 (CET) Injection-Info: dont-email.me; posting-host="0e079645d656fd43a936f8dae4bc7735"; logging-data="575082"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/i/6yTow30Gf5EEDSzcSnO" User-Agent: Pan/0.160 (Toresk; ) Cancel-Lock: sha1:JuYUWG6pRB21BppwOwqll8XV/Js= Bytes: 2544 On Sun, 17 Nov 2024 01:05:20 -0500, 186282@ud0s4.net wrote: > On 11/17/24 12:30 AM, Lawrence D'Oliveiro wrote: >> On Sat, 16 Nov 2024 23:59:41 -0500, 186282@ud0s4.net wrote: >> >>> On 11/16/24 5:31 AM, Richard Kettlewell wrote: >>>> >>>> “Temporary files the parent can access” is not a good model for a >>>> couple of reasons: >>>> >>>> * The semantics are different. Bytes read from a regular file are >>>> still there to be read again if you rewind the file; bytes read >>>> from a pipe are gone. Empty/full files behave differently to >>>> empty/full pipes. >>>> >>>> * Temporary regular files can already be accessed by other processes >>>> by name, by file descriptor inheritance, or file descriptor passing. >>> >>> Didn't say temp disk files were necessarily SUPERIOR, just that they >>> CAN do most of the stuff pipes are used for and in an easier >>> user/code-friendly fashion. >> >> Not really, no. >> >>> SIZE is almost unlimited too. >> >> That is another reason they don’t work. > > It's a block of info, just by one means over another. You’re forgetting the sequencing and synchronization aspects.