Re: Handling execution dependencies

2013-01-15 Thread Anthony Jones
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, On 13/01/13 04:46, David Rajchenbach-Teller wrote: > As a base for discussion, I have put together a small RFC based on > promises: https://wiki.mozilla.org/RFC/TaskDependencies You seem to be on the right track. You've probably already worke

Re: Handling execution dependencies

2013-01-14 Thread Robert O'Callahan
On Tue, Jan 15, 2013 at 2:26 PM, Gregory Szorc wrote: > If I were writing Gecko from scratch today and took the world view that > Gecko is an operating system, I would certainly be tempted to design > XPCOM/Gecko services as Upstart/SMF-like services. > If I were, I would identify all the XPCOM

Re: Handling execution dependencies

2013-01-14 Thread Gregory Szorc
On 1/12/13 7:46 AM, David Rajchenbach-Teller wrote: As Firefox moves each day more to an asynchronous execution model, we keep facing issues related to dependencies between tasks. Here are a few examples: 1. component A can only be initialized one or more other components have reached some state;

Re: Handling execution dependencies

2013-01-14 Thread Ehsan Akhgari
Can you please add code snippets on that page to show how this API can be used to solve some example problems? It would really help if those problems are the sort of things that actually come up in the Mozilla code base. I have a really hard time inferring how the API is supposed to be used b