Fixing build warnings [was: Re: Always brace your ifs]

2014-02-23 Thread Daniel Holbert
On 02/22/2014 12:26 PM, Hubert Figuière wrote: > Now we talk about enabling more warning, yet Mozilla codebase is far > from building warning free > > Maybe we should start with that first? FWIW, I (and others) have been working on that, as a side project, for a while now, and I think we're a

Re: Cairo being considered as the basis of a standard C++ drawing API

2014-02-23 Thread Botond Ballo
>> I would like to learn more about the tradeoffs between stateful >> and stateless drawing APIs. If anyone can point me to a resource >> about this, I would be grateful. > http://robert.ocallahan.org/2011/09/graphics-api-design.html > FWIW I don't think any of this affects Mozilla. We aren't goi

Re: C++ Standards Committee meeting in Issaquah

2014-02-23 Thread Botond Ballo
> I will be at the upcoming C++ > Standards Committee in Issaquah, Washington (near Seattle) > next week. > > ... > > I will send an update after the meeting about the progress > that was made. A lot of exciting things happened in Issaquah. Please see the blog post I wrote about the meeting:

Re: Always brace your ifs

2014-02-23 Thread Joshua Cranmer 🐧
On 2/23/2014 4:06 PM, Gijs Kruitbosch wrote: Is there an accepted reporting format that'd be appropriate for output from such a tool? Perhaps the devtools folks could be interested in helping us out with something like this? I won't have time to look until after Australis has sailed. Code cov

Use of MOZ_ARRAY_LENGTH for static constants?

2014-02-23 Thread Neil
Both ArrayLength and MOZ_ARRAY_LENGTH are typesafe when compiled as C++, however ArrayLength has the disadvantage that it's not a constant expression in MSVC. In unoptimised builds this is direly slow as the templated function does not even get inlined, but even in optimised builds the MSVC com

Re: Studying Lossy Image Compression Efficiency

2014-02-23 Thread evaccaro
On Monday, October 21, 2013 8:54:24 AM UTC-6, tric...@accusoft.com wrote: > > - I suppose that the final lossless step used for JPEGs was the usual > > Huffman encoding and not arithmetic coding, have you considered testing the > > later one independently? > > > > Uninteresting since nobody us

Re: Always brace your ifs

2014-02-23 Thread Gijs Kruitbosch
On 23/02/2014 00:33, Joshua Cranmer 🐧 wrote: On 2/22/2014 5:57 PM, Gregory Szorc wrote: On Feb 22, 2014, at 8:18, Kyle Huey wrote: If you needed another reason to follow the style guide: https://www.imperialviolet.org/2014/02/22/applebug.html Code coverage would have caught this as well.

Re: We live in a memory-constrained world

2014-02-23 Thread Nicholas Nethercote
On Fri, Feb 21, 2014 at 9:56 PM, Nicholas Nethercote wrote: >> >>> If your data is read-only after the point at which Nuwa forks the >>> process (which is once things are mostly loaded but before we load the >>> app) then generally yes. It's copy-on-write at page granularity of >>> course, so if