Re: C++ performance test harness?

2017-07-05 Thread Henri Sivonen
On Wed, Jul 5, 2017 at 3:36 PM, Emilio Cobos Álvarez wrote: > On 07/05/2017 10:19 AM, Henri Sivonen wrote: >> Do we have a gtest analog for local performance testing? That is, >> something that makes it easy to microbenchmark libxul methods? > > For CSS parsing there is a

Re: W3C Charter Advance Notice: Web Platform (recharter) & Service Workers WGs

2017-07-05 Thread Tantek Çelik
On Wed, Jul 5, 2017 at 8:10 PM, L. David Baron wrote: > I've taken what you (Tantek) wrote and made minor changes to yield > the following Formal Objection to the Web Platform WG charter. This looks good, appreciate your edits. > Note > that I added DOM 4 to the list,

Re: W3C Charter Advance Notice: Web Platform (recharter) & Service Workers WGs

2017-07-05 Thread L. David Baron
I've taken what you (Tantek) wrote and made minor changes to yield the following Formal Objection to the Web Platform WG charter. Note that I added DOM 4 to the list, although perhaps there was a reason you didn't include it? -David We request that the charter drop all REC track specifications

PSA: Use MOZ_DEFINE_ENUM to avoid having to add sentinel enumerators

2017-07-05 Thread Botond Ballo
Today I landed bug 1371771 [1] (on inbound at the time of writing this), which adds a new MOZ_DEFINE_ENUM macro to MFBT. This macro defines an enumeration, together with a constant that stores the number of enumerators (and, in addition, another constant that stores the highest enumerator). For

Re: inlining JS code at build time

2017-07-05 Thread Gregory Szorc
On Wed, Jul 5, 2017 at 6:36 PM, Kris Maglione wrote: > It's possible to use the preprocessor to join multiple JS files, but we've > been moving away from that as much as possible recently. > It is worth mentioning that we don't like to use the Python preprocessor because

Re: inlining JS code at build time

2017-07-05 Thread Kris Maglione
It's possible to use the preprocessor to join multiple JS files, but we've been moving away from that as much as possible recently. With the script precompiler enabled, though, there isn't very much per-script overhead for scripts loaded via the subscript loader at startup. And if the new

inlining JS code at build time

2017-07-05 Thread zbraniecki
I'm working on a new feature which will add a new JS class. I can grow the main file (mozIntl.js) or add it in a separate file (mozIntlLocale.js). For readability, I think it would be nicer if I could add it as a separate file (I like to keep my files under 500 lines), but I don't want us to

`mach cargo check` now available

2017-07-05 Thread Nathan Froyd
Cargo recently added a subcommand, `cargo check`, to perform type checking of Rust crates without the additional step of code generation. As code generation tends to dominate Rust compilation times, `cargo check` speeds up the edit-borrow checker-bewilderment cycle. This command is now available

Upcoming C++ standards meeting in Toronto, Canada

2017-07-05 Thread Botond Ballo
Hi everyone! The next meeting of the C++ Standards Committee will be July 10-15 in Toronto, Canada. With C++17 wrapped up, this meeting will be focused full-steam on C++20, with a particular emphasis on the big-ticket items the committee is trying hard to get into C++20: Concepts, Modules,

Re: W3C Charter Advance Notice: Web Platform (recharter) & Service Workers WGs

2017-07-05 Thread Tantek Çelik
On Wed, Jul 5, 2017 at 11:02 AM, L. David Baron wrote: > On Friday 2017-05-12 15:58 -0700, L. David Baron wrote: >> The W3C gave advance notice that 2 new charters are under >> development: >> >> https://lists.w3.org/Archives/Public/public-new-work/2017May/0006.html >>

Intent to ship: telemetry opt-in and extended data changes

2017-07-05 Thread Benjamin Smedberg
As part of streamlining Firefox preferences and making our data pipeline work more smoothly, we’re are planning some changes to the way Firefox data opt-in and preferences work. We’re making this change to reduce user confusion and align preferences with the Firefox privacy notice, remove

Photon Engineering Newsletter #8 (Super Ultra Mega All-Hands edition)

2017-07-05 Thread Justin Dolske
(via https://dolske.wordpress.com/2017/07/05/photon-engineering-newsletter-8/) Oh boy ! Do I have some great updates for Newsletter #8 ! But seriously, this is a huge update… San Francisco All-Hands [image:

Re: W3C Charter Advance Notice: Web Platform (recharter) & Service Workers WGs

2017-07-05 Thread L. David Baron
On Friday 2017-05-12 15:58 -0700, L. David Baron wrote: > The W3C gave advance notice that 2 new charters are under > development: > > https://lists.w3.org/Archives/Public/public-new-work/2017May/0006.html > (which contains brief descriptions of what has changed) > > Web Platform Working

Re: C++ performance test harness?

2017-07-05 Thread William Lachance
On 2017-07-05 8:36 AM, Emilio Cobos Álvarez wrote: On 07/05/2017 10:19 AM, Henri Sivonen wrote: Do we have a gtest analog for local performance testing? That is, something that makes it easy to microbenchmark libxul methods? For CSS parsing there is a benchmark using MOZ_GTEST_BENCH[1].

Re: C++ performance test harness?

2017-07-05 Thread Ehsan Akhgari
On 07/05/2017 08:36 AM, Emilio Cobos Álvarez wrote: On 07/05/2017 10:19 AM, Henri Sivonen wrote: Do we have a gtest analog for local performance testing? That is, something that makes it easy to microbenchmark libxul methods? For CSS parsing there is a benchmark using MOZ_GTEST_BENCH[1].

Changes to how protocol handlers work with the LOAD_REPLACE flag

2017-07-05 Thread Honza Bambas
tl;dr: protocol handlers no longer set the LOAD_REPLACE flag, instead set loadInfo.resultPrincipalURI to channel.URI to change the address bar displayed URL. More details in bug 1319111 [1]. In a bit more details - state BEFORE: - The URL used for the result principal of the document (and

Re: C++ performance test harness?

2017-07-05 Thread Emilio Cobos Álvarez
On 07/05/2017 10:19 AM, Henri Sivonen wrote: > Do we have a gtest analog for local performance testing? That is, > something that makes it easy to microbenchmark libxul methods? For CSS parsing there is a benchmark using MOZ_GTEST_BENCH[1]. From grepping a bit seems like we also use it for

Re: Converting const char ()[N] to nsACString

2017-07-05 Thread James Cheng
Why do you need a copy? Could you just cast the name to char*? 2017年7月5日 下午5:45,"nmago" 寫道: Thank you, Honza Bambas and smaug! Found solution: char* cname = new char[N]; memcpy(cname, , N); nsACString strName(cname, N, 0); ___

Re: Converting const char ()[N] to nsACString

2017-07-05 Thread nmago
Thank you, Honza Bambas and smaug! Found solution: char* cname = new char[N]; memcpy(cname, , N); nsACString strName(cname, N, 0); ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform

C++ performance test harness?

2017-07-05 Thread Henri Sivonen
Do we have a gtest analog for local performance testing? That is, something that makes it easy to microbenchmark libxul methods? -- Henri Sivonen hsivo...@hsivonen.fi https://hsivonen.fi/ ___ dev-platform mailing list dev-platform@lists.mozilla.org