Announcing libasync, a cross-platform D event loop

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Wed Sep 24 10:46:30 PDT 2014


On 9/24/14, 9:30 AM, Etienne wrote:
>  > This is fantastic! We really need something like this in a Facebook
>  > project.
>
> That's pleasing to hear, although I'm pretty sure Facebook is far from
> being the only organization who will benefit from this ;)
>
>  > Would be appropriate for you to consider making a bid for adding it
> to Phobos?
>
> Thanks for the invitation, I'll start working on a phobos fork with this
> added into std.async and re-licensed to Boost. Would that be an
> appropriate namespace?

Yes. Thanks!

>  > In that case one issue to address is integrating std.concurrency
>  > with the event loop, i.e. registering an event handler should be
>  > possible for a thread message as well.
>
> Of course, the libasync.threads module already has a good foothold on
> the strategy, so a newer/better std.concurrency could deprecate parts of
> this module by offering an adapted message queue that allows threads
> with an event loop to communicate with threads that have one or not, in
> both directions.

Yah, I think that's where the most design effort around porting would go.

Andrei



More information about the Digitalmars-d mailing list