From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: General circular buffer example not tied to any specific type
Date: Mon, 6 Jul 2020 13:07:06 +0200 [thread overview]
Message-ID: <rdv0kq$1r2u$1@gioia.aioe.org> (raw)
In-Reply-To: lylfjxc4or.fsf@pushface.org
On 06/07/2020 12:34, Simon Wright wrote:
> "Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org> writes:
>
>> On 7/6/20 10:11 AM, Simon Wright wrote:
>>>
>>> Any *definite* type. I don't remember whether that would suit the
>>> original requirement in this thread.
>>
>> I don't think "requirement" applies. "Circular buffer of untyped
>> values" is at best a design decision. Trying to bypass the type system
>> is usually an indication of a design problem, in my experience.
>
> Yes. There would have to be some mechanism for the receiving end to
> decide what to do with the next lot of bytes!
Sure. An example would be implementation of interprocess RPC. The
parameters of a RPC would be passed via some pipe implemented as a ring
buffer with stream interface on top of it. Since RPC parameters could be
of almost any type, here you go.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2020-07-06 11:07 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-04 17:00 General circular buffer example not tied to any specific type Daniel
2020-07-04 17:25 ` Dmitry A. Kazakov
2020-07-05 9:37 ` Simon Wright
2020-07-05 9:52 ` Simon Wright
2020-07-05 13:25 ` Jeffrey R. Carter
2020-07-05 15:36 ` Simon Wright
2020-07-05 18:46 ` Dmitry A. Kazakov
2020-07-05 19:51 ` Simon Wright
2020-07-06 8:11 ` Simon Wright
2020-07-06 8:58 ` Jeffrey R. Carter
2020-07-06 10:34 ` Simon Wright
2020-07-06 11:07 ` Dmitry A. Kazakov [this message]
2020-09-03 10:31 ` riya patel
2020-09-24 4:10 ` nimaopatel121
2020-09-24 4:39 ` J-P. Rosen
2020-09-25 14:32 ` Simon Wright
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox