W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2009

[whatwg] Worker feedback

From: Robert O'Callahan <robert@ocallahan.org>
Date: Sat, 4 Apr 2009 10:49:47 +1300
Message-ID: <11e306600904031449xb7a425apd0d9c1a7909d4ea4@mail.gmail.com>
On Sat, Apr 4, 2009 at 6:35 AM, Jeremy Orlow <jorlow at google.com> wrote:

> If I understood the discussion correctly, the spec for document.cookie
> never stated anything about it being immutable while a script is running.


Well, there never was a decent spec for document.cookie for most of its
life, and even if there had been, no implementations allowed asynchronous
changes to cookies while a script was running (except for maybe during
alert()) and no-one really thought about it. Was this even identified as a
possible issue during Chrome development?

People are now talking about specifying this, but there's been push back.
> Also, there's no way to guarantee serializability for the network traffic
> portion so I'm guessing (hoping!) that this wouldn't be required in the
> JavaScript side, even if it went through.


What exactly do you mean by that? It's easy to guarantee that reading the
cookies to send with an HTTP request is an atomic operation, and writing
them as a result of an HTTP response is an atomic operation.

The spec is written in such a way that you can't have more that one event
> loop per browser window/worker, and everything is essentially tied to this
> one event loop.  In other words, each window/worker can't run on more than
> one CPU core at a time.  Thus, the only way for a web application to scale
> in todays world is going to be through additional windows and/or workers.
>

Depending on exactly what you mean by a "Web application", that's not really
true. There are a variety of ways to exploit multicore parallelism within a
window with the current set of specs, at least in principle.

Rob
-- 
"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
53:5-6]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20090404/516e830a/attachment.htm>
Received on Friday, 3 April 2009 14:49:47 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:11 UTC