Module system strawpersons
brendan at mozilla.com
Mon Jan 18 17:41:41 PST 2010
On Jan 18, 2010, at 5:20 PM, ihab.awad at gmail.com wrote:
> On Mon, Jan 18, 2010 at 4:54 PM, Brendan Eich <brendan at mozilla.com>
>> That's right -- no races, execution still seems single-threaded.
>> the special form, although if this line is in a seldom-executed
>> branch you
>> still have the hit of loading B up front.
> Right. The optimization in this case is that the runtime could delay
> loading B and, if B is encountered, *block* the currently running
> event loop and fetch B.
So the spec is that import could nest an event loop? What scripts or
event handlers/timeouts/etc. could run at that point? In general
breaking the run-to-completion execution model means the importing
script and its containing window could be destroyed, a zombie.
More information about the es-discuss