From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Feature suggestion: different task schedules
Date: Sun, 23 Jul 2017 20:47:51 +0200
Date: 2017-07-23T20:47:51+02:00 [thread overview]
Message-ID: <ol2r0m$7p2$1@gioia.aioe.org> (raw)
In-Reply-To: ol24ut$s8m$1@gioia.aioe.org
On 2017-07-23 14:31, Victor Porton wrote:
> Dmitry A. Kazakov wrote:
>
>> One is that it is not composable. I expect a co-routine proposal to
>> offer a possibility to implement stacked layered protocols. I don't see
>> how that would be possible on task basis. A protocol implementation may
>> not be a task object.
>
> I don't understand why it is not composable. A task may call another tasks.
> Tasks may even call each others in a cycle.
I need to see an example of a layered protocol implemented this way.
> However I think, we may have some sort of problem about specifying something
> in hypothetical Ada2020 what is similar to `yield from` in Python.
I don't see why yield is even needed. In my view it must be a call with
parameters which would in effect transfer control.
> It seems
> that for this we need to introduce something like "multi" accept statement,
> but I did not yet thought about this.
There is a problem with accept that it contains inversion in itself.
More natural for a producer-consumer pair is when both make calls, maybe
to a pseudo protected object, in order to pass control and data. Again I
must see an example.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2017-07-23 18:47 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-13 20:20 Feature suggestion: different task schedules Victor Porton
2017-07-13 21:58 ` Victor Porton
2017-07-13 22:11 ` Victor Porton
2017-07-14 5:59 ` Pascal Obry
2017-07-14 8:37 ` Dmitry A. Kazakov
2017-07-15 11:30 ` Victor Porton
2017-07-15 19:23 ` Niklas Holsti
2017-07-15 20:01 ` Simon Wright
2017-07-16 18:48 ` Jeffrey R. Carter
2017-07-16 19:05 ` Dmitry A. Kazakov
2017-07-16 20:25 ` Simon Wright
2017-07-18 0:09 ` Randy Brukardt
2017-07-18 7:14 ` Dmitry A. Kazakov
2017-07-18 15:28 ` Shark8
2017-07-18 16:06 ` Dmitry A. Kazakov
2017-07-18 20:09 ` Randy Brukardt
2017-07-19 7:24 ` Dmitry A. Kazakov
2017-07-23 12:31 ` Victor Porton
2017-07-23 14:19 ` Egil H H
2017-07-23 20:03 ` Victor Porton
2017-07-23 20:05 ` Dennis Lee Bieber
2017-07-23 18:47 ` Dmitry A. Kazakov [this message]
2017-07-24 15:26 ` Alejandro R. Mosteo
2017-07-24 19:56 ` Dmitry A. Kazakov
-- strict thread matches above, loose matches on Subject: below --
2017-07-18 0:45 Randy Brukardt
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox