Re: [chromium-html5] LocalStorage inside Worker

2011-01-11 Thread Keean Schupke
Now I think about it I see where you were coming from with get: var x = getNamedStorage('x'); x.onsuccess(function(store) {...}); would make more sense like that... and I guess if you include the onsuccess callback in one function you get: getNamedStorage('x', function(store) {...}); I reads be

Re: [chromium-html5] LocalStorage inside Worker

2011-01-11 Thread Keean Schupke
On 11 January 2011 22:37, Jonas Sicking wrote: > On Tue, Jan 11, 2011 at 2:11 PM, Keean Schupke wrote: > > Would each 'name' storage have its own thread to improve parallelism? > > Your vocabulary is a bit off since from an API point of view, storage > areas don't have threads, the execution env

Re: [chromium-html5] LocalStorage inside Worker

2011-01-11 Thread Keean Schupke
The callback is doing something 'with' the resource you are waiting for. The callback cannot be called 'without' the resource being available. The 'with' refers to the 'named storage object' not the registration of the callback. "with" this named storage object "do" function Would be how I read

Re: [chromium-html5] LocalStorage inside Worker

2011-01-11 Thread Jonas Sicking
On Tue, Jan 11, 2011 at 6:02 PM, Tab Atkins Jr. wrote: > On Tue, Jan 11, 2011 at 4:39 PM, Jonas Sicking wrote: >> On Tue, Jan 11, 2011 at 2:44 PM, Tab Atkins Jr. wrote: >>> On Tue, Jan 11, 2011 at 2:37 PM, Jonas Sicking wrote: On Tue, Jan 11, 2011 at 2:11 PM, Keean Schupke wrote: > wo

[Bug 11740] New: vbvbcb dcbd fhfdh h hfgh fg h fgh hfg hfghfg hf

2011-01-11 Thread bugzilla
http://www.w3.org/Bugs/Public/show_bug.cgi?id=11740 Summary: vbvbcb dcbd fhfdh h hfgh fg h fgh hfg hfghfg hf Product: WebAppsWG Version: unspecified Platform: Other URL: http://www.whatwg.org/specs/web-apps/current-work/#top OS/Ver

Re: WebSocket question

2011-01-11 Thread Brandon Andrews
Now that there's ArrayBuffer will a binary protocol be added? https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer Just need to say you're using the binary protocol in the handshake. Don't need length or anything since it would just be a normal TCP stream and someone could create

Re: [chromium-html5] LocalStorage inside Worker

2011-01-11 Thread Glenn Maynard
On Tue, Jan 11, 2011 at 9:02 PM, Tab Atkins Jr. wrote: > Python has its "with" keyword, used like "with file = open('foo'): > doStuffToTheFile(file)", which similarly creates a named resource and ("with open('foo') as file:") > takes a chunk of code within which the resource is available.  I know

Re: [chromium-html5] LocalStorage inside Worker

2011-01-11 Thread Tab Atkins Jr.
On Tue, Jan 11, 2011 at 4:39 PM, Jonas Sicking wrote: > On Tue, Jan 11, 2011 at 2:44 PM, Tab Atkins Jr. wrote: >> On Tue, Jan 11, 2011 at 2:37 PM, Jonas Sicking wrote: >>> On Tue, Jan 11, 2011 at 2:11 PM, Keean Schupke wrote: would: withNamedStorage('x', function(store) {...}); m

Re: file-system-api: filename restrictions

2011-01-11 Thread Boris Zbarsky
On 1/11/11 8:02 PM, Glenn Maynard wrote: The infamous Turkish "I" comes to mind as a portability problem: code could reasonably create "Info" in one place and read it as "info" in another, which would be different files in a Turkish locale. Windows still treats "I" and "i" as the same letter eve

Re: file-system-api: filename restrictions

2011-01-11 Thread Glenn Maynard
On Tue, Jan 11, 2011 at 5:33 PM, Eric Uhrhane wrote: > 2) Developers often don't read UA logs.  We should fail early on the > dev box, rather than failing later on the user's machine. (I guess I just lack sympathy for developers who completely ignore browser warnings.) >> - existing filenames th

Re: [chromium-html5] LocalStorage inside Worker

2011-01-11 Thread Jonas Sicking
On Tue, Jan 11, 2011 at 2:44 PM, Tab Atkins Jr. wrote: > On Tue, Jan 11, 2011 at 2:37 PM, Jonas Sicking wrote: >> On Tue, Jan 11, 2011 at 2:11 PM, Keean Schupke wrote: >>> would: >>> withNamedStorage('x', function(store) {...}); >>> make more sense from a naming point of view? >> >> I have a dif

Re: [chromium-html5] LocalStorage inside Worker

2011-01-11 Thread Glenn Maynard
On Tue, Jan 11, 2011 at 3:58 PM, Jonas Sicking wrote: > With localStorage being the way it is, I personally don't think we can > ever allow localStorage access in workers. This makes sense if the storage mutex goes away entirely for localStorage itself (reflecting current implementations). If lo

Re: [chromium-html5] LocalStorage inside Worker

2011-01-11 Thread Tab Atkins Jr.
On Tue, Jan 11, 2011 at 2:37 PM, Jonas Sicking wrote: > On Tue, Jan 11, 2011 at 2:11 PM, Keean Schupke wrote: >> would: >> withNamedStorage('x', function(store) {...}); >> make more sense from a naming point of view? > > I have a different association for 'with', especially in context of > JavaSc

Re: [chromium-html5] LocalStorage inside Worker

2011-01-11 Thread Jonas Sicking
On Tue, Jan 11, 2011 at 2:11 PM, Keean Schupke wrote: > Would each 'name' storage have its own thread to improve parallelism? Your vocabulary is a bit off since from an API point of view, storage areas don't have threads, the execution environments in workers and windows do. But if your question

Re: file-system-api: filename restrictions

2011-01-11 Thread Eric Uhrhane
Glenn: Sorry about the slow response; I was on vacation, and am only now catching up. We've discussed these issues before, see http://lists.w3.org/Archives/Public/public-device-apis/2010Jan/0229.html for much of the initial discussion. However, you've brought up a new point that I think is worth

Re: [chromium-html5] LocalStorage inside Worker

2011-01-11 Thread Keean Schupke
Would each 'name' storage have its own thread to improve parallelism? would: withNamedStorage('x', function(store) {...}); make more sense from a naming point of view? Cheers, Keean. On 11 January 2011 20:58, Jonas Sicking wrote: > With localStorage being the way it is, I personally don't

Re: [chromium-html5] LocalStorage inside Worker

2011-01-11 Thread Jonas Sicking
With localStorage being the way it is, I personally don't think we can ever allow localStorage access in workers. However I do think we can and should provide access to a separate storage area (or several named storage areas) which can only be accessed from callbacks. On the main thread those call

[Bug 11606] wanted: awareness of non-persistent web storage

2011-01-11 Thread bugzilla
http://www.w3.org/Bugs/Public/show_bug.cgi?id=11606 Ian 'Hixie' Hickson changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Bug 11589] It is said that "Values can be any data type supported by the structured clone algorithm", but the algorithm is not described. In fact is it deeply buried in the HTML5 specification, ope

2011-01-11 Thread bugzilla
http://www.w3.org/Bugs/Public/show_bug.cgi?id=11589 Ian 'Hixie' Hickson changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Bug 11581] Is there really need to drop http compability ? This will cause lot of troubles in some http-servers and browsers. This will force developers to use ugly hacks like flash/java based impl

2011-01-11 Thread bugzilla
http://www.w3.org/Bugs/Public/show_bug.cgi?id=11581 Ian 'Hixie' Hickson changed: What|Removed |Added Status|NEW |RESOLVED CC|

Last Call for Navigation Timing API

2011-01-11 Thread Philippe Le Hegaret
This is a Last Call transition announcement for Navigation Timing: http://www.w3.org/TR/2011/WD-navigation-timing-20110111/ Please send comments to public-web-p...@w3.org with [NavigationTiming] at the start of the subject line by 8 February 2011. Note: Feedback would be especially

[Bug 11570] Can't find the posibility for user authentication by connecting to a websocket! Missing?

2011-01-11 Thread bugzilla
http://www.w3.org/Bugs/Public/show_bug.cgi?id=11570 Ian 'Hixie' Hickson changed: What|Removed |Added Status|NEW |RESOLVED CC|

Re: [chromium-html5] LocalStorage inside Worker

2011-01-11 Thread Keean Schupke
Allow access only from serialized callbacks in workers. Cheers Keean On 11 Jan 2011 14:45, "Jeremy Orlow" wrote: > So what's the plan for localStorage in workers? > > J > > On Tue, Jan 11, 2011 at 9:10 AM, Keean Schupke wrote: > >> I think I already came to the same conclusion... JavaScript has

Re: [chromium-html5] LocalStorage inside Worker

2011-01-11 Thread Jeremy Orlow
So what's the plan for localStorage in workers? J On Tue, Jan 11, 2011 at 9:10 AM, Keean Schupke wrote: > I think I already came to the same conclusion... JavaScript has no control > over effects, which devalues STM. In the absence of effect control, apparent > serialisation (of transactions) i

[Bug 11730] Please enter your feedback, carefully indicating the title of the section for which you are submitting feedback, quoting the text that's wrong today if appropriate. If you're suggesting

2011-01-11 Thread bugzilla
http://www.w3.org/Bugs/Public/show_bug.cgi?id=11730 Art Barstow changed: What|Removed |Added Status|NEW |RESOLVED CC|

Re: [Bug 11398] New: [IndexedDB] Methods that take multiple optional parameters should instead take an options object

2011-01-11 Thread Jeremy Orlow
On Mon, Jan 10, 2011 at 9:40 PM, Jonas Sicking wrote: > On Tue, Dec 14, 2010 at 12:13 PM, Jeremy Orlow > wrote: > > > > On Tue, Dec 14, 2010 at 7:50 PM, Jonas Sicking wrote: > >> > >> On Tue, Dec 14, 2010 at 8:47 AM, Jeremy Orlow > wrote: > >>> > >>> Btw, I forgot to mention IDBDatabase.transa

Re: [IndexedDB] Events and requests

2011-01-11 Thread Keean Schupke
If one handler changes the state who knows what will happen. I guess the order in which handers are called is significant. That's one advantage to using a function like "all" to compose callbacks - its very clear what order they get called in. You could call it 'sequence' to make it even clearer (t

Re: [IndexedDB] Events and requests

2011-01-11 Thread Axel Rauschmayer
Looks great, I just tried to stay as close to the current API as possible. A single handler should definitely be enough. Can, say, a cursor be read multiple times (if there are several success handlers)? Doesn’t that make things more complicated? On Jan 11, 2011, at 10:22 , Keean Schupke wrote:

Re: [IndexedDB] Events and requests

2011-01-11 Thread Keean Schupke
Comments inline: On 11 January 2011 07:11, Axel Rauschmayer wrote: > Coming back to the initial message in this thread (at the very bottom): > => General rule of thumb: clearly separate input data and output data. > > Using JavaScript dynamic nature, things could look as follows: > > indexedDB.o

Re: [chromium-html5] LocalStorage inside Worker

2011-01-11 Thread Keean Schupke
I think I already came to the same conclusion... JavaScript has no control over effects, which devalues STM. In the absence of effect control, apparent serialisation (of transactions) is the best you can do. What we need is a purely functional JavaScript, it makes threading so much easier ;-) Ch

Re: [chromium-html5] LocalStorage inside Worker

2011-01-11 Thread Keean Schupke
I think the idea is that JavaScript should not do unexpected things. The suggestion to only make local storage accessible from inside callbacks seems the best suggestion so far. Cheers, Keean. On 11 January 2011 06:20, Felix Halim wrote: > On Tue, Jan 11, 2011 at 1:02 PM, Glenn Maynard wrote