Thread overview | ||||||||
---|---|---|---|---|---|---|---|---|
|
September 13, 2016 Fiber Concurrency Showcase | ||||
---|---|---|---|---|
| ||||
I would like to experiment with Fibers/Coroutines in D/vibe.d. I'm missing a code example in std.concurrency that highlights an example of using Fibers for massive concurrency. Could anybody show me such a code example or link to a more descriptive tutorial? |
September 13, 2016 Re: Fiber Concurrency Showcase | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nordlöw | On Tuesday, 13 September 2016 at 09:46:46 UTC, Nordlöw wrote: > I would like to experiment with Fibers/Coroutines in D/vibe.d. > > I'm missing a code example in std.concurrency that highlights an example of using Fibers for massive concurrency. Could anybody show me such a code example or link to a more descriptive tutorial? Check this: http://ddili.org/ders/d.en/fibers.html Andrea |
September 13, 2016 Re: Fiber Concurrency Showcase | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nordlöw | On Tuesday, 13 September 2016 at 09:46:46 UTC, Nordlöw wrote: > I would like to experiment with Fibers/Coroutines in D/vibe.d. > > I'm missing a code example in std.concurrency that highlights an example of using Fibers for massive concurrency. Could anybody show me such a code example or link to a more descriptive tutorial? Ali has an asynchronous I/O example in the Fibers chapter of his book: http://ddili.org/ders/d.en/fibers.html |
September 13, 2016 Re: Fiber Concurrency Showcase | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrea Fontana | On Tuesday, 13 September 2016 at 10:02:28 UTC, Andrea Fontana wrote:
> On Tuesday, 13 September 2016 at 09:46:46 UTC, Nordlöw wrote:
>> I would like to experiment with Fibers/Coroutines in D/vibe.d.
>>
>> I'm missing a code example in std.concurrency that highlights an example of using Fibers for massive concurrency. Could anybody show me such a code example or link to a more descriptive tutorial?
>
> Check this:
> http://ddili.org/ders/d.en/fibers.html
>
> Andrea
Ha! Should have refreshed the page before replying :-P
|
September 13, 2016 Re: Fiber Concurrency Showcase | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrea Fontana | On Tuesday, 13 September 2016 at 10:02:28 UTC, Andrea Fontana wrote:
> Check this:
> http://ddili.org/ders/d.en/fibers.html
Thanks!
I would like to make use of message passing between Fibers aswell. Any code example for this? Specifically: Should the call to `new Fiber()` take all the TId's of its communication neighbourds be passed as argument to the `Fiber` constructor?
|
September 13, 2016 Re: Fiber Concurrency Showcase | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrea Fontana | On Tuesday, 13 September 2016 at 10:02:28 UTC, Andrea Fontana wrote:
> Check this:
> http://ddili.org/ders/d.en/fibers.html
Further, are we forced to use the GC for Fiber allocation or can a sub-class of Fiber implement its own allocation strategy?
|
Copyright © 1999-2021 by the D Language Foundation