Re: Indexed DB + Promises

2015-09-30 Thread David Rajchenbach-Teller
re or in > that repo's issue tracker. > > [1] https://www.w3.org/2008/webapps/wiki/IndexedDatabaseFeatures > -- David Rajchenbach-Teller, PhD Performance Team, Mozilla signature.asc Description: OpenPGP digital signature

Re: Indexed DB + Promises

2015-09-30 Thread David Rajchenbach-Teller
API. This can be done, for instance, by making sure that any listener for the "error" event silently catches rejections. Cheers, David -- David Rajchenbach-Teller, PhD Performance Team, Mozilla signature.asc Description: OpenPGP digital signature

Re: Indexed DB + Promises

2015-09-28 Thread David Rajchenbach-Teller
ise. >>> > > I meant user configurable, maybe as a global config. That sounds problematic. What if a codebase is modernized piecewise, and only some modules have been made Promise-friendly? -- David Rajchenbach-Teller, PhD Performance Team, Mozilla signature.asc Description: OpenPGP digital signature

Re: Thread-Safe DOM // was Re: do not deprecate synchronous XMLHttpRequest

2015-02-12 Thread David Rajchenbach-Teller
backward compatibility becomes a huge nightmare? As a side-note, the original thread is a good illustration of what happens whenever browser vendors attempt to deprecate features that are clearly broken by design. Cheers, David -- David Rajchenbach-Teller, PhD Performance Team, Mozilla

Re: FileSystem API Comments

2014-10-22 Thread David Rajchenbach-Teller
({shareName: photos}).then((dir) = { dir.openWrite(pic.jpeg) }); super photo viewer fs = api.getFileSystem({shareName: photos}).then((dir) = { dir.openRead(pic.jpeg) }); What happens with the pic.jpeg? -- David Rajchenbach-Teller, PhD Performance Team, Mozilla signature.asc

Re: =[xhr]

2014-09-04 Thread David Rajchenbach-Teller
that ES6 Modules are certainly the best long-term choice for this specific use case. Cheers, David -- David Rajchenbach-Teller, PhD Performance Team, Mozilla signature.asc Description: OpenPGP digital signature

Re: =[xhr]

2014-09-03 Thread David Rajchenbach-Teller
-- David Rajchenbach-Teller, PhD Performance Team, Mozilla signature.asc Description: OpenPGP digital signature

Re: =[xhr]

2014-09-03 Thread David Rajchenbach-Teller
On 03/09/14 17:27, Brendan Eich wrote: David Rajchenbach-Teller wrote: it would require changes to Java2Script. Big changes -- CPS conversion, compiling with continuations. Clearly, it would require big changes, although compiling to return Promise and using Task.js + yield at call sites

Re: WebApp installation via the browser

2014-06-02 Thread David Rajchenbach-Teller
allows any website to be an app store. I *think*, though I'm not 100% sure, that this works in Firefox for Android as well. I confirm that it works on Android. Best regards, David -- David Rajchenbach-Teller, PhD Performance Team, Mozilla signature.asc Description: OpenPGP digital

Re: Officially deprecating main-thread synchronous XHR?

2014-02-07 Thread David Rajchenbach-Teller
On 2/7/14 5:56 PM, Domenic Denicola wrote: I think this is a great point that makes such an effort worthwhile even if it ends up not leading to euthanizing sync XHR. I am all for it. Cheers, David -- David Rajchenbach-Teller, PhD Performance Team, Mozilla

Re: Officially deprecating main-thread synchronous XHR?

2014-02-07 Thread David Rajchenbach-Teller
to add such a warning. We would also need to add text to the various versions of the spec (whatwg and w3c). Which browsers are game? (I think mozilla is). Which spec editors are? / Jonas -- David Rajchenbach-Teller, PhD Performance Team, Mozilla

Re: Sync API for workers

2013-10-14 Thread David Rajchenbach-Teller
Let me introduce the first sketch of a variant. The general idea is to add a |postSyncMessage| We extend DedicatedWorkerGlobalScope and MessageEvent as follows: interface DedicatedWorkerGlobalScope : WorkerGlobalScope { void postMessage(any message, optional sequenceTransferable transfer);

Re: Sync API for workers

2013-10-14 Thread David Rajchenbach-Teller
. Cheers, David -- David Rajchenbach-Teller, PhD Performance Team, Mozilla

Re: Sync API for workers

2013-10-14 Thread David Rajchenbach-Teller
, David On 10/14/13 4:14 PM, Glenn Maynard wrote: On Mon, Oct 14, 2013 at 4:33 AM, David Rajchenbach-Teller dtel...@mozilla.com mailto:dtel...@mozilla.com wrote: Let me introduce the first sketch of a variant. The general idea is to add a |postSyncMessage| (I'm not sure what problems

Re: Sync API for workers

2013-10-13 Thread David Rajchenbach-Teller
, but for b) it is sufficient for the sync thread to be able to sleep until a condition/mutex/... is lifted -- David Rajchenbach-Teller, PhD Performance Team, Mozilla

Re: Sync API for workers

2013-10-13 Thread David Rajchenbach-Teller
(and trivial) definition of wait(), the following implements a polling loop that does not block the event loop: Tasks.spawn(function* () { while (true) { yield wait(); poll(); } }); [1] http://taskjs.org/ -- David Rajchenbach-Teller, PhD Performance Team, Mozilla

Re: Polished FileSystem API proposal

2013-07-13 Thread David Rajchenbach-Teller
createMode = createifneeded); PromiseFileHandleWritable openAppend((DOMString or File) file, optional CreateMode createMode = createifneeded); EventStream(File or Directory) enumerate(); EventStreamFile enumerateDeep(); }; -- David Rajchenbach-Teller, PhD Performance Team