Re: [whatwg] Structured clone algorithm on LocalStorage

2009-10-03 Thread Jonas Sicking
On Fri, Oct 2, 2009 at 9:58 PM, Darin Fisher wrote: > >> >> Not quite sure I follow your proposal. How would you for example >> >> >> increase the value of a property by one without risking race >> >> >> conditions? Or keep two values in different properties in sync? >> I.e. >>

Re: [whatwg] Structured clone algorithm on LocalStorage

2009-10-02 Thread Darin Fisher
On Fri, Oct 2, 2009 at 9:43 PM, Jonas Sicking wrote: > >> >> > Moreover, there are other examples which have been discussed on > the > >> >> > list. There are some DOM operations that can result in a frame > >> >> > receiving > >> >> > a DOM event synchronously. That can resul

Re: [whatwg] Structured clone algorithm on LocalStorage

2009-10-02 Thread Jonas Sicking
On Fri, Oct 2, 2009 at 9:11 PM, Darin Fisher wrote: > >> It still seems to me that it's extremely unlikely that pages depend on >> cross origin events to fire synchronously. I can't even think of a way >> to test if a browser dispatches these events synchronously or not. Can

Re: [whatwg] Structured clone algorithm on LocalStorage

2009-10-02 Thread Jonas Sicking
> > >> >> > Moreover, there are other examples which have been discussed on the >> >> > list. There are some DOM operations that can result in a frame >> >> > receiving >> >> > a DOM event synchronously. That can result in a nesting of storage >> >> > locks, >

Re: [whatwg] Structured clone algorithm on LocalStorage

2009-10-02 Thread Darin Fisher
On Fri, Oct 2, 2009 at 8:08 PM, Jonas Sicking wrote: > On Wed, Sep 30, 2009 at 10:11 PM, Darin Fisher wrote: > >> On Tue, Sep 29, 2009 at 11:48 PM, Jonas Sicking wrote: >> >>> On Tue, Sep 29, 2009 at 12:19 AM, Darin Fisher >>> wrote: >>> > On Thu, Sep 24, 2009 at 11:57 PM, Jonas Sicking >>> w

Re: [whatwg] Structured clone algorithm on LocalStorage

2009-09-29 Thread Jonas Sicking
On Tue, Sep 29, 2009 at 12:19 AM, Darin Fisher wrote: > On Thu, Sep 24, 2009 at 11:57 PM, Jonas Sicking wrote: >> >> On Thu, Sep 24, 2009 at 9:04 PM, Darin Fisher wrote: >> > On Thu, Sep 24, 2009 at 4:43 PM, Jonas Sicking wrote: >> >> >> >> On Thu, Sep 24, 2009 at 10:52 AM, Darin Fisher >> >>

Re: [whatwg] Structured clone algorithm on LocalStorage

2009-09-29 Thread Darin Fisher
On Thu, Sep 24, 2009 at 11:57 PM, Jonas Sicking wrote: > On Thu, Sep 24, 2009 at 9:04 PM, Darin Fisher wrote: > > On Thu, Sep 24, 2009 at 4:43 PM, Jonas Sicking wrote: > >> > >> On Thu, Sep 24, 2009 at 10:52 AM, Darin Fisher > wrote: > >> > On Thu, Sep 24, 2009 at 10:40 AM, Jonas Sicking > >>

Re: [whatwg] Structured clone algorithm on LocalStorage

2009-09-24 Thread Darin Fisher
On Thu, Sep 24, 2009 at 9:28 PM, Robert O'Callahan wrote: > On Fri, Sep 25, 2009 at 5:52 AM, Darin Fisher wrote: > >> No, no... my point is that to the application developer, those "explicit" >> points will appear quite implicit and mysterious. This is why I called >> out third-party JS librarie

Re: [whatwg] Structured clone algorithm on LocalStorage

2009-09-24 Thread Robert O'Callahan
On Fri, Sep 25, 2009 at 5:52 AM, Darin Fisher wrote: > No, no... my point is that to the application developer, those "explicit" > points will appear quite implicit and mysterious. This is why I called > out third-party JS libraries. One day, a function that you are using > might transition to

Re: [whatwg] Structured clone algorithm on LocalStorage

2009-09-24 Thread Maciej Stachowiak
On Sep 23, 2009, at 3:29 PM, Jeremy Orlow wrote: In addition, this argument assumes that Microsoft (and other UAs) will implement the structured clone version of LocalStorage. Has anyone (or can anyone) from Microsoft comment on this? Microsoft doesn't always comment on such issues, but

Re: [whatwg] Structured clone algorithm on LocalStorage

2009-09-24 Thread Jonas Sicking
On Thu, Sep 24, 2009 at 10:52 AM, Darin Fisher wrote: > On Thu, Sep 24, 2009 at 10:40 AM, Jonas Sicking wrote: >> >> On Thu, Sep 24, 2009 at 1:17 AM, Darin Fisher wrote: >> > On Thu, Sep 24, 2009 at 12:20 AM, Jonas Sicking >> > wrote: >> >> >> >> On Wed, Sep 23, 2009 at 10:19 PM, Darin Fisher

Re: [whatwg] Structured clone algorithm on LocalStorage

2009-09-24 Thread Brett Cannon
On Thu, Sep 24, 2009 at 01:45, Jeremy Orlow wrote: [SNIP] > These are all good suggestions, but I'm not sure even that API would be > powerful enough for developers. > > For example, how would you implement an offline webmail app?  Well, my first > thought is to make each email a key/value.  But

Re: [whatwg] Structured clone algorithm on LocalStorage

2009-09-24 Thread Darin Fisher
On Thu, Sep 24, 2009 at 10:40 AM, Jonas Sicking wrote: > On Thu, Sep 24, 2009 at 1:17 AM, Darin Fisher wrote: > > On Thu, Sep 24, 2009 at 12:20 AM, Jonas Sicking > wrote: > >> > >> On Wed, Sep 23, 2009 at 10:19 PM, Darin Fisher > wrote: > >> > > >> > > >> > On Wed, Sep 23, 2009 at 8:10 PM, Jon

Re: [whatwg] Structured clone algorithm on LocalStorage

2009-09-24 Thread Jonas Sicking
On Thu, Sep 24, 2009 at 1:17 AM, Darin Fisher wrote: > On Thu, Sep 24, 2009 at 12:20 AM, Jonas Sicking wrote: >> >> On Wed, Sep 23, 2009 at 10:19 PM, Darin Fisher wrote: >> > >> > >> > On Wed, Sep 23, 2009 at 8:10 PM, Jonas Sicking wrote: >> >> >> >> On Wed, Sep 23, 2009 at 3:29 PM, Jeremy Orlo

Re: [whatwg] Structured clone algorithm on LocalStorage

2009-09-24 Thread Jeremy Orlow
On Thu, Sep 24, 2009 at 12:20 AM, Jonas Sicking wrote: > On Wed, Sep 23, 2009 at 10:19 PM, Darin Fisher wrote: > > > > > > On Wed, Sep 23, 2009 at 8:10 PM, Jonas Sicking wrote: > >> > >> On Wed, Sep 23, 2009 at 3:29 PM, Jeremy Orlow > wrote: > >> > On Wed, Sep 23, 2009 at 3:15 PM, Jonas Sickin

Re: [whatwg] Structured clone algorithm on LocalStorage

2009-09-24 Thread Darin Fisher
On Thu, Sep 24, 2009 at 1:17 AM, Darin Fisher wrote: > On Thu, Sep 24, 2009 at 12:20 AM, Jonas Sicking wrote: > >> On Wed, Sep 23, 2009 at 10:19 PM, Darin Fisher >> wrote: >> > >> > >> > On Wed, Sep 23, 2009 at 8:10 PM, Jonas Sicking >> wrote: >> >> >> >> On Wed, Sep 23, 2009 at 3:29 PM, Jerem

Re: [whatwg] Structured clone algorithm on LocalStorage

2009-09-24 Thread Darin Fisher
On Thu, Sep 24, 2009 at 12:20 AM, Jonas Sicking wrote: > On Wed, Sep 23, 2009 at 10:19 PM, Darin Fisher wrote: > > > > > > On Wed, Sep 23, 2009 at 8:10 PM, Jonas Sicking wrote: > >> > >> On Wed, Sep 23, 2009 at 3:29 PM, Jeremy Orlow > wrote: > >> > On Wed, Sep 23, 2009 at 3:15 PM, Jonas Sickin

Re: [whatwg] Structured clone algorithm on LocalStorage

2009-09-24 Thread Jonas Sicking
On Wed, Sep 23, 2009 at 10:19 PM, Darin Fisher wrote: > > > On Wed, Sep 23, 2009 at 8:10 PM, Jonas Sicking wrote: >> >> On Wed, Sep 23, 2009 at 3:29 PM, Jeremy Orlow wrote: >> > On Wed, Sep 23, 2009 at 3:15 PM, Jonas Sicking wrote: >> >> >> >> On Wed, Sep 23, 2009 at 2:53 PM, Brett Cannon wrot

Re: [whatwg] Structured clone algorithm on LocalStorage

2009-09-23 Thread Darin Fisher
On Wed, Sep 23, 2009 at 8:10 PM, Jonas Sicking wrote: > On Wed, Sep 23, 2009 at 3:29 PM, Jeremy Orlow wrote: > > On Wed, Sep 23, 2009 at 3:15 PM, Jonas Sicking wrote: > >> > >> On Wed, Sep 23, 2009 at 2:53 PM, Brett Cannon wrote: > >> > On Wed, Sep 23, 2009 at 13:35, Jeremy Orlow > wrote: > >

Re: [whatwg] Structured clone algorithm on LocalStorage

2009-09-23 Thread Jonas Sicking
On Wed, Sep 23, 2009 at 3:29 PM, Jeremy Orlow wrote: > On Wed, Sep 23, 2009 at 3:15 PM, Jonas Sicking wrote: >> >> On Wed, Sep 23, 2009 at 2:53 PM, Brett Cannon wrote: >> > On Wed, Sep 23, 2009 at 13:35, Jeremy Orlow wrote: >> >> What are the use cases for wanting to store data beyond strings (

Re: [whatwg] Structured clone algorithm on LocalStorage

2009-09-23 Thread Jeremy Orlow
On Wed, Sep 23, 2009 at 3:15 PM, Jonas Sicking wrote: > On Wed, Sep 23, 2009 at 2:53 PM, Brett Cannon wrote: > > On Wed, Sep 23, 2009 at 13:35, Jeremy Orlow wrote: > >> What are the use cases for wanting to store data beyond strings (and > what > >> can be serialized into strings) in LocalStora

Re: [whatwg] Structured clone algorithm on LocalStorage

2009-09-23 Thread Jonas Sicking
On Wed, Sep 23, 2009 at 2:53 PM, Brett Cannon wrote: > On Wed, Sep 23, 2009 at 13:35, Jeremy Orlow wrote: >> What are the use cases for wanting to store data beyond strings (and what >> can be serialized into strings) in LocalStorage?  I can't think of any that >> outweigh the negatives: >> 1)  F

Re: [whatwg] Structured clone algorithm on LocalStorage

2009-09-23 Thread Jonas Sicking
On Wed, Sep 23, 2009 at 1:35 PM, Jeremy Orlow wrote: > What are the use cases for wanting to store data beyond strings (and what > can be serialized into strings) in LocalStorage?  I can't think of any that > outweigh the negatives: > 1)  From previous threads, I think it's fair to say that we can

Re: [whatwg] Structured clone algorithm on LocalStorage

2009-09-23 Thread Brett Cannon
On Wed, Sep 23, 2009 at 13:35, Jeremy Orlow wrote: > What are the use cases for wanting to store data beyond strings (and what > can be serialized into strings) in LocalStorage?  I can't think of any that > outweigh the negatives: > 1)  From previous threads, I think it's fair to say that we can a

Re: [whatwg] Structured clone algorithm on LocalStorage

2009-09-23 Thread Jeremy Orlow
On Wed, Sep 23, 2009 at 1:46 PM, João Eiras wrote: > > and the more browser UI jank users will be sure to experience. >> > > If I may, as a side note, locking the UI is a user agent specific issue. No > specification requires user agents to lock their UIs while scripts execute. > Opera has achie

Re: [whatwg] Structured clone algorithm on LocalStorage

2009-09-23 Thread João Eiras
and the more browser UI jank users will be sure to experience. If I may, as a side note, locking the UI is a user agent specific issue. No specification requires user agents to lock their UIs while scripts execute. Opera has achieved this long time ago, by properly dividing ecmascript ex