Feedback and criticism wanted: DOMCrypt API proposal
brendan at mozilla.com
Mon Jun 6 13:00:41 PDT 2011
On Jun 6, 2011, at 9:51 AM, David Dahl wrote:
> On 6/6/11 at 11:00,frantz at pwpconsult.com (Bill Frantz) wrote:
>> On 6/1/11 at 16:01, ddahl at mozilla.com (David Dahl) wrote:
>>> The property is namespaced in order to provide future capabilities. The current design is asynchronous and looks like this:
> Browsers almost by default will frown on including any synchronous APIs. With Firefox, we just don't want any additional main thread I/O happening.
To say more: JS is single-threaded, but that means you can lock up a "main thread" and starve UI. Browsers use multiple threads and processes these days, but the rule still applies. Scripts run to completion and must pass continuations manually by callback functions if they need to run after some indefinite delay, or even after a just-too-long computation or local i/o operation.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss