Re: Intent to implement and ship: navigator.hardwareConcurrency

2014-05-19 Thread Rik Cabanier
On Mon, May 19, 2014 at 9:32 PM, Joshua Cranmer 🐧 wrote: > On 5/19/2014 6:10 PM, Rik Cabanier wrote: > >> Other platforms offer an API to the number of CPU's and they are able to >> use it successfully. (see the ten of thousands of examples on GitHub) I >> don't see why the web platform is special

Re: Intent to implement and ship: navigator.hardwareConcurrency

2014-05-19 Thread Joshua Cranmer 🐧
On 5/19/2014 6:10 PM, Rik Cabanier wrote: Other platforms offer an API to the number of CPU's and they are able to use it successfully. (see the ten of thousands of examples on GitHub) I don't see why the web platform is special here and we should trust that authors can do the right thing. By

Re: Intent to implement and ship: navigator.hardwareConcurrency

2014-05-19 Thread Rik Cabanier
On Mon, May 19, 2014 at 6:46 PM, Benoit Jacob wrote: > +1000! Thanks for articulating so clearly the difference between the > Web-as-an-application-platform and other application platforms. > It really surprises me that you would make this objection. WebGL certainly would *not* fall into this "We

Re: Do we still need Trace Malloc?

2014-05-19 Thread L. David Baron
On Monday 2014-05-19 20:09 -0700, Nicholas Nethercote wrote: > On Mon, May 19, 2014 at 5:32 PM, L. David Baron wrote: > > Another is being able to find the root strongly connected components > > of the memory graph, which is useful for finding leaks in other > > systems (e.g., leaks of trees of GT

Re: Intent to implement and ship: navigator.hardwareConcurrency

2014-05-19 Thread Rik Cabanier
On Mon, May 19, 2014 at 6:35 PM, Jonas Sicking wrote: > On Mon, May 19, 2014 at 4:10 PM, Rik Cabanier wrote: > > I don't see why the web platform is special here and we should trust that > > authors can do the right thing. > > I'm fairly sure people have already pointed this out to you. But the

Re: Do we still need Trace Malloc?

2014-05-19 Thread Nicholas Nethercote
On Mon, May 19, 2014 at 5:32 PM, L. David Baron wrote: > > There are some things that I do with trace-malloc that I'm not sure > if the other tools do. > > One is to check for leaks that involve caches (i.e., don't involve > unreachable pointers). One can take two memory dumps at different > time

Re: Intent to implement and ship: navigator.hardwareConcurrency

2014-05-19 Thread Mike Hommey
On Mon, May 19, 2014 at 06:35:49PM -0700, Jonas Sicking wrote: > On Mon, May 19, 2014 at 4:10 PM, Rik Cabanier wrote: > > I don't see why the web platform is special here and we should trust that > > authors can do the right thing. > > I'm fairly sure people have already pointed this out to you.

Re: Intent to ship: Hyperlink Auditing ()

2014-05-19 Thread Jonas Sicking
On Fri, May 16, 2014 at 2:54 PM, L. David Baron wrote: > On Friday 2014-05-16 08:58 -0400, Wesley Hardman wrote: >> Can you detect if is enabled? If so, having a preference isn't >> going to be particularly useful as sites will just fallback to the redirect >> method. If it is added as a UI p

Re: Intent to implement and ship: navigator.hardwareConcurrency

2014-05-19 Thread Benoit Jacob
+1000! Thanks for articulating so clearly the difference between the Web-as-an-application-platform and other application platforms. Benoit 2014-05-19 21:35 GMT-04:00 Jonas Sicking : > On Mon, May 19, 2014 at 4:10 PM, Rik Cabanier wrote: > > I don't see why the web platform is special here a

Re: Intent to implement and ship: navigator.hardwareConcurrency

2014-05-19 Thread Jonas Sicking
On Mon, May 19, 2014 at 4:10 PM, Rik Cabanier wrote: > I don't see why the web platform is special here and we should trust that > authors can do the right thing. I'm fairly sure people have already pointed this out to you. But the reason the web platform is different is that because we allow arb

Re: Do we still need Trace Malloc?

2014-05-19 Thread Mike Hommey
On Mon, May 19, 2014 at 05:07:44PM -0700, Nicholas Nethercote wrote: > On Mon, May 19, 2014 at 3:05 PM, L. David Baron wrote: > >> Do we still need Trace Malloc? > > > > Are you talking about removing it from the debug builds done on our > > infra, or removing it from the tree? > > I'm aiming for

Re: Do we still need Trace Malloc?

2014-05-19 Thread L. David Baron
On Monday 2014-05-19 17:07 -0700, Nicholas Nethercote wrote: > On Mon, May 19, 2014 at 3:05 PM, L. David Baron wrote: > >> Do we still need Trace Malloc? > > > > Are you talking about removing it from the debug builds done on our > > infra, or removing it from the tree? > > I'm aiming for the lat

Re: Do we still need Trace Malloc?

2014-05-19 Thread Nicholas Nethercote
On Mon, May 19, 2014 at 3:05 PM, L. David Baron wrote: >> Do we still need Trace Malloc? > > Are you talking about removing it from the debug builds done on our > infra, or removing it from the tree? I'm aiming for the latter, though the former is a reasonable first step :) > I think the former

Re: Intent to implement and ship: navigator.hardwareConcurrency

2014-05-19 Thread Rik Cabanier
On Mon, May 19, 2014 at 3:27 PM, Jonas Sicking wrote: > On Mon, May 12, 2014 at 5:03 PM, Rik Cabanier wrote: > > Primary eng emails > > caban...@adobe.com, bugm...@eligrey.com > > > > *Proposal* > > http://wiki.whatwg.org/wiki/NavigatorCores > > > > *Summary* > > Expose a property on navigator c

Re: Intent to implement and ship: navigator.hardwareConcurrency

2014-05-19 Thread Jonas Sicking
On Mon, May 12, 2014 at 5:03 PM, Rik Cabanier wrote: > Primary eng emails > caban...@adobe.com, bugm...@eligrey.com > > *Proposal* > http://wiki.whatwg.org/wiki/NavigatorCores > > *Summary* > Expose a property on navigator called hardwareConcurrency that returns the > number of logical cores on a

Re: Do we still need Trace Malloc?

2014-05-19 Thread L. David Baron
On Monday 2014-05-19 07:25 -0700, Nicholas Nethercote wrote: > Do we still need Trace Malloc? I suspect it's barely used these days. > For memory profiling, we have about:memory and DMD. For shutdown leak > detection we have ASAN and Valgrind. > > Trace Malloc is documented here: > https://develop

Re: Do we still need Trace Malloc?

2014-05-19 Thread Kyle Huey
On Mon, May 19, 2014 at 7:25 AM, Nicholas Nethercote wrote: > Hi, > > Do we still need Trace Malloc? I suspect it's barely used these days. > For memory profiling, we have about:memory and DMD. For shutdown leak > detection we have ASAN and Valgrind. > > Trace Malloc is documented here: > https://

Re: Update on sheriff-assisted checkin-needed bugs

2014-05-19 Thread Jonas Sicking
Try-from-bugzilla would be awesome! / Jonas On Mon, May 19, 2014 at 1:53 PM, Bobby Holley wrote: > (Reducing the thread scope for the followup) > > One issue I often run into is that the contributor doesn't have access to > try, and pushing it on their behalf disrupts the rhythm of the other thi

Re: Update on sheriff-assisted checkin-needed bugs

2014-05-19 Thread Bobby Holley
(Reducing the thread scope for the followup) One issue I often run into is that the contributor doesn't have access to try, and pushing it on their behalf disrupts the rhythm of the other things I'm doing. If we go forward with this, can we also get some kind of sheriff-assisted try push flag? Som

Re: Argument validation as a JSM?

2014-05-19 Thread ajvincent
On Monday, May 19, 2014 11:19:33 AM UTC-7, Jason Orendorff wrote: > But I'm not the one you have to convince. Who is? :-) ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform

Re: Argument validation as a JSM?

2014-05-19 Thread Tobie Langel
On May 19, 2014, at 20:20, Jason Orendorff wrote: > > On 05/15/2014 10:58 AM, ajvinc...@gmail.com wrote: >> Re: readability, that's something to think about, but when I write code like >> this: >> >> if ((typeof num != "number") || >> (Math.floor(num) != num) || >> isNaN(num)

RE: Application "MAR-file" auto Update not working from 29.0 to 29.0.1

2014-05-19 Thread Robert Strong
Use the latest mar generation code that is in the repositories. -Original Message- From: dev-platform [mailto:dev-platform-bounces+rstrong=mozilla@lists.mozilla.org] On Behalf Of Manish Sent: Saturday, May 17, 2014 2:14 AM To: dev-platform@lists.mozilla.org Subject: Re: Application "M

Re: Argument validation as a JSM?

2014-05-19 Thread Jason Orendorff
On 05/15/2014 10:58 AM, ajvinc...@gmail.com wrote: Re: readability, that's something to think about, but when I write code like this: if ((typeof num != "number") || (Math.floor(num) != num) || isNaN(num) || (num < 0) || Math.abs(num) == Infinity) {

Re: OMTC on Windows

2014-05-19 Thread Gavin Sharp
On Sun, May 18, 2014 at 11:48 AM, wrote: > Re TART regressions and Gavin's concerns - as always, we should > not trust the numbers blindly. > > The first thing we need is probably taking few windows machines with > different performance characteristics and compare tab animation perf > on those ma

Re: Gecko style: Braces with enums and uninons

2014-05-19 Thread Daniel Holbert
On 05/18/2014 08:16 PM, Dave Hylands wrote: > My interpretation of this is that the only time braces go on the end of the > line is when you're starting a "control structure" > https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style#Control_Structures > ...and when you're

Re: OMTC on Windows

2014-05-19 Thread Bas Schouten
- Original Message - > From: "Benjamin Smedberg" > To: "Bas Schouten" , dev-tech-...@lists.mozilla.org > Cc: "mozilla.dev.platform group" > Sent: Monday, May 19, 2014 1:01:28 PM > Subject: Re: OMTC on Windows > > On 5/18/2014 3:16 AM, Bas Schouten wrote: > > remove a lot of code that

Re: Request principal in nsIContentPolicy implementation

2014-05-19 Thread Matthew Gertner
Hi Tanvi, I wasn't very clear about this, but the problem occurs when loading the main HTML document (either into a element or directly into a normal tab). I guess it's normal that the null principal is used for the main document when a URL is entered into the URL bar. Perhaps I'm getting null

Graphics meeting today - cancelled

2014-05-19 Thread Milan Sreckovic
Well, actually, postponed to the next schedule slot two weeks from today. The agenda that we have so far (OMTC + E10S) should have the Canadian presence, and it’s a holiday in Canada today so most of the people are not in the office... -- - Milan ___

Update on sheriff-assisted checkin-needed bugs

2014-05-19 Thread Ryan VanderMeulen
As many of you are aware, the sheriff team has been assisting with landing checkin-needed bugs for some time now. However, we've also had to deal with the fallout of a higher than average bustage frequency from them. As much as we enjoy shooting ourselves in the foot, our team has decided that w

Recommended Try practices

2014-05-19 Thread Ryan VanderMeulen
While working to track down various job backlogs and busted pushes in our CI infrastructure, our team has observed some common anti-patterns in people's TryServer usage that contribute to these problems. In order to try to help developers find a balance between over-using and under-using Try, we

Do we still need Trace Malloc?

2014-05-19 Thread Nicholas Nethercote
Hi, Do we still need Trace Malloc? I suspect it's barely used these days. For memory profiling, we have about:memory and DMD. For shutdown leak detection we have ASAN and Valgrind. Trace Malloc is documented here: https://developer.mozilla.org/en-US/docs/Mozilla/Debugging/Debugging_memory_leaks#T

Re: Gecko style: Line-continuation backslash in macros

2014-05-19 Thread Benjamin Smedberg
On 5/18/2014 7:57 AM, Birunthan Mohanathas wrote: Of these options, I personally dislike the second style as it will result in unnecessary churn whenever the longest line changes. Is there a preferred style? No, I don't think so. You're correct that #2 is the least-preferable option. Just do

Re: Gecko style: Braces with enums and uninons

2014-05-19 Thread Benjamin Smedberg
On 5/18/2014 11:16 PM, Dave Hylands wrote: My interpretation of this is that the only time braces go on the end of the line is when you're starting a "control structure" https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style#Control_Structures structs, enums, classes, and

Re: OMTC on Windows

2014-05-19 Thread Benjamin Smedberg
On 5/18/2014 3:16 AM, Bas Schouten wrote: remove a lot of code that we've currently been duplicating. Furthermore it puts us on track for enabling other features on desktop like APZ, off main thread animations and other improvements. What is APZ? Is OMTC turned on in all graphics setups, acc

Re: Intent to implement: ResourceStats API

2014-05-19 Thread Jonas Sicking
Given that we're only planning on exposing this to certified apps, i.e. only to apps that are written as part of gaia, I don't think we need to do an "Intent to implement" for this. If/when we do decide to expose this to the normal web, we should do an "Intent to implement" at that time. / Jonas