Module system strawpersons

ihab.awad at ihab.awad at
Thu Jan 14 14:35:35 PST 2010

On Thu, Jan 14, 2010 at 2:29 PM, Mike Samuel <mikesamuel at> wrote:
> defineDelayedFunction could be used with an async channel like
> XMLHttpRequest to define a module system, but all module definitions
> would happen at execute time, so it cannot be used to define a module
> system that resolves definitions prior to body evaluation.

Yes, and if the definitions are resolved while the body is being
evaluated, and the thread of execution in which the body is being
evaluated blocks, this will freeze the UI of the app or otherwise
prevent it from servicing requests while the requested module is being

> defineDelayedFunction would impose lazy fetching, but
> modules_emaker_style allows eager fetching.

Yes. Thanks for the clarification.


Ihab A.B. Awad, Palo Alto, CA

More information about the es-discuss mailing list