Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

Conscience doth make cowards of us all. -- Shakespeare


comp / comp.os.linux.misc / Re: The joy of pipes

SubjectAuthor
* The joy of octalChris Ahlstrom
`* Re: The joy of octalJohn Ames
 `* Re: The joy of octalChris Ahlstrom
  `* Re: The joy of octalLouis Krupp
   +* Re: The joy of octalChris Ahlstrom
   |`* Re: The joy of EBCDICJohn Ames
   | +* Re: The joy of EBCDICCharlie Gibbs
   | |`* Re: The joy of EBCDICChris Ahlstrom
   | | `* Re: The joy of EBCDICcandycanearter07
   | |  `- Re: The joy of EBCDICChris Ahlstrom
   | `* Re: The joy of EBCDICFritz Wuehler
   |  `* Re: The joy of EBCDICClemens Schüller
   |   `* Re: The joy of EBCDICEli the Bearded
   |    +* Re: The joy of pipesJohn Ames
   |    |+* Re: The joy of pipesLawrence D'Oliveiro
   |    ||`* Re: The joy of pipes186282@ud0s4.net
   |    || +- Re: The joy of pipesJohn Ames
   |    || +- Re: The joy of pipesLawrence D'Oliveiro
   |    || +* Re: The joy of pipesRobert Riches
   |    || |`- Re: The joy of pipesLawrence D'Oliveiro
   |    || +* Re: The joy of pipes186282@ud0s4.net
   |    || |`* Re: The joy of pipesrbowman
   |    || | +* Re: The joy of pipes186282@ud0s4.net
   |    || | |`* Re: The joy of pipesCharlie Gibbs
   |    || | | `- Re: The joy of pipes186282@ud0s4.net
   |    || | `- Re: The joy of pipesCharlie Gibbs
   |    || `* Re: The joy of pipesRichard Kettlewell
   |    ||  `* Re: The joy of pipes186282@ud0s4.net
   |    ||   +* Re: The joy of pipesLawrence D'Oliveiro
   |    ||   |`* Re: The joy of pipes186282@ud0s4.net
   |    ||   | `* Re: The joy of pipesLawrence D'Oliveiro
   |    ||   |  `- Re: The joy of pipes186282@ud0s4.net
   |    ||   `* Re: The joy of pipesRichard Kettlewell
   |    ||    `* Re: The joy of pipes186282@ud0s4.net
   |    ||     +* Re: The joy of pipesLawrence D'Oliveiro
   |    ||     |`* Re: The joy of pipes186282@ud0s4.net
   |    ||     | `* Re: The joy of pipesPancho
   |    ||     |  +* Re: The joy of pipesLawrence D'Oliveiro
   |    ||     |  |`* Re: The joy of pipesPancho
   |    ||     |  | +* Re: The joy of pipesThe Natural Philosopher
   |    ||     |  | |+* Re: The joy of pipesPancho
   |    ||     |  | ||+- Re: The joy of pipesThe Natural Philosopher
   |    ||     |  | ||`- Re: The joy of pipesrbowman
   |    ||     |  | |`* Re: The joy of pipes186282@ud0s4.net
   |    ||     |  | | +- Re: The joy of pipesLawrence D'Oliveiro
   |    ||     |  | | +- Re: The joy of pipesThe Natural Philosopher
   |    ||     |  | | `- Re: The joy of pipesRichard Kettlewell
   |    ||     |  | `* Re: The joy of pipesrbowman
   |    ||     |  |  `* Re: The joy of pipesPancho
   |    ||     |  |   `- Re: The joy of pipesLawrence D'Oliveiro
   |    ||     |  `- Re: The joy of pipes186282@ud0s4.net
   |    ||     `* Re: The joy of pipesRobert Riches
   |    ||      `- Re: The joy of pipesLawrence D'Oliveiro
   |    |`- Re: The joy of pipesEli the Bearded
   |    `- Re: The joy of EBCDICCharlie Gibbs
   `- Re: The joy of octalEli the Bearded

Pages:123
Subject: Re: The joy of pipes
From: 186282@ud0s4.net
Newsgroups: comp.os.linux.misc
Organization: wokiesux
Date: Sat, 16 Nov 2024 08:03 UTC
References: 1 2 3 4 5 6 7 8 9 10 11
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!border-2.nntp.ord.giganews.com!border-3.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-4.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Sat, 16 Nov 2024 08:03:22 +0000
Subject: Re: The joy of pipes
Newsgroups: comp.os.linux.misc
References: <vgns2aqlhq@dont-email.me> <20241112111426.00007245@gmail.com>
<e44df1bda1f1622a8d725c69860d3225@msgid.frell.theremailer.net>
<m2ttc9y3d8.queerchen@cmschueller.my-fqdn.de> <eli$2411141855@qaz.wtf>
<20241114160907.0000252b@gmail.com> <vh6a9k$33c17$5@dont-email.me>
<hzSdnTUBKbG_YKv6nZ2dnZfqnPQAAAAA@earthlink.com> <A7GZO.66$hgYd.23@fx41.iad>
<kaOcndi2KbU9sqX6nZ2dnZfqnPSdnZ2d@earthlink.com>
<lpqrlkFqcu8U5@mid.individual.net>
From: 186283@ud0s4.net (186282@ud0s4.net)
Organization: wokiesux
Date: Sat, 16 Nov 2024 03:03:00 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <lpqrlkFqcu8U5@mid.individual.net>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Message-ID: <_dWdnU6ogs1XzKX6nZ2dnZfqnPWdnZ2d@earthlink.com>
Lines: 32
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 99.101.150.97
X-Trace: sv3-GbEpdzTrMNk+23iNVS2sJsW5boT/cPfMPIsX5LhX89+9ma0I6nt1/Nzggn+1aipLhHkunVyrBgnBmIj!1HqZS34z5KlZypO6iGt3B1HJMdmtmrO+zl+gOQUqvK3yM8c1yv5fItVfuY8eppIZjdadVrDlQhcI!/mKS0Sk4PbFFtpUFZsGV
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
View all headers

On 11/16/24 1:16 AM, rbowman wrote:
> On Sat, 16 Nov 2024 00:37:35 -0500, 186282@ud0s4.net wrote:
>
>> IF you are doing multi-threaded/process style pgms then you almost
>> HAVE to use them if you want to xmit more than a few bytes between
>> parents/children. A few years back I was experimenting with TCP/UDP
>> servers and found that it could be very useful to transmit a few
>> dozen bytes worth of active data between parents/children.
>>
>> SO ... learn yer pipes !
>
> Message queues and shared memory are handy for IPC too. I don't think
> Microsoft ever figured either out. What they call message queues are
> completely different.

Whatever M$ does ... well ....... always seems
to be FUCKED somehow.

Anyway, pipes are VERY useful. Anybody getting into 'C',
esp multi-threaded/process, needs to get very familiar
with them. Even in 'C' they're still kinda awkward
alas. Somebody had The Idea, but nobody seems to have
made it smooth and consistent across multiple languages
and systems.

My old server experiments, each child returned stats
back to the root parent while it was running. Under
certain conditions the parent would do things - maybe
terminate the child or connection or do a timer
process. Did work up to a fairly compact UDP bi-di
pre-threaded server. Never found a great use for it,
but it was fun and maybe someday .......

Subject: Re: The joy of pipes
From: Richard Kettlewell
Newsgroups: comp.os.linux.misc
Organization: terraraq NNTP server
Date: Sat, 16 Nov 2024 10:31 UTC
References: 1 2 3 4 5 6 7 8 9
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!news.gegeweb.eu!gegeweb.org!nntp.terraraq.uk!.POSTED.tunnel.sfere.anjou.terraraq.org.uk!not-for-mail
From: invalid@invalid.invalid (Richard Kettlewell)
Newsgroups: comp.os.linux.misc
Subject: Re: The joy of pipes
Date: Sat, 16 Nov 2024 10:31:57 +0000
Organization: terraraq NNTP server
Message-ID: <wwvr07bpizm.fsf@LkoBDZeT.terraraq.uk>
References: <vgns2aqlhq@dont-email.me> <20241112111426.00007245@gmail.com>
<e44df1bda1f1622a8d725c69860d3225@msgid.frell.theremailer.net>
<m2ttc9y3d8.queerchen@cmschueller.my-fqdn.de> <eli$2411141855@qaz.wtf>
<20241114160907.0000252b@gmail.com> <vh6a9k$33c17$5@dont-email.me>
<hzSdnTUBKbG_YKv6nZ2dnZfqnPQAAAAA@earthlink.com>
<A7GZO.66$hgYd.23@fx41.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: innmantic.terraraq.uk; posting-host="tunnel.sfere.anjou.terraraq.org.uk:172.17.207.6";
logging-data="123399"; mail-complaints-to="usenet@innmantic.terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:LLF1QTQrQCw9HpP8YFP5nRvNUi4=
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
+r0NzP?vnz:e/knOY)PI-
X-Boydie: NO
View all headers

Louis Krupp <lkrupp@invalid.pssw.com.invalid> writes:
> On 11/15/2024 12:49 AM, 186282@ud0s4.net wrote:
>
> On 11/14/24 9:05 PM, Lawrence D'Oliveiro wrote:
>
> On Thu, 14 Nov 2024 16:09:07 -0800, John Ames wrote:
>
> (I think it was a topic shift to applications of *nix pipes...?)
>
> Oh shelly boy, the pipes, the pipes are calling ...
>
> Pipes are good.
>
> But, really, they're just temp files the parent
> process can access.
>
> Pipes *could* be implemented with temporary disk files, at least to an
> extent, but as far as I can tell, they're not.

“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.

--
https://www.greenend.org.uk/rjk/

Subject: Re: The joy of pipes
From: Charlie Gibbs
Newsgroups: comp.os.linux.misc
Date: Sat, 16 Nov 2024 18:14 UTC
References: 1 2 3 4 5 6 7 8 9 10 11
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx10.iad.POSTED!not-for-mail
Newsgroups: comp.os.linux.misc
From: cgibbs@kltpzyxm.invalid (Charlie Gibbs)
Subject: Re: The joy of pipes
References: <vgns2aqlhq@dont-email.me> <20241112111426.00007245@gmail.com>
<e44df1bda1f1622a8d725c69860d3225@msgid.frell.theremailer.net>
<m2ttc9y3d8.queerchen@cmschueller.my-fqdn.de> <eli$2411141855@qaz.wtf>
<20241114160907.0000252b@gmail.com> <vh6a9k$33c17$5@dont-email.me>
<hzSdnTUBKbG_YKv6nZ2dnZfqnPQAAAAA@earthlink.com>
<A7GZO.66$hgYd.23@fx41.iad>
<kaOcndi2KbU9sqX6nZ2dnZfqnPSdnZ2d@earthlink.com>
<lpqrlkFqcu8U5@mid.individual.net>
User-Agent: slrn/1.0.3 (Linux)
Lines: 34
Message-ID: <Nh5_O.13522$OVd1.6907@fx10.iad>
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Sat, 16 Nov 2024 18:14:05 UTC
Date: Sat, 16 Nov 2024 18:14:05 GMT
X-Received-Bytes: 2385
View all headers

On 2024-11-16, rbowman <bowman@montana.com> wrote:

> On Sat, 16 Nov 2024 00:37:35 -0500, 186282@ud0s4.net wrote:
>
>> IF you are doing multi-threaded/process style pgms then you almost
>> HAVE to use them if you want to xmit more than a few bytes between
>> parents/children. A few years back I was experimenting with TCP/UDP
>> servers and found that it could be very useful to transmit a few
>> dozen bytes worth of active data between parents/children.
>>
>> SO ... learn yer pipes !

Our software has two modules: one runs 24/7 collecting data, while the
other handles the number crunching and user interface. The original
MS-DOS version ran the collector as a TSR. When I ported it to SCO
Unix I used named pipes.

(BTW MS-DOS and Windows implement command-line pipes using work files.)

> Message queues and shared memory are handy for IPC too. I don't think
> Microsoft ever figured either out. What they call message queues are
> completely different.

I originally played around with those methods when doing the Windows
version, but there were various drawbacks with whatever method I tried.
The DDEML version could take down the supposedly unkillable NT supervisor.

But then sockets came along, and life has been good ever since.

--
/~\ Charlie Gibbs | Growth for the sake of
\ / <cgibbs@kltpzyxm.invalid> | growth is the ideology
X I'm really at ac.dekanfrus | of the cancer cell.
/ \ if you read it the right way. | -- Edward Abbey

Subject: Re: The joy of pipes
From: Charlie Gibbs
Newsgroups: comp.os.linux.misc
Date: Sat, 16 Nov 2024 18:14 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!panix!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx10.iad.POSTED!not-for-mail
Newsgroups: comp.os.linux.misc
From: cgibbs@kltpzyxm.invalid (Charlie Gibbs)
Subject: Re: The joy of pipes
References: <vgns2aqlhq@dont-email.me> <20241112111426.00007245@gmail.com>
<e44df1bda1f1622a8d725c69860d3225@msgid.frell.theremailer.net>
<m2ttc9y3d8.queerchen@cmschueller.my-fqdn.de> <eli$2411141855@qaz.wtf>
<20241114160907.0000252b@gmail.com> <vh6a9k$33c17$5@dont-email.me>
<hzSdnTUBKbG_YKv6nZ2dnZfqnPQAAAAA@earthlink.com>
<A7GZO.66$hgYd.23@fx41.iad>
<kaOcndi2KbU9sqX6nZ2dnZfqnPSdnZ2d@earthlink.com>
<lpqrlkFqcu8U5@mid.individual.net>
<_dWdnU6ogs1XzKX6nZ2dnZfqnPWdnZ2d@earthlink.com>
User-Agent: slrn/1.0.3 (Linux)
Lines: 13
Message-ID: <Oh5_O.13523$OVd1.3808@fx10.iad>
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Sat, 16 Nov 2024 18:14:06 UTC
Date: Sat, 16 Nov 2024 18:14:06 GMT
X-Received-Bytes: 1379
View all headers

On 2024-11-16, 186282@ud0s4.net <186283@ud0s4.net> wrote:

> Whatever M$ does ... well ....... always seems
> to be FUCKED somehow.

"The day Microsoft makes a product that doesn't suck
is the day they make vacuum cleaners."

--
/~\ Charlie Gibbs | Growth for the sake of
\ / <cgibbs@kltpzyxm.invalid> | growth is the ideology
X I'm really at ac.dekanfrus | of the cancer cell.
/ \ if you read it the right way. | -- Edward Abbey

Subject: Re: The joy of pipes
From: 186282@ud0s4.net
Newsgroups: comp.os.linux.misc
Organization: wokiesux
Date: Sun, 17 Nov 2024 04:38 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!border-1.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-4.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Sun, 17 Nov 2024 04:38:57 +0000
Subject: Re: The joy of pipes
Newsgroups: comp.os.linux.misc
References: <vgns2aqlhq@dont-email.me> <20241112111426.00007245@gmail.com>
<e44df1bda1f1622a8d725c69860d3225@msgid.frell.theremailer.net>
<m2ttc9y3d8.queerchen@cmschueller.my-fqdn.de> <eli$2411141855@qaz.wtf>
<20241114160907.0000252b@gmail.com> <vh6a9k$33c17$5@dont-email.me>
<hzSdnTUBKbG_YKv6nZ2dnZfqnPQAAAAA@earthlink.com> <A7GZO.66$hgYd.23@fx41.iad>
<kaOcndi2KbU9sqX6nZ2dnZfqnPSdnZ2d@earthlink.com>
<lpqrlkFqcu8U5@mid.individual.net>
<_dWdnU6ogs1XzKX6nZ2dnZfqnPWdnZ2d@earthlink.com>
<Oh5_O.13523$OVd1.3808@fx10.iad>
From: 186283@ud0s4.net (186282@ud0s4.net)
Organization: wokiesux
Date: Sat, 16 Nov 2024 23:38:57 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <Oh5_O.13523$OVd1.3808@fx10.iad>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Message-ID: <c5mdnVjLrYj87qT6nZ2dnZfqnPadnZ2d@earthlink.com>
Lines: 12
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 99.101.150.97
X-Trace: sv3-APK/NATpQarboguTZmZnRTuHv+rs981Zp9revr8B++BdcSSXwh7lRRYYuOuTg3DLMeEpY8zvtcblwRU!3SvbnIrKEeJL+4hR3y/Jhrwlnj9ByIUMO8rllqemiatWQm69Z3VpV0S00nHBWBLFUFxncYY+BmAA!nzh3fu9JhHJ4uSnD5vPy
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
View all headers

On 11/16/24 1:14 PM, Charlie Gibbs wrote:
> On 2024-11-16, 186282@ud0s4.net <186283@ud0s4.net> wrote:
>
>> Whatever M$ does ... well ....... always seems
>> to be FUCKED somehow.
>
> "The day Microsoft makes a product that doesn't suck
> is the day they make vacuum cleaners."

LIKE that one !!! :-)

Subject: Re: The joy of pipes
From: 186282@ud0s4.net
Newsgroups: comp.os.linux.misc
Organization: wokiesux
Date: Sun, 17 Nov 2024 04:59 UTC
References: 1 2 3 4 5 6 7 8 9 10
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!border-4.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-3.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Sun, 17 Nov 2024 04:59:41 +0000
Subject: Re: The joy of pipes
Newsgroups: comp.os.linux.misc
References: <vgns2aqlhq@dont-email.me> <20241112111426.00007245@gmail.com>
<e44df1bda1f1622a8d725c69860d3225@msgid.frell.theremailer.net>
<m2ttc9y3d8.queerchen@cmschueller.my-fqdn.de> <eli$2411141855@qaz.wtf>
<20241114160907.0000252b@gmail.com> <vh6a9k$33c17$5@dont-email.me>
<hzSdnTUBKbG_YKv6nZ2dnZfqnPQAAAAA@earthlink.com> <A7GZO.66$hgYd.23@fx41.iad>
<wwvr07bpizm.fsf@LkoBDZeT.terraraq.uk>
From: 186283@ud0s4.net (186282@ud0s4.net)
Organization: wokiesux
Date: Sat, 16 Nov 2024 23:59:41 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <wwvr07bpizm.fsf@LkoBDZeT.terraraq.uk>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Message-ID: <JJOdnfSeXoej5aT6nZ2dnZfqnPSdnZ2d@earthlink.com>
Lines: 62
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 99.101.150.97
X-Trace: sv3-cc67S2QY3uxMTAaGkQnHG2B0x9U4XJFEgaJVMHptduezd+K9xqA8JAtSaluOOBqvofEYtm77FS7aL7+!pA8Exxv2jGcmcrnXaS5uqSOPwJvRBihiZezprX6IDqD9UMzfzrxkbH9Ew8RbZzH7s2kogyRgHQeo!4kCqxt9ddJHZnzjTXROC
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
View all headers

On 11/16/24 5:31 AM, Richard Kettlewell wrote:
> Louis Krupp <lkrupp@invalid.pssw.com.invalid> writes:
>> On 11/15/2024 12:49 AM, 186282@ud0s4.net wrote:
>>
>> On 11/14/24 9:05 PM, Lawrence D'Oliveiro wrote:
>>
>> On Thu, 14 Nov 2024 16:09:07 -0800, John Ames wrote:
>>
>> (I think it was a topic shift to applications of *nix pipes...?)
>>
>> Oh shelly boy, the pipes, the pipes are calling ...
>>
>> Pipes are good.
>>
>> But, really, they're just temp files the parent
>> process can access.
>>
>> Pipes *could* be implemented with temporary disk files, at least to an
>> extent, but as far as I can tell, they're not.
>
> “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. SIZE is almost
unlimited too.

Anyway, I'd made some TCP/UDP servers but the parent needed
to know the status of the children in a little more detail
than just a tiny return code - might want to terminate the
child if it'd been idle for awhile, might want to know how
much bandwidth was being used, might want to pick a good
time to do some maint routines, might want to know WHO the
connections were from. Pipes were the (relatively) easy
'C'-approved method and did the job very well.

So, for most, use pipes. Python and FPC also do pipes.
They're INTENDED for inter-process communications after
all so generally GO that way.

The Bi-Di server was the most fun ... think a "chat" app
but with the potential for more than just text - closer
to 'remote terminal'/SSH. ALMOST slipped into re-creating
an FTP app until I realized where it was going. Too much
enthusiasm. Commented-out the remote root system call
function :-)

Amazing how LITTLE code is required for such things.
Even the pre-threaded version (max cap) wasn't huge
at all (albeit the hardest to 'hold in yer head' as
to how it worked). Base examples in several langs easily
found on the net - just build-on as necessary and
then party on.

Subject: Re: The joy of pipes
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Sun, 17 Nov 2024 05:30 UTC
References: 1 2 3 4 5 6 7 8 9 10 11
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.misc
Subject: Re: The joy of pipes
Date: Sun, 17 Nov 2024 05:30:09 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <vhbv11$g397$1@dont-email.me>
References: <vgns2aqlhq@dont-email.me> <20241112111426.00007245@gmail.com>
<e44df1bda1f1622a8d725c69860d3225@msgid.frell.theremailer.net>
<m2ttc9y3d8.queerchen@cmschueller.my-fqdn.de> <eli$2411141855@qaz.wtf>
<20241114160907.0000252b@gmail.com> <vh6a9k$33c17$5@dont-email.me>
<hzSdnTUBKbG_YKv6nZ2dnZfqnPQAAAAA@earthlink.com> <A7GZO.66$hgYd.23@fx41.iad>
<wwvr07bpizm.fsf@LkoBDZeT.terraraq.uk>
<JJOdnfSeXoej5aT6nZ2dnZfqnPSdnZ2d@earthlink.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 17 Nov 2024 06:30:09 +0100 (CET)
Injection-Info: dont-email.me; posting-host="0e079645d656fd43a936f8dae4bc7735";
logging-data="527655"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18S4bYOWqeZ1GtAwE669XoV"
User-Agent: Pan/0.160 (Toresk; )
Cancel-Lock: sha1:z4AHoilvQwHrRhp/E6SYud7Y5n0=
View all headers

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.

Subject: Re: The joy of pipes
From: 186282@ud0s4.net
Newsgroups: comp.os.linux.misc
Organization: wokiesux
Date: Sun, 17 Nov 2024 06:05 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!border-2.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Sun, 17 Nov 2024 06:05:41 +0000
Subject: Re: The joy of pipes
Newsgroups: comp.os.linux.misc
References: <vgns2aqlhq@dont-email.me> <20241112111426.00007245@gmail.com>
<e44df1bda1f1622a8d725c69860d3225@msgid.frell.theremailer.net>
<m2ttc9y3d8.queerchen@cmschueller.my-fqdn.de> <eli$2411141855@qaz.wtf>
<20241114160907.0000252b@gmail.com> <vh6a9k$33c17$5@dont-email.me>
<hzSdnTUBKbG_YKv6nZ2dnZfqnPQAAAAA@earthlink.com> <A7GZO.66$hgYd.23@fx41.iad>
<wwvr07bpizm.fsf@LkoBDZeT.terraraq.uk>
<JJOdnfSeXoej5aT6nZ2dnZfqnPSdnZ2d@earthlink.com>
<vhbv11$g397$1@dont-email.me>
From: 186283@ud0s4.net (186282@ud0s4.net)
Organization: wokiesux
Date: Sun, 17 Nov 2024 01:05:20 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <vhbv11$g397$1@dont-email.me>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Message-ID: <LhadnVAfppIrGqT6nZ2dnZfqnPidnZ2d@earthlink.com>
Lines: 36
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 99.101.150.97
X-Trace: sv3-T2YOJ5K++KIHbIuno+oRh1Q0b+09U0Z3sEkP3egY/7VuH/ReepJh21R6ElkfIBlwCrMhAv0A5PsfOTC!okffZXv3zmh0SGtkBPqrun9tUxZNSt3z3fDuBRusne2VNrs0JXGgnvE0DF+A1ZiURodgjQj+tTGD!QgGDs1s5G3Yj3K+90lHX
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
View all headers

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.
any sub-process/thread can write to a file as easily
as a pipe. Just need a good naming scheme.

But, as said, better to stick to pipes for most needs.

If you're passing multi-megabyte pages of text/images
or whatever back to the parent then you're doing
something wrong. Don't hassle yer parents ! :-)

Subject: Re: The joy of pipes
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Sun, 17 Nov 2024 07:59 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (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: <vhc7pg$hhja$1@dont-email.me>
References: <vgns2aqlhq@dont-email.me> <20241112111426.00007245@gmail.com>
<e44df1bda1f1622a8d725c69860d3225@msgid.frell.theremailer.net>
<m2ttc9y3d8.queerchen@cmschueller.my-fqdn.de> <eli$2411141855@qaz.wtf>
<20241114160907.0000252b@gmail.com> <vh6a9k$33c17$5@dont-email.me>
<hzSdnTUBKbG_YKv6nZ2dnZfqnPQAAAAA@earthlink.com> <A7GZO.66$hgYd.23@fx41.iad>
<wwvr07bpizm.fsf@LkoBDZeT.terraraq.uk>
<JJOdnfSeXoej5aT6nZ2dnZfqnPSdnZ2d@earthlink.com>
<vhbv11$g397$1@dont-email.me>
<LhadnVAfppIrGqT6nZ2dnZfqnPidnZ2d@earthlink.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=
View all headers

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.

Subject: Re: The joy of pipes
From: 186282@ud0s4.net
Newsgroups: comp.os.linux.misc
Organization: wokiesux
Date: Sun, 17 Nov 2024 08:27 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!border-3.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-3.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Sun, 17 Nov 2024 08:27:34 +0000
Subject: Re: The joy of pipes
Newsgroups: comp.os.linux.misc
References: <vgns2aqlhq@dont-email.me> <20241112111426.00007245@gmail.com>
<e44df1bda1f1622a8d725c69860d3225@msgid.frell.theremailer.net>
<m2ttc9y3d8.queerchen@cmschueller.my-fqdn.de> <eli$2411141855@qaz.wtf>
<20241114160907.0000252b@gmail.com> <vh6a9k$33c17$5@dont-email.me>
<hzSdnTUBKbG_YKv6nZ2dnZfqnPQAAAAA@earthlink.com> <A7GZO.66$hgYd.23@fx41.iad>
<wwvr07bpizm.fsf@LkoBDZeT.terraraq.uk>
<JJOdnfSeXoej5aT6nZ2dnZfqnPSdnZ2d@earthlink.com>
<vhbv11$g397$1@dont-email.me>
<LhadnVAfppIrGqT6nZ2dnZfqnPidnZ2d@earthlink.com>
<vhc7pg$hhja$1@dont-email.me>
From: 186283@ud0s4.net (186282@ud0s4.net)
Organization: wokiesux
Date: Sun, 17 Nov 2024 03:27:33 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <vhc7pg$hhja$1@dont-email.me>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Message-ID: <e9GdnduytNdrNaT6nZ2dnZfqnPudnZ2d@earthlink.com>
Lines: 42
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 99.101.150.97
X-Trace: sv3-JBWq3ryaG5Jt1wXvwgXgN3/2cTLI6LF89wptrrTjJ5xdB4rvX3q/Gfj9pbDIC7SFEoOIRu3Mcz+/How!+cniM4G8wokIkWJmrQ0SAnzKt72hcx5U9o3FH8ty/gc/15n5/M6RwykN09E7GIJ9NpF5rKJANDkl!1ti7U3vYmFV7xV0R09xx
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
View all headers

On 11/17/24 2:59 AM, Lawrence D'Oliveiro wrote:
> 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.

What ? Can't figure that out ? :-)

Anyway, again as said, I agree that pipes ARE
generally much better for these sorts of
purposes.

You seem to be making a war here where none
actually exists.

Subject: Re: The joy of pipes
From: Richard Kettlewell
Newsgroups: comp.os.linux.misc
Organization: terraraq NNTP server
Date: Sun, 17 Nov 2024 08:42 UTC
References: 1 2 3 4 5 6 7 8 9 10 11
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!nntp.terraraq.uk!.POSTED.tunnel.sfere.anjou.terraraq.org.uk!not-for-mail
From: invalid@invalid.invalid (Richard Kettlewell)
Newsgroups: comp.os.linux.misc
Subject: Re: The joy of pipes
Date: Sun, 17 Nov 2024 08:42:12 +0000
Organization: terraraq NNTP server
Message-ID: <wwvwmh2z1y3.fsf@LkoBDZeT.terraraq.uk>
References: <vgns2aqlhq@dont-email.me> <20241112111426.00007245@gmail.com>
<e44df1bda1f1622a8d725c69860d3225@msgid.frell.theremailer.net>
<m2ttc9y3d8.queerchen@cmschueller.my-fqdn.de> <eli$2411141855@qaz.wtf>
<20241114160907.0000252b@gmail.com> <vh6a9k$33c17$5@dont-email.me>
<hzSdnTUBKbG_YKv6nZ2dnZfqnPQAAAAA@earthlink.com>
<A7GZO.66$hgYd.23@fx41.iad> <wwvr07bpizm.fsf@LkoBDZeT.terraraq.uk>
<JJOdnfSeXoej5aT6nZ2dnZfqnPSdnZ2d@earthlink.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: innmantic.terraraq.uk; posting-host="tunnel.sfere.anjou.terraraq.org.uk:172.17.207.6";
logging-data="145058"; mail-complaints-to="usenet@innmantic.terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:h6f1rOpROt9RwOPgRyPplu6LJp0=
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
+r0NzP?vnz:e/knOY)PI-
X-Boydie: NO
View all headers

"186282@ud0s4.net" <186283@ud0s4.net> writes:
> On 11/16/24 5:31 AM, Richard Kettlewell wrote:
>> Louis Krupp <lkrupp@invalid.pssw.com.invalid> writes:

>>>> But, really, they're just temp files the parent process can access.
>>>
>>> Pipes *could* be implemented with temporary disk files, at least to an
>>> extent, but as far as I can tell, they're not.
>>
>> “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,

Indeed. You said they’re really the same, which they’re not.

> just that they CAN do most of the stuff pipes are used for and in an
> easier user/code-friendly fashion.

There’s certainly an overlap in the end goals you can meet with them,
but even within that overlap they’re used in slightly different ways.

> SIZE is almost unlimited too.

Capacity is one of the ways in which they are very different, already
alluded to above.

> Anyway, I'd made some TCP/UDP servers but the parent needed
> to know the status of the children in a little more detail
> than just a tiny return code - might want to terminate the
> child if it'd been idle for awhile, might want to know how
> much bandwidth was being used, might want to pick a good
> time to do some maint routines, might want to know WHO the
> connections were from. Pipes were the (relatively) easy
> 'C'-approved method and did the job very well.

I’ve no idea what you think “’C’-approved” means. C is a programming
language, not a set of guidelines. Pipes are an OS concept, not
appearing in the C language standard.

--
https://www.greenend.org.uk/rjk/

Subject: Re: The joy of pipes
From: 186282@ud0s4.net
Newsgroups: comp.os.linux.misc
Organization: wokiesux
Date: Mon, 18 Nov 2024 03:50 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!border-4.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-4.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 18 Nov 2024 03:50:42 +0000
Subject: Re: The joy of pipes
Newsgroups: comp.os.linux.misc
References: <vgns2aqlhq@dont-email.me> <20241112111426.00007245@gmail.com>
<e44df1bda1f1622a8d725c69860d3225@msgid.frell.theremailer.net>
<m2ttc9y3d8.queerchen@cmschueller.my-fqdn.de> <eli$2411141855@qaz.wtf>
<20241114160907.0000252b@gmail.com> <vh6a9k$33c17$5@dont-email.me>
<hzSdnTUBKbG_YKv6nZ2dnZfqnPQAAAAA@earthlink.com> <A7GZO.66$hgYd.23@fx41.iad>
<wwvr07bpizm.fsf@LkoBDZeT.terraraq.uk>
<JJOdnfSeXoej5aT6nZ2dnZfqnPSdnZ2d@earthlink.com>
<wwvwmh2z1y3.fsf@LkoBDZeT.terraraq.uk>
From: 186283@ud0s4.net (186282@ud0s4.net)
Organization: wokiesux
Date: Sun, 17 Nov 2024 22:50:41 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <wwvwmh2z1y3.fsf@LkoBDZeT.terraraq.uk>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Message-ID: <Uv-dnfY4yvgPJKf6nZ2dnZfqnPSdnZ2d@earthlink.com>
Lines: 83
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 99.101.150.97
X-Trace: sv3-jUDPEjeqYrX2b4piyUcHgWJal+hRrfryJxXbjK68QEMth2DwWodmJ/6Xy5rUhZqDW0Ir92Pva+nKpr2!JfQuHhrsXUsB3gWXyFfzBeNxxHlVJ7/VZ5w/5Wmr7gNoqxn8CHQy2Av8TwvG1alNaEXy6+Br4a0g!t0w3iEjOYPGNt7Dg9Mkd
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
View all headers

On 11/17/24 3:42 AM, Richard Kettlewell wrote:
> "186282@ud0s4.net" <186283@ud0s4.net> writes:
>> On 11/16/24 5:31 AM, Richard Kettlewell wrote:
>>> Louis Krupp <lkrupp@invalid.pssw.com.invalid> writes:
>
>>>>> But, really, they're just temp files the parent process can access.
>>>>
>>>> Pipes *could* be implemented with temporary disk files, at least to an
>>>> extent, but as far as I can tell, they're not.
>>>
>>> “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,
>
> Indeed. You said they’re really the same, which they’re not.

Umm ... they're all "blocks of information", however
stored/accessed. The little details are, well, the
little details.

>> just that they CAN do most of the stuff pipes are used for and in an
>> easier user/code-friendly fashion.
>
> There’s certainly an overlap in the end goals you can meet with them,
> but even within that overlap they’re used in slightly different ways.
>
>> SIZE is almost unlimited too.
>
> Capacity is one of the ways in which they are very different, already
> alluded to above.

As I said somewhere, if your child processes are sending
megabytes back to the parent you're DOING SOMETHING WRONG.
Using files -vs- pipes you CAN xmit mass quantities of
data between parent/child and or child/child but that's
probably not the best way to write your app. Leave the
parent to do 'parent stuff' mostly.

But somebody, somewhere, for some reason, MIGHT wanna
do it differently ... and maybe, in context, it's for
a good reason. I'm not gonna piss all over them.

>> Anyway, I'd made some TCP/UDP servers but the parent needed
>> to know the status of the children in a little more detail
>> than just a tiny return code - might want to terminate the
>> child if it'd been idle for awhile, might want to know how
>> much bandwidth was being used, might want to pick a good
>> time to do some maint routines, might want to know WHO the
>> connections were from. Pipes were the (relatively) easy
>> 'C'-approved method and did the job very well.
>
> I’ve no idea what you think “’C’-approved” means. C is a programming
> language, not a set of guidelines. Pipes are an OS concept, not
> appearing in the C language standard.

The 'C' Way IS a sort of 'philosophy' I think ... an
approach to programming and data-use. Most every lang
is that way. The Algol/Pascal/Modula approach is a bit
different, another 'look and feel' to all the issues.
Everybody has what they think is "The Best Way" - of
thinking/doing. Otherwise we shoulda all stuck with ASM.
No FORTRAN, no COBOL, no LISP, no Algol, no 'C' ....

The way 'C' does interprocess comms was writ in, by and
for 'C'. As such if you're doing 'C' you will have the
best luck and least angst going with the flow.

You can also send/receive between parent/child and
such by passing socket info. See :

https://stackoverflow.com/questions/14427898/how-can-i-pass-a-socket-from-parent-to-child-processes

Subject: Re: The joy of pipes
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Mon, 18 Nov 2024 06:06 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.misc
Subject: Re: The joy of pipes
Date: Mon, 18 Nov 2024 06:06:14 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 6
Message-ID: <vhelgl$142m9$2@dont-email.me>
References: <vgns2aqlhq@dont-email.me> <20241112111426.00007245@gmail.com>
<e44df1bda1f1622a8d725c69860d3225@msgid.frell.theremailer.net>
<m2ttc9y3d8.queerchen@cmschueller.my-fqdn.de> <eli$2411141855@qaz.wtf>
<20241114160907.0000252b@gmail.com> <vh6a9k$33c17$5@dont-email.me>
<hzSdnTUBKbG_YKv6nZ2dnZfqnPQAAAAA@earthlink.com> <A7GZO.66$hgYd.23@fx41.iad>
<wwvr07bpizm.fsf@LkoBDZeT.terraraq.uk>
<JJOdnfSeXoej5aT6nZ2dnZfqnPSdnZ2d@earthlink.com>
<wwvwmh2z1y3.fsf@LkoBDZeT.terraraq.uk>
<Uv-dnfY4yvgPJKf6nZ2dnZfqnPSdnZ2d@earthlink.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 18 Nov 2024 07:06:14 +0100 (CET)
Injection-Info: dont-email.me; posting-host="b3d2674dac7de3bb2b439499c252dd12";
logging-data="1182409"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX197Syf/NIJIpXTFiqyVlZi9"
User-Agent: Pan/0.160 (Toresk; )
Cancel-Lock: sha1:ERxBls1JoBdRsWesVUqV7P9r22k=
View all headers

On Sun, 17 Nov 2024 22:50:41 -0500, 186282@ud0s4.net wrote:

> As I said somewhere, if your child processes are sending megabytes
> back to the parent you're DOING SOMETHING WRONG.

Says the one who has no clue how to write real-world programs.

Subject: Re: The joy of pipes
From: 186282@ud0s4.net
Newsgroups: comp.os.linux.misc
Organization: wokiesux
Date: Mon, 18 Nov 2024 06:51 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!border-1.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 18 Nov 2024 06:51:59 +0000
Subject: Re: The joy of pipes
Newsgroups: comp.os.linux.misc
References: <vgns2aqlhq@dont-email.me> <20241112111426.00007245@gmail.com>
<e44df1bda1f1622a8d725c69860d3225@msgid.frell.theremailer.net>
<m2ttc9y3d8.queerchen@cmschueller.my-fqdn.de> <eli$2411141855@qaz.wtf>
<20241114160907.0000252b@gmail.com> <vh6a9k$33c17$5@dont-email.me>
<hzSdnTUBKbG_YKv6nZ2dnZfqnPQAAAAA@earthlink.com> <A7GZO.66$hgYd.23@fx41.iad>
<wwvr07bpizm.fsf@LkoBDZeT.terraraq.uk>
<JJOdnfSeXoej5aT6nZ2dnZfqnPSdnZ2d@earthlink.com>
<wwvwmh2z1y3.fsf@LkoBDZeT.terraraq.uk>
<Uv-dnfY4yvgPJKf6nZ2dnZfqnPSdnZ2d@earthlink.com>
<vhelgl$142m9$2@dont-email.me>
From: 186283@ud0s4.net (186282@ud0s4.net)
Organization: wokiesux
Date: Mon, 18 Nov 2024 01:51:59 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <vhelgl$142m9$2@dont-email.me>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Message-ID: <UricnZ0glICSeaf6nZ2dnZfqn_adnZ2d@earthlink.com>
Lines: 19
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 99.101.150.97
X-Trace: sv3-UcqiZmoiprxmIxUqm9B0FL9p0PDWdOjN6yNHy4q7AiC12rbihk5Wv4NFQgMsu7atu3lmHVenwgBYsXu!vD+HndBl/nVmOLPZADHUGN8miJwvfl477IM4edzx5eC0CGv2nQu2ELQYJz8C284glaUVVvGUgh04!tKDLF8WBZcv2bDJy2r58
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
View all headers

On 11/18/24 1:06 AM, Lawrence D'Oliveiro wrote:
> On Sun, 17 Nov 2024 22:50:41 -0500, 186282@ud0s4.net wrote:
>
>> As I said somewhere, if your child processes are sending megabytes
>> back to the parent you're DOING SOMETHING WRONG.
>
> Says the one who has no clue how to write real-world programs.

Am I supposed to say something horrible about
you now ?

Nope. Won't. I'm sick of 'The Wars'.

Clue - I've writ 'real world programs' and
got paid well for them from the punch-card
days on. I did it my way, for my reasons,
my 'vision'.

And so did you.

Subject: Re: The joy of pipes
From: Pancho
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Mon, 18 Nov 2024 09:20 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Pancho.Jones@proton.me (Pancho)
Newsgroups: comp.os.linux.misc
Subject: Re: The joy of pipes
Date: Mon, 18 Nov 2024 09:20:23 +0000
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <vhf0sn$15fdk$1@dont-email.me>
References: <vgns2aqlhq@dont-email.me> <20241112111426.00007245@gmail.com>
<e44df1bda1f1622a8d725c69860d3225@msgid.frell.theremailer.net>
<m2ttc9y3d8.queerchen@cmschueller.my-fqdn.de> <eli$2411141855@qaz.wtf>
<20241114160907.0000252b@gmail.com> <vh6a9k$33c17$5@dont-email.me>
<hzSdnTUBKbG_YKv6nZ2dnZfqnPQAAAAA@earthlink.com> <A7GZO.66$hgYd.23@fx41.iad>
<wwvr07bpizm.fsf@LkoBDZeT.terraraq.uk>
<JJOdnfSeXoej5aT6nZ2dnZfqnPSdnZ2d@earthlink.com>
<wwvwmh2z1y3.fsf@LkoBDZeT.terraraq.uk>
<Uv-dnfY4yvgPJKf6nZ2dnZfqnPSdnZ2d@earthlink.com>
<vhelgl$142m9$2@dont-email.me>
<UricnZ0glICSeaf6nZ2dnZfqn_adnZ2d@earthlink.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 18 Nov 2024 10:20:26 +0100 (CET)
Injection-Info: dont-email.me; posting-host="4bb256e55187fc1c7fdad52720ab946c";
logging-data="1228212"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+boLgn5f1zWQpA5td7UchihVa1ZkEgtzQ="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:EfhUeYgFSo8AFW7hn1J/cqB5Qyk=
Content-Language: en-GB
In-Reply-To: <UricnZ0glICSeaf6nZ2dnZfqn_adnZ2d@earthlink.com>
View all headers

On 11/18/24 06:51, 186282@ud0s4.net wrote:
> On 11/18/24 1:06 AM, Lawrence D'Oliveiro wrote:
>> On Sun, 17 Nov 2024 22:50:41 -0500, 186282@ud0s4.net wrote:
>>
>>> As I said somewhere, if your child processes are sending megabytes
>>> back to the parent you're DOING SOMETHING WRONG.
>>
>> Says the one who has no clue how to write real-world programs.
>
>   Am I supposed to say something horrible about
>   you now ?
>
>   Nope. Won't. I'm sick of 'The Wars'.
>
>   Clue - I've writ 'real world programs' and
>   got paid well for them from the punch-card
>   days on. I did it my way, for my reasons,
>   my 'vision'.
>
>   And so did you.

I mainly did as I was told. In large political organisations following
your own vision can be problematic. You have to fight for a vision.

I've no idea why using IPC to send megabytes of data between different
processes is wrong. That is what many service-orientated architectures
do. The moment you have a persistence service it is likely to happen.

Although to be fair we very rarely used pipes, directly, almost never.
It was always something like REST or message queues.

Subject: Re: The joy of pipes
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Mon, 18 Nov 2024 09:36 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.misc
Subject: Re: The joy of pipes
Date: Mon, 18 Nov 2024 09:36:16 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <vhf1qg$165g7$1@dont-email.me>
References: <vgns2aqlhq@dont-email.me> <20241112111426.00007245@gmail.com>
<e44df1bda1f1622a8d725c69860d3225@msgid.frell.theremailer.net>
<m2ttc9y3d8.queerchen@cmschueller.my-fqdn.de> <eli$2411141855@qaz.wtf>
<20241114160907.0000252b@gmail.com> <vh6a9k$33c17$5@dont-email.me>
<hzSdnTUBKbG_YKv6nZ2dnZfqnPQAAAAA@earthlink.com> <A7GZO.66$hgYd.23@fx41.iad>
<wwvr07bpizm.fsf@LkoBDZeT.terraraq.uk>
<JJOdnfSeXoej5aT6nZ2dnZfqnPSdnZ2d@earthlink.com>
<wwvwmh2z1y3.fsf@LkoBDZeT.terraraq.uk>
<Uv-dnfY4yvgPJKf6nZ2dnZfqnPSdnZ2d@earthlink.com>
<vhelgl$142m9$2@dont-email.me>
<UricnZ0glICSeaf6nZ2dnZfqn_adnZ2d@earthlink.com>
<vhf0sn$15fdk$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 18 Nov 2024 10:36:17 +0100 (CET)
Injection-Info: dont-email.me; posting-host="b3d2674dac7de3bb2b439499c252dd12";
logging-data="1250823"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18HJMvaqarsNTaHUpkjA+wU"
User-Agent: Pan/0.160 (Toresk; )
Cancel-Lock: sha1:1E6cErO19H2u/MInvFj7KX1GfwU=
View all headers

On Mon, 18 Nov 2024 09:20:23 +0000, Pancho wrote:

> I've no idea why using IPC to send megabytes of data between different
> processes is wrong.

It is something I have done. It’s perfectly commonplace.

> Although to be fair we very rarely used pipes, directly, almost never.

I have used pipes, I have used Unix sockets, I have used network sockets.

If you are running a Linux GUI, then almost certainly it is built on D-Bus
as a high-level IPC mechanism that is used as a core component. That is
designed to run over Unix sockets. It is not itself designed for high-
bandwidth data transfers; if you want to do that, you can exchange your
own D-Bus messages to set up custom pipe or Unix socket connections
between bus peers.

> It was always something like REST or message queues.

Message queues are an OS-provided primitive, but REST is not -- that is a
protocol, not a transport. What transport(s) did you use for that? I would
assume network connections.

Subject: Re: The joy of pipes
From: Pancho
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Mon, 18 Nov 2024 11:05 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Pancho.Jones@proton.me (Pancho)
Newsgroups: comp.os.linux.misc
Subject: Re: The joy of pipes
Date: Mon, 18 Nov 2024 11:05:03 +0000
Organization: A noiseless patient Spider
Lines: 38
Message-ID: <vhf70v$16jpu$1@dont-email.me>
References: <vgns2aqlhq@dont-email.me> <20241112111426.00007245@gmail.com>
<e44df1bda1f1622a8d725c69860d3225@msgid.frell.theremailer.net>
<m2ttc9y3d8.queerchen@cmschueller.my-fqdn.de> <eli$2411141855@qaz.wtf>
<20241114160907.0000252b@gmail.com> <vh6a9k$33c17$5@dont-email.me>
<hzSdnTUBKbG_YKv6nZ2dnZfqnPQAAAAA@earthlink.com> <A7GZO.66$hgYd.23@fx41.iad>
<wwvr07bpizm.fsf@LkoBDZeT.terraraq.uk>
<JJOdnfSeXoej5aT6nZ2dnZfqnPSdnZ2d@earthlink.com>
<wwvwmh2z1y3.fsf@LkoBDZeT.terraraq.uk>
<Uv-dnfY4yvgPJKf6nZ2dnZfqnPSdnZ2d@earthlink.com>
<vhelgl$142m9$2@dont-email.me>
<UricnZ0glICSeaf6nZ2dnZfqn_adnZ2d@earthlink.com>
<vhf0sn$15fdk$1@dont-email.me> <vhf1qg$165g7$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 18 Nov 2024 12:05:03 +0100 (CET)
Injection-Info: dont-email.me; posting-host="4bb256e55187fc1c7fdad52720ab946c";
logging-data="1265470"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/6SAMIa7BzdvLlEZjyXPZhNNvHaf+2DM8="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:yiJJUk0KBqSo+LXzmZQGE8KcWRg=
Content-Language: en-GB
In-Reply-To: <vhf1qg$165g7$1@dont-email.me>
View all headers

On 11/18/24 09:36, Lawrence D'Oliveiro wrote:
> On Mon, 18 Nov 2024 09:20:23 +0000, Pancho wrote:
>
>> I've no idea why using IPC to send megabytes of data between different
>> processes is wrong.
>
> It is something I have done. It’s perfectly commonplace.
>
>> Although to be fair we very rarely used pipes, directly, almost never.
>
> I have used pipes, I have used Unix sockets, I have used network sockets.
>
> If you are running a Linux GUI, then almost certainly it is built on D-Bus
> as a high-level IPC mechanism that is used as a core component. That is
> designed to run over Unix sockets. It is not itself designed for high-
> bandwidth data transfers; if you want to do that, you can exchange your
> own D-Bus messages to set up custom pipe or Unix socket connections
> between bus peers.
>
>> It was always something like REST or message queues.
>
> Message queues are an OS-provided primitive, but REST is not -- that is a
> protocol, not a transport. What transport(s) did you use for that? I would
> assume network connections.

I don't know if Linux provides message queues as a primitive, or not. I
meant I used message queue protocols (MQTT,zeroMQ, ActiveMQ).

I guess I was saying as a software developer I only cared about the
application layer, I never went down to the level of using pipes
directly. I would have thought my experience was reasonably normal, for
the last few decades. The period after software developers needed to
roll everything themselves.

I do remember looking at named pipes and deciding it was appropriate for
some task, but I have no memory of actually implementing it. Which could
mean it just worked and I never thought about it again, or it could mean
I didn't do it.

Subject: Re: The joy of pipes
From: The Natural Philosop
Newsgroups: comp.os.linux.misc
Organization: A little, after lunch
Date: Mon, 18 Nov 2024 13:45 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.os.linux.misc
Subject: Re: The joy of pipes
Date: Mon, 18 Nov 2024 13:45:58 +0000
Organization: A little, after lunch
Lines: 15
Message-ID: <vhfgem$191cl$1@dont-email.me>
References: <vgns2aqlhq@dont-email.me> <20241112111426.00007245@gmail.com>
<e44df1bda1f1622a8d725c69860d3225@msgid.frell.theremailer.net>
<m2ttc9y3d8.queerchen@cmschueller.my-fqdn.de> <eli$2411141855@qaz.wtf>
<20241114160907.0000252b@gmail.com> <vh6a9k$33c17$5@dont-email.me>
<hzSdnTUBKbG_YKv6nZ2dnZfqnPQAAAAA@earthlink.com> <A7GZO.66$hgYd.23@fx41.iad>
<wwvr07bpizm.fsf@LkoBDZeT.terraraq.uk>
<JJOdnfSeXoej5aT6nZ2dnZfqnPSdnZ2d@earthlink.com>
<wwvwmh2z1y3.fsf@LkoBDZeT.terraraq.uk>
<Uv-dnfY4yvgPJKf6nZ2dnZfqnPSdnZ2d@earthlink.com>
<vhelgl$142m9$2@dont-email.me>
<UricnZ0glICSeaf6nZ2dnZfqn_adnZ2d@earthlink.com>
<vhf0sn$15fdk$1@dont-email.me> <vhf1qg$165g7$1@dont-email.me>
<vhf70v$16jpu$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 18 Nov 2024 14:45:59 +0100 (CET)
Injection-Info: dont-email.me; posting-host="2e917996ec38cf17340bfff54bed5c0b";
logging-data="1344917"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19O17QLZpHUfINpoqDKsxNcKRn1tEnZ/es="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Q7GnBZ7OqTRvFH7czB6AqtFmm3U=
In-Reply-To: <vhf70v$16jpu$1@dont-email.me>
Content-Language: en-GB
View all headers

On 18/11/2024 11:05, Pancho wrote:
> I do remember looking at named pipes and deciding it was appropriate for
> some task, but I have no memory of actually implementing it. Which could
> mean it just worked and I never thought about it again, or it could mean
> I didn't do it.

Similar here.
I've tended to use ramdisk files ... for interprocess communication. Not
idiot proof, but can be made fit for purpose.

--
No Apple devices were knowingly used in the preparation of this post.

Subject: Re: The joy of pipes
From: Pancho
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Mon, 18 Nov 2024 17:04 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Pancho.Jones@proton.me (Pancho)
Newsgroups: comp.os.linux.misc
Subject: Re: The joy of pipes
Date: Mon, 18 Nov 2024 17:04:35 +0000
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <vhfs33$1b3a5$3@dont-email.me>
References: <vgns2aqlhq@dont-email.me> <20241112111426.00007245@gmail.com>
<e44df1bda1f1622a8d725c69860d3225@msgid.frell.theremailer.net>
<m2ttc9y3d8.queerchen@cmschueller.my-fqdn.de> <eli$2411141855@qaz.wtf>
<20241114160907.0000252b@gmail.com> <vh6a9k$33c17$5@dont-email.me>
<hzSdnTUBKbG_YKv6nZ2dnZfqnPQAAAAA@earthlink.com> <A7GZO.66$hgYd.23@fx41.iad>
<wwvr07bpizm.fsf@LkoBDZeT.terraraq.uk>
<JJOdnfSeXoej5aT6nZ2dnZfqnPSdnZ2d@earthlink.com>
<wwvwmh2z1y3.fsf@LkoBDZeT.terraraq.uk>
<Uv-dnfY4yvgPJKf6nZ2dnZfqnPSdnZ2d@earthlink.com>
<vhelgl$142m9$2@dont-email.me>
<UricnZ0glICSeaf6nZ2dnZfqn_adnZ2d@earthlink.com>
<vhf0sn$15fdk$1@dont-email.me> <vhf1qg$165g7$1@dont-email.me>
<vhf70v$16jpu$1@dont-email.me> <vhfgem$191cl$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 18 Nov 2024 18:04:35 +0100 (CET)
Injection-Info: dont-email.me; posting-host="4bb256e55187fc1c7fdad52720ab946c";
logging-data="1412421"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+CgFgk+fgcKsQy3hSqTaISb9hCeTPxwQk="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:hFcCwzyRtlVr0N5m9/ftg4JmpV0=
Content-Language: en-GB
In-Reply-To: <vhfgem$191cl$1@dont-email.me>
View all headers

On 11/18/24 13:45, The Natural Philosopher wrote:
> On 18/11/2024 11:05, Pancho wrote:
>> I do remember looking at named pipes and deciding it was appropriate
>> for some task, but I have no memory of actually implementing it. Which
>> could mean it just worked and I never thought about it again, or it
>> could mean I didn't do it.
>
> Similar here.
> I've tended to use ramdisk files ... for interprocess communication. Not
> idiot proof, but can be made fit for purpose.
>

I guess simpler than shared memory sections.

One of my golden rules of programming was - show me some RAM and I will
squander it on a cache. :-) Although, my crime was mainly in memory
databases.

Subject: Re: The joy of pipes
From: The Natural Philosop
Newsgroups: comp.os.linux.misc
Organization: A little, after lunch
Date: Mon, 18 Nov 2024 17:47 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.os.linux.misc
Subject: Re: The joy of pipes
Date: Mon, 18 Nov 2024 17:47:34 +0000
Organization: A little, after lunch
Lines: 37
Message-ID: <vhfujm$1bub8$1@dont-email.me>
References: <vgns2aqlhq@dont-email.me> <20241112111426.00007245@gmail.com>
<e44df1bda1f1622a8d725c69860d3225@msgid.frell.theremailer.net>
<m2ttc9y3d8.queerchen@cmschueller.my-fqdn.de> <eli$2411141855@qaz.wtf>
<20241114160907.0000252b@gmail.com> <vh6a9k$33c17$5@dont-email.me>
<hzSdnTUBKbG_YKv6nZ2dnZfqnPQAAAAA@earthlink.com> <A7GZO.66$hgYd.23@fx41.iad>
<wwvr07bpizm.fsf@LkoBDZeT.terraraq.uk>
<JJOdnfSeXoej5aT6nZ2dnZfqnPSdnZ2d@earthlink.com>
<wwvwmh2z1y3.fsf@LkoBDZeT.terraraq.uk>
<Uv-dnfY4yvgPJKf6nZ2dnZfqnPSdnZ2d@earthlink.com>
<vhelgl$142m9$2@dont-email.me>
<UricnZ0glICSeaf6nZ2dnZfqn_adnZ2d@earthlink.com>
<vhf0sn$15fdk$1@dont-email.me> <vhf1qg$165g7$1@dont-email.me>
<vhf70v$16jpu$1@dont-email.me> <vhfgem$191cl$1@dont-email.me>
<vhfs33$1b3a5$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 18 Nov 2024 18:47:42 +0100 (CET)
Injection-Info: dont-email.me; posting-host="2e917996ec38cf17340bfff54bed5c0b";
logging-data="1440104"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19g/Ng9mX5+rd5z+1TkcZ+t0FA02YRidC0="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Zo6NBkFwkAY6FfqCnW60P+ZoXkE=
Content-Language: en-GB
In-Reply-To: <vhfs33$1b3a5$3@dont-email.me>
View all headers

On 18/11/2024 17:04, Pancho wrote:
> On 11/18/24 13:45, The Natural Philosopher wrote:
>> On 18/11/2024 11:05, Pancho wrote:
>>> I do remember looking at named pipes and deciding it was appropriate
>>> for some task, but I have no memory of actually implementing it.
>>> Which could mean it just worked and I never thought about it again,
>>> or it could mean I didn't do it.
>>
>> Similar here.
>> I've tended to use ramdisk files ... for interprocess communication.
>> Not idiot proof, but can be made fit for purpose.
>>
>
> I guess simpler than shared memory sections.

A ram disk IS effectively a shared memory section.
But with well known ways to access it - and well known issues about race
conditions if two+ processes try to write to it
In the end the issues are just the same, only the coding and sometimes
access speed is different.

>
> One of my golden rules of programming was - show me some RAM and I will
> squander it on a cache. :-) Although, my crime was mainly in memory
> databases.
>
RAM space has never ever been as problem for me when using low level
languages.

>

--
Renewable energy: Expensive solutions that don't work to a problem that
doesn't exist instituted by self legalising protection rackets that
don't protect, masquerading as public servants who don't serve the public.

Subject: Re: The joy of pipes
From: rbowman
Newsgroups: comp.os.linux.misc
Date: Mon, 18 Nov 2024 17:54 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bowman@montana.com (rbowman)
Newsgroups: comp.os.linux.misc
Subject: Re: The joy of pipes
Date: 18 Nov 2024 17:54:30 GMT
Lines: 13
Message-ID: <lq1dalFqbacU1@mid.individual.net>
References: <vgns2aqlhq@dont-email.me> <20241112111426.00007245@gmail.com>
<e44df1bda1f1622a8d725c69860d3225@msgid.frell.theremailer.net>
<m2ttc9y3d8.queerchen@cmschueller.my-fqdn.de> <eli$2411141855@qaz.wtf>
<20241114160907.0000252b@gmail.com> <vh6a9k$33c17$5@dont-email.me>
<hzSdnTUBKbG_YKv6nZ2dnZfqnPQAAAAA@earthlink.com> <A7GZO.66$hgYd.23@fx41.iad>
<wwvr07bpizm.fsf@LkoBDZeT.terraraq.uk>
<JJOdnfSeXoej5aT6nZ2dnZfqnPSdnZ2d@earthlink.com>
<wwvwmh2z1y3.fsf@LkoBDZeT.terraraq.uk>
<Uv-dnfY4yvgPJKf6nZ2dnZfqnPSdnZ2d@earthlink.com>
<vhelgl$142m9$2@dont-email.me>
<UricnZ0glICSeaf6nZ2dnZfqn_adnZ2d@earthlink.com>
<vhf0sn$15fdk$1@dont-email.me> <vhf1qg$165g7$1@dont-email.me>
<vhf70v$16jpu$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net WyIfDaeeioG++XP09VsSjAM5MY4TdigtTqnBxBy0L567eBxudG
Cancel-Lock: sha1:MVBf0nnPcWOjXG3oDhK9SfVTLvc= sha256:xly4LSthkBf5KoDA8cyMrFOuobEujeVbPk/1qzKQpjI=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
View all headers

On Mon, 18 Nov 2024 11:05:03 +0000, Pancho wrote:

> I don't know if Linux provides message queues as a primitive, or not. I
> meant I used message queue protocols (MQTT,zeroMQ, ActiveMQ).

https://www.softprayog.in/programming/interprocess-communication-using-
system-v-message-queues-in-linux

https://www.softprayog.in/programming/interprocess-communication-using-
posix-message-queues-in-linux

I've only used System V queues. Neither work like ActiveMQ.

Subject: Re: The joy of pipes
From: rbowman
Newsgroups: comp.os.linux.misc
Date: Mon, 18 Nov 2024 17:59 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bowman@montana.com (rbowman)
Newsgroups: comp.os.linux.misc
Subject: Re: The joy of pipes
Date: 18 Nov 2024 17:59:48 GMT
Lines: 12
Message-ID: <lq1dkkFqbacU2@mid.individual.net>
References: <vgns2aqlhq@dont-email.me> <20241112111426.00007245@gmail.com>
<e44df1bda1f1622a8d725c69860d3225@msgid.frell.theremailer.net>
<m2ttc9y3d8.queerchen@cmschueller.my-fqdn.de> <eli$2411141855@qaz.wtf>
<20241114160907.0000252b@gmail.com> <vh6a9k$33c17$5@dont-email.me>
<hzSdnTUBKbG_YKv6nZ2dnZfqnPQAAAAA@earthlink.com> <A7GZO.66$hgYd.23@fx41.iad>
<wwvr07bpizm.fsf@LkoBDZeT.terraraq.uk>
<JJOdnfSeXoej5aT6nZ2dnZfqnPSdnZ2d@earthlink.com>
<wwvwmh2z1y3.fsf@LkoBDZeT.terraraq.uk>
<Uv-dnfY4yvgPJKf6nZ2dnZfqnPSdnZ2d@earthlink.com>
<vhelgl$142m9$2@dont-email.me>
<UricnZ0glICSeaf6nZ2dnZfqn_adnZ2d@earthlink.com>
<vhf0sn$15fdk$1@dont-email.me> <vhf1qg$165g7$1@dont-email.me>
<vhf70v$16jpu$1@dont-email.me> <vhfgem$191cl$1@dont-email.me>
<vhfs33$1b3a5$3@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net kUDu9RFYJK71bMz+XAmx+ggfOIWKqkYcU0j6Iqxmg8hXG9AHpD
Cancel-Lock: sha1:kcyHew/ToL3gGBkDrGoixUAaFoc= sha256:G86DMoDk1bElyZNmdNBwIq+q3Q+l101ggc/R0bZWHrE=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
View all headers

On Mon, 18 Nov 2024 17:04:35 +0000, Pancho wrote:

> I guess simpler than shared memory sections.
>
> One of my golden rules of programming was - show me some RAM and I will
> squander it on a cache. Although, my crime was mainly in memory
> databases.

https://www.softprayog.in/programming/interprocess-communication-using-
system-v-shared-memory-in-linux

Shared memory may be faster.

Subject: Re: The joy of pipes
From: 186282@ud0s4.net
Newsgroups: comp.os.linux.misc
Organization: wokiesux
Date: Tue, 19 Nov 2024 03:32 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!border-2.nntp.ord.giganews.com!nntp.giganews.com!local-4.nntp.ord.giganews.com!Xl.tags.giganews.com!local-3.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Tue, 19 Nov 2024 03:32:17 +0000
Subject: Re: The joy of pipes
Newsgroups: comp.os.linux.misc
References: <vgns2aqlhq@dont-email.me> <20241112111426.00007245@gmail.com>
<e44df1bda1f1622a8d725c69860d3225@msgid.frell.theremailer.net>
<m2ttc9y3d8.queerchen@cmschueller.my-fqdn.de> <eli$2411141855@qaz.wtf>
<20241114160907.0000252b@gmail.com> <vh6a9k$33c17$5@dont-email.me>
<hzSdnTUBKbG_YKv6nZ2dnZfqnPQAAAAA@earthlink.com> <A7GZO.66$hgYd.23@fx41.iad>
<wwvr07bpizm.fsf@LkoBDZeT.terraraq.uk>
<JJOdnfSeXoej5aT6nZ2dnZfqnPSdnZ2d@earthlink.com>
<wwvwmh2z1y3.fsf@LkoBDZeT.terraraq.uk>
<Uv-dnfY4yvgPJKf6nZ2dnZfqnPSdnZ2d@earthlink.com>
<vhelgl$142m9$2@dont-email.me>
<UricnZ0glICSeaf6nZ2dnZfqn_adnZ2d@earthlink.com>
<vhf0sn$15fdk$1@dont-email.me>
From: 186283@ud0s4.net (186282@ud0s4.net)
Organization: wokiesux
Date: Mon, 18 Nov 2024 22:32:17 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <vhf0sn$15fdk$1@dont-email.me>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Message-ID: <c1OdnZuXAslcm6H6nZ2dnZfqnPqdnZ2d@earthlink.com>
Lines: 64
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 99.101.150.97
X-Trace: sv3-yP934+6/KGMJevs9+Jj92q9WBTsVcsZ/nMWb4R1QrDzBgu2NOteEQT+CidFIesN+pdGCeDw8YOgXzqU!BBCf675tFhCu2+ok/PNYK/ZsEJJDIpjq/wmoIAVIC4tr0z9P0uU3CMkDpLvntJiU3n603wXoPPp8!qlSTB5PRLHWooFsAL4/E
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
View all headers

On 11/18/24 4:20 AM, Pancho wrote:
> On 11/18/24 06:51, 186282@ud0s4.net wrote:
>> On 11/18/24 1:06 AM, Lawrence D'Oliveiro wrote:
>>> On Sun, 17 Nov 2024 22:50:41 -0500, 186282@ud0s4.net wrote:
>>>
>>>> As I said somewhere, if your child processes are sending megabytes
>>>> back to the parent you're DOING SOMETHING WRONG.
>>>
>>> Says the one who has no clue how to write real-world programs.
>>
>>    Am I supposed to say something horrible about
>>    you now ?
>>
>>    Nope. Won't. I'm sick of 'The Wars'.
>>
>>    Clue - I've writ 'real world programs' and
>>    got paid well for them from the punch-card
>>    days on. I did it my way, for my reasons,
>>    my 'vision'.
>>
>>    And so did you.
>
> I mainly did as I was told. In large political organisations following
> your own vision can be problematic. You have to fight for a vision.

I very intentionally stayed away from such orgs. A little
less money, but the happiness factor more than compensated.
Got to pursue many esoteric projects - some of which WERE
useful - and the org paid for most of it (except the odd
Radio Shack parts).

> I've no idea why using IPC to send megabytes of data between different
> processes is wrong. That is what many service-orientated architectures
> do. The moment you have a persistence service it is likely to happen.

Really you DON'T want to send megabytes as IPC ... but
somebody somewhere MAY wanna. So, what's the best way
for them to do that ? Don't necessarily piss on 'em but
help 'em out instead.

> Although to be fair we very rarely used pipes, directly, almost never.
> It was always something like REST or message queues.

Again though, just "blocks of information". MANY ways
to do that. Each developer has to figure out what's
best for THEIR particular app.

I mentioned a server style app I made, but I wanted the
child processes/threads (tried both ways) to return
some active stat data to the parent. Not a huge amount
of info, but useful. Pipes were the best way. The
parent was allowed to xmit a 'kill' to a child in
trouble, via the pipe, so it could shut down in an
orderly fashion.

Pre-threaded servers seem to have the highest capacity
and throughput. The parent allocates maybe ten threads
to start off with and then can add new blocks of ten
as-needed. It's a little harder to manage than some
other kinds of servers, and sometimes a bit harder
to visualize how it's working, but they're good things.
Once you've got it you're SET.

Subject: Re: The joy of pipes
From: 186282@ud0s4.net
Newsgroups: comp.os.linux.misc
Organization: wokiesux
Date: Tue, 19 Nov 2024 03:50 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!border-1.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Tue, 19 Nov 2024 03:50:42 +0000
Subject: Re: The joy of pipes
Newsgroups: comp.os.linux.misc
References: <vgns2aqlhq@dont-email.me> <20241112111426.00007245@gmail.com>
<e44df1bda1f1622a8d725c69860d3225@msgid.frell.theremailer.net>
<m2ttc9y3d8.queerchen@cmschueller.my-fqdn.de> <eli$2411141855@qaz.wtf>
<20241114160907.0000252b@gmail.com> <vh6a9k$33c17$5@dont-email.me>
<hzSdnTUBKbG_YKv6nZ2dnZfqnPQAAAAA@earthlink.com> <A7GZO.66$hgYd.23@fx41.iad>
<wwvr07bpizm.fsf@LkoBDZeT.terraraq.uk>
<JJOdnfSeXoej5aT6nZ2dnZfqnPSdnZ2d@earthlink.com>
<wwvwmh2z1y3.fsf@LkoBDZeT.terraraq.uk>
<Uv-dnfY4yvgPJKf6nZ2dnZfqnPSdnZ2d@earthlink.com>
<vhelgl$142m9$2@dont-email.me>
<UricnZ0glICSeaf6nZ2dnZfqn_adnZ2d@earthlink.com>
<vhf0sn$15fdk$1@dont-email.me> <vhf1qg$165g7$1@dont-email.me>
<vhf70v$16jpu$1@dont-email.me> <vhfgem$191cl$1@dont-email.me>
From: 186283@ud0s4.net (186282@ud0s4.net)
Organization: wokiesux
Date: Mon, 18 Nov 2024 22:50:41 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <vhfgem$191cl$1@dont-email.me>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Message-ID: <z4Kdna93to-PlqH6nZ2dnZfqnPudnZ2d@earthlink.com>
Lines: 26
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 99.101.150.97
X-Trace: sv3-xzzdEdX8HcMJFSVWe4hdlySLkK3L6khlYi8gplu5nPE+waSmNhExwDK5l14B+mr1E3iKsvMqKA8Q75h!nFgUhlYK2Z6o4ox9q1KLtgIARHPZB3Hf++B70rDO8tN9MLzLLDsrb6Qt4HcWkstDkt2czStp+c4K!AqW5TQ0kYXND6SkX3K+z
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
View all headers

On 11/18/24 8:45 AM, The Natural Philosopher wrote:
> On 18/11/2024 11:05, Pancho wrote:
>> I do remember looking at named pipes and deciding it was appropriate
>> for some task, but I have no memory of actually implementing it. Which
>> could mean it just worked and I never thought about it again, or it
>> could mean I didn't do it.
>
> Similar here.
> I've tended to use ramdisk files ... for interprocess communication. Not
> idiot proof, but can be made fit for purpose.

As I was saying all along ... yer passing "blocks
of information" between processes. CAN be done
in a large number of ways and they'll all WORK.
Temporary files on a RAMdisk are fine (but slower).
Pipes are fine, the "normal 'C' way". MQs will
work. In any case it'll get done.

Dunno why everybody seems so keen to slag anybody
who doesn't do it/see it exactly like some high-holy
manual from 1982 says you're supposed to. That's
no fun !

Hmmm ... can you pass IPC data using paper tape ?
It'd be cool ! :-)

Subject: Re: The joy of pipes
From: Robert Riches
Newsgroups: comp.os.linux.misc
Organization: none-at-all
Date: Tue, 19 Nov 2024 04:50 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: spamtrap42@jacob21819.net (Robert Riches)
Newsgroups: comp.os.linux.misc
Subject: Re: The joy of pipes
Date: 19 Nov 2024 04:50:15 GMT
Organization: none-at-all
Lines: 24
Message-ID: <slrnvjo687.vg5.spamtrap42@one.localnet>
References: <vgns2aqlhq@dont-email.me> <20241112111426.00007245@gmail.com>
<e44df1bda1f1622a8d725c69860d3225@msgid.frell.theremailer.net>
<m2ttc9y3d8.queerchen@cmschueller.my-fqdn.de> <eli$2411141855@qaz.wtf>
<20241114160907.0000252b@gmail.com> <vh6a9k$33c17$5@dont-email.me>
<hzSdnTUBKbG_YKv6nZ2dnZfqnPQAAAAA@earthlink.com>
<A7GZO.66$hgYd.23@fx41.iad> <wwvr07bpizm.fsf@LkoBDZeT.terraraq.uk>
<JJOdnfSeXoej5aT6nZ2dnZfqnPSdnZ2d@earthlink.com>
<wwvwmh2z1y3.fsf@LkoBDZeT.terraraq.uk>
<Uv-dnfY4yvgPJKf6nZ2dnZfqnPSdnZ2d@earthlink.com>
Reply-To: spamtrap42@jacob21819.net
X-Trace: individual.net 14gNY82nuPJX9JKAyD8CNQeES4ofURNPaXP44m+mFlgiS/vEUy
Cancel-Lock: sha1:ubOyHK0ZlN5CbXG1jeDc49aiFEo= sha256:nWKpZXFmMT4VfH3Z8o65mpENzzZxx0nhkrDVyydlOT0=
User-Agent: slrn/1.0.3 (Linux)
View all headers

On 2024-11-18, 186282@ud0s4.net <186283@ud0s4.net> wrote:
>...
>
> As I said somewhere, if your child processes are sending
> megabytes back to the parent you're DOING SOMETHING WRONG.

Oh?

Let's take my example of an older Raspberry Pi model 1 with less
than 1GB of RAM and only 4GB of SD card "disk", and process a
video stream several GB in total length, from an mplayer process
that will write only to a file and refuses to write to stdout,
where the stream needs to be sent over the LAN to a machine with
enough spinning rust to store the stream.

Would temporary files work? Not really. A named pipe let
mplayer write to a named file. Even if having two processes
shuffling the data wasn't the most efficient, the Pi handled it
quite well.

--
Robert Riches
spamtrap42@jacob21819.net
(Yes, that is one of my email addresses.)

Pages:123

rocksolid light 0.9.8
clearnet tor