- From: Jonas Sicking <jonas@sicking.cc>
- Date: Mon, 23 Mar 2009 17:17:43 -0700
On Mon, Mar 23, 2009 at 4:16 PM, Ian Hickson <ian at hixie.ch> wrote: > On Mon, 23 Mar 2009, Jonas Sicking wrote: >> >> And that's not even touching on the stack space limitations that you're >> quite likely to run in to when you have an API specifically for nesting. > > I think any sane implementation of this would have to be non-recursive. > That's part of why I think it'd be so hard to implement. Indeed, that'd be really hard to implement in the generic case. For example a navigator.yield() inside an event handler, or inside a callback. We'd basically have to redesign all the code that implements the DOM and all other APIs that are exposed to javascript. Or rewrite our code in a language that supports continuations, which C/C++ doesn't do. (no, setjmp and longjmp doesn't count :) ). / Jonas
Received on Monday, 23 March 2009 17:17:43 UTC