Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread David Rajchenbach-Teller
On 07/07/15 07:17, Eric Rescorla wrote: > I am in favor of getting rid of aFoo. > > -Ekr > > P.S. At the risk of convincing people I am crazy and thus discounting > my opinion above, I rather prefer foo_ to mFoo, but this seems like more > a matter of taste. > I agree that `aFoo` is only useful

Re: mozilla::TemporaryRef is gone; please use already_AddRefed

2015-07-07 Thread Aryeh Gregor
On Fri, Jul 3, 2015 at 6:22 PM, Michael Layzell wrote: > So the ternary actually causes an unnecessary AddRef/Release pair, neat. Did you check whether this actually occurs in an optimized build? C++ allows temporaries to be optimized away under some circumstances, e.g., when returning a local v

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Honza Bambas
I'm strongly against removing the prefix. I got used to this and it has its meaning all the time I inspect code (even my own) and doing reviews. Recognizing a variable is an argument is very very useful. It's important to have it and it's good we enforce it! -hb- On 7/7/2015 5:12, Jeff Gil

Re: Shutdown hangs are very common

2015-07-07 Thread jmathies
On Monday, July 6, 2015 at 3:52:39 PM UTC-5, Kyle Huey wrote: > On Mon, Jul 6, 2015 at 1:37 PM, Ryan VanderMeulen wrote: > > > On 7/6/2015 4:34 PM, Vladan D wrote: > > > >> Background: Firefox shutdown hangs are turned into shutdown crashes by a > >> watchdog thread [1] that forces a crash if shu

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Kartikaya Gupta
I'd be interested to know: of those people who are in favour of removing the prefix, how many regularly have to deal with functions that are longer than two pages (a "page" is however much code you can see at a time in your coding environment)? I'd be happy to support removing the prefix if people

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Jan Varga
+1 On 07/07/15 13:54, Honza Bambas wrote: I'm strongly against removing the prefix. I got used to this and it has its meaning all the time I inspect code (even my own) and doing reviews. Recognizing a variable is an argument is very very useful. It's important to have it and it's good we en

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Honza Bambas
On 7/7/2015 15:03, Kartikaya Gupta wrote: I'd be interested to know: of those people who are in favour of removing the prefix, how many regularly have to deal with functions that are longer than two pages (a "page" is however much code you can see at a time in your coding environment)? All the

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Gabriele Svelto
On 07/07/2015 05:12, Jeff Gilbert wrote: > Notable works or style guides [2] which do not recommend `aFoo`: [3] [...] To add another internal datapoint the FxOS gaia codebase is mostly devoid of this style. There are some places using the m prefix for pseudo member variables (really just JS attrib

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Kartikaya Gupta
On Tue, Jul 7, 2015 at 9:18 AM, Honza Bambas wrote: >> I'd be happy to support >> removing the prefix if people also commit to splitting any giant >> functions they touch as part of the prefix removal. > > > That's (sorry) non-sense. In almost all cases longer methods/functions > cannot be just s

Re: GTK3 linux builds

2015-07-07 Thread chad . miller
On Tuesday, June 16, 2015 at 5:12:17 PM UTC-4, Mike Hommey wrote: > On Tue, Jun 16, 2015 at 04:16:13PM -0400, Jeff Muizelaar wrote: > > We're working on making all of the tests green for GTK3. This means > > that we could be changing the default linux configuration to GTK3 as > > early as FF42. If

Re: GTK3 linux builds

2015-07-07 Thread Nick Fitzgerald
One more group of defectors within Mozilla. From the DevTools coding standards[0]: """ - aArguments aAre the aDevil (don't use them please) """ Although, there are still some files in tree with the legacy style. [0] https://wiki.mozilla.org/DevTools/CodingStandards#Code_style On Tue, Jul 7

Re: mozilla::TemporaryRef is gone; please use already_AddRefed

2015-07-07 Thread Michael Layzell
On 2015-07-07 6:37 AM, Aryeh Gregor wrote: Did you check whether this actually occurs in an optimized build? C++ allows temporaries to be optimized away under some circumstances, e.g., when returning a local variable. It would make a lot of sense to me if it allowed the temporary created by a t

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Nick Fitzgerald
(Posted this reply to the wrong thread, reposting to the right one... >_<) One more group of defectors within Mozilla. From the DevTools coding standards[0]: """ - aArguments aAre the aDevil (don't use them please) """ Although, there are still some files in tree with the legacy style. [0]

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Jeff Muizelaar
FWIW, I did a quick poll of the people in our Gfx daily. Here are the results: For aArguments: Bas Milan Matt Kats Against aArguments: Me No strong opinion: Sotoro Lee Benoit Nical Mason -Jeff On Tue, Jul 7, 2015 at 11:12 AM, Nick Fitzgerald wrote: > (Posted this reply to the wrong

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Boris Zbarsky
On 7/7/15 11:36 AM, Jeff Muizelaar wrote: FWIW, I did a quick poll of the people in our Gfx daily. Here are the results: To add some more split opinions to the situation, I rather like the aArgument form precisely because it makes it easier to trace dataflow. Though the fact that some functio

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Mike Conley
I suspect that knowing what things were passed into a method or function is something that can be divined via static analysis. Aren't there tools for our (admittedly varied) editors / IDEs to make the readability that people are getting from aFoo readily available, but that don't also require us t

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Nathan Froyd
On Tue, Jul 7, 2015 at 11:49 AM, Mike Conley wrote: > Aren't there tools for our (admittedly varied) editors / IDEs to make > the readability that people are getting from aFoo readily available, but > that don't also require us to pack it into the actual name of the variable? I find it useful f

MemShrink Meeting - Today, 7 Jul 2015 at 4:00PM PDT

2015-07-07 Thread Jet Villegas
Today's MemShrink meeting is brought to you by AdBlock Plus: https://bugzilla.mozilla.org/show_bug.cgi?id=77999 The wiki page for this meeting is at: https://wiki.mozilla.org/Performance/MemShrink Agenda: * Prioritize unprioritized MemShrink bugs. * Discuss how we measure progress. * Discuss a

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Eric Rescorla
On Tue, Jul 7, 2015 at 6:03 AM, Kartikaya Gupta wrote: > I'd be interested to know: of those people who are in favour of > removing the prefix, how many regularly have to deal with functions > that are longer than two pages (a "page" is however much code you can > see at a time in your coding env

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Gregory Szorc
On Tue, Jul 7, 2015 at 9:29 AM, Nathan Froyd wrote: > On Tue, Jul 7, 2015 at 11:49 AM, Mike Conley wrote: > > > Aren't there tools for our (admittedly varied) editors / IDEs to make > > the readability that people are getting from aFoo readily available, but > > that don't also require us to pac

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Eric Shepherd
> Karl Tomlinson > July 7, 2015 at 12:55 AM > > I find the 'a' prefix useful to tell me that this variable has the > value that was provided to the function. > (I'm assuming that the prefix is used with this convention.) > > There's no additional safety enforced, but I fi

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Boris Zbarsky
On 7/7/15 11:49 AM, Mike Conley wrote: I suspect that knowing what things were passed into a method or function is something that can be divined via static analysis. Aren't there tools for our (admittedly varied) editors / IDEs And debuggers. And dxr and blame views? -Boris _

New Telemetry dashboards!

2015-07-07 Thread Vladan Djeric
We noticed a lot of Mozillians struggle to use the Telemetry dashboards effectively. It can be difficult to interpret the graphs & numbers, hard to find or filter the data, and there is a risk of making the wrong conclusions. The dashboards needed an overhaul. Anthony Zhang, our summer intern, has

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Honza Bambas
On 7/7/2015 19:38, Boris Zbarsky wrote: On 7/7/15 11:49 AM, Mike Conley wrote: I suspect that knowing what things were passed into a method or function is something that can be divined via static analysis. Aren't there tools for our (admittedly varied) editors / IDEs And debuggers. And dxr a

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Luke Wagner
If we do unify Gecko/SpiderMonkey styles (something it seems like we're moving towards and I think would be great), it would be a real shame to switch 'cx' (a parameter to basically every function in SpiderMonkey) to 'aCx'; that would really make some eyes bleed. One compromise could be to drop th

Re: New Telemetry dashboards!

2015-07-07 Thread Boris Zbarsky
On 7/7/15 2:26 PM, Vladan Djeric wrote: Let us know if you find bugs, notice missing functionality, or if anything is ambiguous or counter-intuitive. When I first load https://telemetry.mozilla.org/ it says, in the console: ReferenceError: CustomSelector is not defined dashboard.js:674:5 an

Re: New Telemetry dashboards!

2015-07-07 Thread Vladan Djeric
It looks like there is some kind of bug with propagating the changes to the (static) dashboard files in S3, somehow causing the old dash to be shown at telemetry.mozilla.org for some users. Others are reporting dashes that don't load. Apologies for the (very embarassing) technical difficulties. I'l

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Jeff Gilbert
On Tue, Jul 7, 2015 at 4:54 AM, Honza Bambas wrote: > I'm strongly against removing the prefix. I got used to this and it has > its meaning all the time I inspect code (even my own) and doing reviews. > Recognizing a variable is an argument is very very useful. It's important > to have it and i

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Jeff Gilbert
On Tue, Jul 7, 2015 at 6:03 AM, Kartikaya Gupta wrote: > I'd be interested to know: of those people who are in favour of > removing the prefix, how many regularly have to deal with functions > that are longer than two pages (a "page" is however much code you can > see at a time in your coding env

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Honza Bambas
On 7/7/2015 21:27, Jeff Gilbert wrote: On Tue, Jul 7, 2015 at 4:54 AM, Honza Bambas wrote: I'm strongly against removing the prefix. I got used to this and it has its meaning all the time I inspect code (even my own) and doing reviews. Recognizing a variable is an argument is very very useful

Re: Shutdown hangs are very common

2015-07-07 Thread Georg Fritzsche
Can we fix the UX? Presumably we will never have zero shutdown hangs and there may be different/better ways to prompt the user about it. On Mon, Jul 6, 2015 at 10:48 PM, Vladan D wrote: > KaiRo pointed out another reason to reduce shutdown hang rates on IRC: > it's lousy UX. The crash-reporter d

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Jeff Gilbert
On Tue, Jul 7, 2015 at 12:36 PM, Honza Bambas wrote: > On 7/7/2015 21:27, Jeff Gilbert wrote: > >> On Tue, Jul 7, 2015 at 4:54 AM, Honza Bambas wrote: >> >> I'm strongly against removing the prefix. I got used to this and it has >>> its meaning all the time I inspect code (even my own) and doi

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread smaug
As someone who spends more than 50% of working time doing reviews I'm strongly against this proposal. aFoo helps with readability - reader knows immediately when the code is dealing with arguments. -Olli On 07/07/2015 06:12 AM, Jeff Gilbert wrote: I propose that we stop recommending the uni

Re: Shutdown hangs are very common

2015-07-07 Thread David Rajchenbach-Teller
On 07/07/15 21:30, Georg Fritzsche wrote: > Can we fix the UX? > Presumably we will never have zero shutdown hangs and there may be > different/better ways to prompt the user about it. We have had a discussion at Whistler about fixing the UX of crashes (bug 1177121, iirc). To sum up: we can entir

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Jeff Gilbert
On Tue, Jul 7, 2015 at 1:03 PM, smaug wrote: > As someone who spends more than 50% of working time doing reviews I'm > strongly against this proposal. > aFoo helps with readability - reader knows immediately when the code is > dealing with arguments. > When and why is this useful to know? __

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread smaug
On 07/07/2015 10:55 PM, Jeff Gilbert wrote: On Tue, Jul 7, 2015 at 12:36 PM, Honza Bambas wrote: On 7/7/2015 21:27, Jeff Gilbert wrote: On Tue, Jul 7, 2015 at 4:54 AM, Honza Bambas wrote: I'm strongly against removing the prefix. I got used to this and it has its meaning all the time I

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread smaug
On 07/07/2015 11:18 PM, Jeff Gilbert wrote: On Tue, Jul 7, 2015 at 1:03 PM, smaug wrote: As someone who spends more than 50% of working time doing reviews I'm strongly against this proposal. aFoo helps with readability - reader knows immediately when the code is dealing with arguments. When

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Jet Villegas
On Mon, Jul 6, 2015 at 8:12 PM, Jeff Gilbert wrote: > > I propose we strike the `aFoo` recommendation from the Mozilla style guide. > Just so the proposal doesn't get lost in the bike shed, Jeff is only proposing a change to the style guide, not a tree-wide find/replace project. I take that to

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Jeff Gilbert
On Tue, Jul 7, 2015 at 1:20 PM, smaug wrote: > readability / easier to follow the dataflow are rather compelling reasons. > It hurts readability for me and many others. I don't see how it revolutionizes following dataflow, since we have locals that are pure functions of args, but yet are not mar

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Jeff Gilbert
Outvars are good candidates for having markings in the variable name. `aFoo` for all arguments is a poor solution for this, though. On Tue, Jul 7, 2015 at 1:22 PM, smaug wrote: > On 07/07/2015 11:18 PM, Jeff Gilbert wrote: > >> On Tue, Jul 7, 2015 at 1:03 PM, smaug wrote: >> >> As someone who

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Nicholas Hurley
On Mon, Jul 6, 2015 at 8:12 PM, Jeff Gilbert wrote: > I propose that we stop recommending the universal use of an 'a' prefix for > arguments to functions in C and C++. If the prefix helps with > disambiguation, that's fine. However, use of this prefix should not be > prescribed in general. > I d

Re: New Telemetry dashboards!

2015-07-07 Thread Vladan Djeric
*The stale file issues are fixed, please try out the new dashes!* https://telemetry.mozilla.org/ CloudFront was serving stale data and we needed to invalidate its caches (and give it enough time to complete the invalidations). On Tue, Jul 7, 2015 at 3:15 PM, Vladan Djeric wrote: > It looks lik

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Milan Sreckovic
Removing the style guide for “prefix function arguments with a” will not preclude people from naming a variable aFoo. At least the current style guide precludes people from naming non-function arguments that way, albeit indirectly. I’m trying to understand the possible outcomes of this particu

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Kartikaya Gupta
On Tue, Jul 7, 2015 at 3:33 PM, Jeff Gilbert wrote: > On Tue, Jul 7, 2015 at 6:03 AM, Kartikaya Gupta wrote: >> >> I'd be interested to know: of those people who are in favour of >> removing the prefix, how many regularly have to deal with functions >> that are longer than two pages (a "page" is

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread smaug
On 07/07/2015 11:45 PM, Milan Sreckovic wrote: Removing the style guide for “prefix function arguments with a” will not preclude people from naming a variable aFoo. At least the current style guide precludes people from naming non-function arguments that way, albeit indirectly. I’m trying to

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Mike Hommey
On Tue, Jul 07, 2015 at 11:52:12PM +0300, smaug wrote: > On 07/07/2015 11:45 PM, Milan Sreckovic wrote: > > > >Removing the style guide for “prefix function arguments with a” will not > >preclude people from naming a variable aFoo. At least the current style > >guide precludes people from naming

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Bobby Holley
On Tue, Jul 7, 2015 at 3:02 PM, Mike Hommey wrote: > On Tue, Jul 07, 2015 at 11:52:12PM +0300, smaug wrote: > > On 07/07/2015 11:45 PM, Milan Sreckovic wrote: > > > > > >Removing the style guide for “prefix function arguments with a” will > not preclude people from naming a variable aFoo. At lea

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Birunthan Mohanathas
On 7 July 2015 at 15:02, Mike Hommey wrote: > On Tue, Jul 07, 2015 at 11:52:12PM +0300, smaug wrote: >> until the tools (and poiru) are run and make the code follow Mozilla coding >> style. > > Assuming you're talking about clang-format, that doesn't take care > about anything else than whitespac

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Eric Rahm
On Tuesday, July 7, 2015 at 3:30:59 PM UTC-7, Birunthan Mohanathas wrote: > On 7 July 2015 at 15:02, Mike Hommey wrote: > > On Tue, Jul 07, 2015 at 11:52:12PM +0300, smaug wrote: > >> until the tools (and poiru) are run and make the code follow Mozilla > >> coding style. > > > > Assuming you're t

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Bobby Holley
On Tue, Jul 7, 2015 at 3:59 PM, Eric Rahm wrote: > I'm not a huge fan of the 'aFoo' style, but I am a huge fan of > consistency. So if we want to change the style guide we should update our > codebase, and I don't think we can reasonably do that automatically without > introducing shadowing issue

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Xidorn Quan
On Tue, Jul 7, 2015 at 1:12 PM, Jeff Gilbert wrote: > > Notable works or style guides which *do* recommend `aFoo`: > * Mozilla (except for IDL, Java, and Python) > * ? > Just FYI, Someone in Twitter mentioned that, code generated by Xcode uses this style by default. The languages are Obj-C and S

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Gregory Szorc
On Tue, Jul 7, 2015 at 1:03 PM, smaug wrote: > As someone who spends more than 50% of working time doing reviews I'm > strongly against this proposal. > aFoo helps with readability - reader knows immediately when the code is > dealing with arguments. > > I'd like to point out that MozReview allow

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Jeff Gilbert
On Tue, Jul 7, 2015 at 3:59 PM, Eric Rahm wrote: > I'm not a huge fan of the 'aFoo' style, but I am a huge fan of > consistency. So if we want to change the style guide we should update our > codebase, and I don't think we can reasonably do that automatically without > introducing shadowing issue

Re: New Telemetry dashboards!

2015-07-07 Thread Vladan D
CloudFront was serving stale data, it's fixed now. Give it another try? On Tuesday, July 7, 2015 at 3:06:45 PM UTC-4, Boris Zbarsky wrote: > On 7/7/15 2:26 PM, Vladan Djeric wrote: > > Let us know if you find bugs, notice missing functionality, or if anything > > is ambiguous or counter-intuitive.

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Mike Hommey
On Tue, Jul 07, 2015 at 05:09:57PM -0700, Gregory Szorc wrote: > On Tue, Jul 7, 2015 at 1:03 PM, smaug wrote: > > > As someone who spends more than 50% of working time doing reviews I'm > > strongly against this proposal. > > aFoo helps with readability - reader knows immediately when the code is

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Nicholas Nethercote
On Tue, Jul 7, 2015 at 5:13 PM, Jeff Gilbert wrote: > > MSVC 2013 (which I believe is our main windows compiler right now) will > error during compilation if such a shadowing issue arises. Thus, if the > code compiles there, `aFoo`->`foo` is safe. I would be very surprised if > GCC or Clang didn't

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Karl Tomlinson
Jeff Gilbert writes: > It can be a burden on the hundreds of devs who have to read and understand > the code in order to write more code. Some people find the prefix helps readability, because it makes extra information immediately available in the code being examined, while you are indicating th

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Milan Sreckovic
Jeff encouraged me to add more things to this thread, so I’m blaming him. So, some random thoughts. After getting paid to write code for 20+ years and then showing up at Mozilla, and seeing the a prefix, I thought “this is brilliant, how come we didn’t think of doing that before?!”, as a reas

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Gregory Szorc
On Tue, Jul 7, 2015 at 5:13 PM, Jeff Gilbert wrote: > On Tue, Jul 7, 2015 at 3:59 PM, Eric Rahm wrote: > > > I'm not a huge fan of the 'aFoo' style, but I am a huge fan of > > consistency. So if we want to change the style guide we should update our > > codebase, and I don't think we can reasona

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Karl Tomlinson
Jeff Gilbert writes: > I work with a number of these, but after a page or two, why is it at all > relevant which vars were args? For information flow? Should we mark locals > that purely derive from args as `aFoo` as well? Long functions (which have > poor readability anyway) generally have so muc

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread David Anderson
+1 for removing this. Gecko's use is inconsistent, and outside of Gecko code that does use it, I've never seen it used in any other codebase. I've never gone to another project and thought, "I miss decorating everything in a way that changes capitalization and impairs canonical naming". Reasons

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread David Anderson
+1 for removing this. Gecko's use is inconsistent, and outside of Gecko code that does use it, I've never seen it used in any other codebase. I've never gone to another project and thought, "I miss decorating everything in a way that changes capitalization and impairs canonical naming". Reasons

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Jeff Gilbert
On Tue, Jul 7, 2015 at 5:41 PM, Karl Tomlinson wrote: > Jeff Gilbert writes: > > > It can be a burden on the hundreds of devs who have to read and > understand > > the code in order to write more code. > > Some people find the prefix helps readability, because it makes > extra information immedia

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Jeff Gilbert
On Tue, Jul 7, 2015 at 6:06 PM, Karl Tomlinson wrote: > Jeff Gilbert writes: > > > I work with a number of these, but after a page or two, why is it at all > > relevant which vars were args? For information flow? Should we mark > locals > > that purely derive from args as `aFoo` as well? Long fun

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Karl Tomlinson
Jeff Gilbert writes: > On Tue, Jul 7, 2015 at 5:41 PM, Karl Tomlinson wrote: > >> Some people find the prefix helps readability, because it makes >> extra information immediately available in the code being >> examined, while you are indicating that this is a significant >> burden on readability.

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Jeff Gilbert
On Mon, Jul 6, 2015 at 8:26 PM, Mike Hommey wrote: > The existence of aFoo goes along with the existence of mFoo, sFoo, kFoo, > and others I might have forgotten. Not that I particularly care about > aFoo, but why strike this one and not the others?[1] It's not like they > have widespread use in

Re: Proposal to remove `aFoo` prescription from the Mozilla style guide for C and C++

2015-07-07 Thread Justin Dolske
On 7/7/15 6:17 PM, David Anderson wrote: +1 for removing this. Gecko's use is inconsistent, and outside of Gecko code that does use it, I've never seen it used in any other codebase. I've never gone to another project and thought, "I miss decorating everything in a way that changes capitalization

LGPL external library support in gecko

2015-07-07 Thread Kyle Machulis
As of bug 1176300 landing (and hopefully sticking), we now have a place for LGPL symbols in gecko. There's a new shared library called "lgpllibs" (because I am horrible at naming things but it should at least be obvious what it is). Currently it holds libsoundtouch, which is LGPL with exception, bu