Re: [whatwg] Low Memory Event

2011-01-01 Thread Glenn Maynard
On Sat, Jan 1, 2011 at 9:52 PM, Roger Hågensen wrote: > Charles, you initially said you where worried about this since you used undo > buffers. > Why not simply add undo buffers to the Canvas spec? That way the browser can > start tossing away the oldest undo buffers automatically when it starts >

Re: [whatwg] Low Memory Event

2011-01-01 Thread Roger Hågensen
On 2011-01-02 03:27, Kornel Lesiński wrote: On Sun, 02 Jan 2011 00:53:48 -, Charles Pritchard wrote: ArrayBuffer and Canvas use contiguous memory segments. You don't need a complex GC pass to let those ones go. For my use cases, those are the two types I'm working with. Keeping them aro

Re: [whatwg] Low Memory Event

2011-01-01 Thread Kornel Lesiński
On Sun, 02 Jan 2011 00:53:48 -, Charles Pritchard wrote: ArrayBuffer and Canvas use contiguous memory segments. You don't need a complex GC pass to let those ones go. For my use cases, those are the two types I'm working with. Keeping them around helps the speed of my app, letting them

Re: [whatwg] Low Memory Event

2011-01-01 Thread Charles Pritchard
On 1/1/2011 4:07 PM, Glenn Maynard wrote: On Sat, Jan 1, 2011 at 5:04 PM, Charles Pritchard wrote: The separation of Mobile and Desktop seems arbitrary, in terms of specs: if it's useful on the mobile, why would it not be useful on the desktop? It's the same concept, a memory warning. I fully

Re: [whatwg] Low Memory Event

2011-01-01 Thread Charles Pritchard
On 1/1/2011 4:48 PM, Glenn Maynard wrote: On Sat, Jan 1, 2011 at 7:35 PM, Ryosuke Niwa wrote: What I don't understand about this proposal is how web apps are supposed to free memory. In my understanding, ES5 doesn't allow you to manually free memory (unlike Objective-C), and it's up to GC impl

Re: [whatwg] Low Memory Event

2011-01-01 Thread Glenn Maynard
On Sat, Jan 1, 2011 at 7:35 PM, Ryosuke Niwa wrote: > What I don't understand about this proposal is how web apps are supposed to > free memory.  In my understanding, ES5 doesn't allow you to manually free > memory (unlike Objective-C), and it's up to GC implementor to decide how and > when (most

Re: [whatwg] input element list attribute and filtering suggestions

2011-01-01 Thread Aryeh Gregor
On Fri, Dec 31, 2010 at 3:46 PM, Jonas Sicking wrote: > I like the idea of bolding the matching parts of the suggestions which > match the typed string. Or at least creating a pseudo-element which > selected the matching substrings such that you could get the behavior > you want using: > > input::

Re: [whatwg] Low Memory Event

2011-01-01 Thread Charles Pritchard
On 1/1/2011 4:07 PM, Glenn Maynard wrote: For example, responding to being an idle tab by releasing resources is the wrong thing to do if there's plenty of memory available. I have 8 GB of memory and Firefox rarely uses more than 512 MB. Don't make me I stated, in the example, that it would n

Re: [whatwg] Low Memory Event

2011-01-01 Thread Ryosuke Niwa
On Sat, Jan 1, 2011 at 2:04 PM, Charles Pritchard wrote: > > It's the same concept, a memory warning. > > On Sat, Jan 1, 2011 at 3:39 PM, Charles Pritchard >> wrote: >> >>> Here are some example implementations; it's up to the vendor, not the >>> spec. >>> >>> Tabbed browsing implementation: >>>

Re: [whatwg] Low Memory Event

2011-01-01 Thread Glenn Maynard
On Sat, Jan 1, 2011 at 5:04 PM, Charles Pritchard wrote: > The separation of Mobile and Desktop seems arbitrary, in terms of specs: > if it's useful on the mobile, why would it not be useful on the desktop? > > It's the same concept, a memory warning. I fully agree that no HTML spec should make a

Re: [whatwg] Low Memory Event

2011-01-01 Thread Charles Pritchard
On 1/1/2011 1:43 PM, Glenn Maynard wrote: You need to know a lot about the host system to know what "low memory" even means. Does it mean allocations may start failing soon? Does it ... This definitely seems useful on mobile platforms, where memory is much more limited, memory management is m

Re: [whatwg] Low Memory Event

2011-01-01 Thread Glenn Maynard
> I'd like to be able to listen for them on the desktop as well. You need to know a lot about the host system to know what "low memory" even means. Does it mean allocations may start failing soon? Does it mean we're deep into swap, causing serious performance issues but not failed allocations?

Re: [whatwg] Low Memory Event

2011-01-01 Thread Bjartur Thorlacius
On 12/31/10, Ian Hickson wrote: > Please don't use all my memory for your Web-based game. :-) I may just be > running it in the background while finding a video to watch, for example, > in which case I really don't want the game using all my resources. Why would you want to run a game in the backg

Re: [whatwg] Low Memory Event

2011-01-01 Thread Charles Pritchard
On 1/1/2011 12:08 PM, whatwg-requ...@lists.whatwg.org wrote: Date: Fri, 31 Dec 2010 22:01:42 -0600 From: Boris Zbarsky On 12/31/10 7:35 PM, Charles Pritchard wrote: > If I were to receive an event, letting me know a low memory condition > exists There are various ways to try to work around t

Re: [whatwg] window.open question...

2011-01-01 Thread Ian Hickson
On Mon, 27 Sep 2010, Biju wrote: > > Question, whether html5 spec is specific about behavior for steps at... > https://bugzilla.mozilla.org/show_bug.cgi?id=197709#c0 > > See also https://bugzilla.mozilla.org/show_bug.cgi?id=197709#c3 > > I dont see HTML5 is specific about it at > http://www.w3.or

Re: [whatwg] Exposing spelling/grammar suggestions in contentEditable

2011-01-01 Thread Benjamin Hawkes-Lewis
On Sat, Jan 1, 2011 at 7:12 AM, Benjamin Hawkes-Lewis wrote: > On Sat, Jan 1, 2011 at 1:23 AM, Charles Pritchard wrote: >> It is covered by the WAI ARIA 1.0 LC doc. > > Note this usage is waiting on a putative change to WAI-ARIA to define > its meaning when used with roles other than gridcell/opt