Re: Hiding 'new' statements - Good or Evil?

2017-11-27 Thread Nicolas B. Pierron
ly fit into either category. Perhaps it would make sense for MakeNotNull to only be usable with smart pointers? Cheers, Botond ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform -- Nicolas B. P

Re: Proposal: Stop using Object.freeze/Object.seal on most of our Javascript Objects

2017-11-20 Thread Nicolas B. Pierron
it in SpiderMonkey, but we could definitely improve the generated code based on freeze & seal properties. -- Nicolas B. Pierron ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform

Re: JSBC: JavaScript Start-up Bytecode Cache

2017-11-09 Thread Nicolas B. Pierron
the nsICacheInfoChannel to let the ScriptLoader know about these pre-compiled resources. -- Nicolas B. Pierron ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform

Re: Pulsebot in #developers

2017-11-06 Thread Nicolas B. Pierron
le can opt-in to, and encourage people to discuss their Gecko development topics in #developers again? Philip -- Nicolas B. Pierron ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform

Re: Changes to tab min-width

2017-10-06 Thread Nicolas B. Pierron
sh Sharma B.Tech(H), Civil Engineering, Indian Institute of Technology, Kharagpur ___ firefox-dev mailing list firefox-...@mozilla.org https://mail.mozilla.org/listinfo/firefox-dev -- Nicolas B. Pierron ___ de

Re: BHR Project Status

2017-09-20 Thread Nicolas B. Pierron
? [1] https://crash-stats.mozilla.com/signature/?product=Firefox=57.0a1=RtlEnterCriticalSection%20%7C%20mozilla%3A%3Anet%3A%3ACacheStorageService%3A%3ACacheQueueSize=%3E%3D2017-03-20T15%3A55%3A32.000Z=%3C2017-09-20T15%3A55%3A32.000Z#graphs -- Nicolas B. Pierron __

Re: Coding style: Argument alignment

2017-08-30 Thread Nicolas B. Pierron
doing it during the 57 work. We will share more news about that soon. When this will happen, would we reformat all trees at once? In particular, I am asking about back-porting security patches. -- Nicolas B. Pierron ___ dev-platform mailing list dev

Re: Phabricator and confidential reviews

2017-08-09 Thread Nicolas B. Pierron
ttachments. A similar "private" flag could be used to prevent the synchronization of the CC list / reporter which are out-side the s-s group. -- Nicolas B. Pierron ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform

Re: More Rust code

2017-07-11 Thread Nicolas B. Pierron
(as it already happened with a bonus cut) for not focusing on Mozilla goals, and that even if this is a spare time project. -- Nicolas B. Pierron ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform

Re: More Rust code

2017-07-11 Thread Nicolas B. Pierron
On 07/11/2017 03:46 PM, Nicolas B. Pierron wrote: (Answering privately until I get more manager intent to get this project as part of any long term roadmap) Or not so privately after all … :( -- Nicolas B. Pierron ___ dev-platform mailing list dev

Re: JSBC: JavaScript Start-up Bytecode Cache

2017-06-14 Thread Nicolas B. Pierron
of nsXULPrototypeScript::Deserialize, we use the same methods (XDR) as used by JSBC, i-e we encode/decode the bytecode. -- Nicolas B. Pierron ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform

Re: JSBC: JavaScript Start-up Bytecode Cache

2017-06-14 Thread Nicolas B. Pierron
it. [1] https://bugzilla.mozilla.org/show_bug.cgi?id=900784#c72 [2] https://bugzilla.mozilla.org/show_bug.cgi?id=900784#c113 [3] https://bugzilla.mozilla.org/show_bug.cgi?id=1362114 -- Nicolas B. Pierron ___ dev-platform mailing list dev-platform

Re: JSBC: JavaScript Start-up Bytecode Cache

2017-06-13 Thread Nicolas B. Pierron
On 06/13/2017 03:59 PM, David Teller wrote: On 6/13/17 5:37 PM, Nicolas B. Pierron wrote: Also, the chrome files are stored in the jar file (If I recall correctly), and we might want to generate the bytecode ahead of time, such that users don't have to go through the encoding-phase. How

Re: JSBC: JavaScript Start-up Bytecode Cache

2017-06-13 Thread Nicolas B. Pierron
On 06/13/2017 03:00 PM, Dirkjan Ochtman wrote: On Jun 13, 2017 11:55, "Nicolas B. Pierron" <nicolas.b.pier...@mozilla.com> wrote: The JavaScript Start-up Bytecode Cache⁰ is a project which aims at reducing the page load time by recording the bytecode generated during the last vi

JSBC: JavaScript Start-up Bytecode Cache

2017-06-13 Thread Nicolas B. Pierron
between the parent and child processes. ⁷ https://bugzilla.mozilla.org/show_bug.cgi?id=1316078 ⁸ http://searchfox.org/mozilla-central/rev/d840ebd5858a61dbc1622487c1fab74ecf235e03/modules/libpref/init/all.js#212-233 -- Nicolas B. Pierron ___ dev-platform

Re: Race Cache With Network experiment on Nightly

2017-05-24 Thread Nicolas B. Pierron
e we could provide some estimates for the alternate data savings, based on the mime type? -- Nicolas B. Pierron ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform

Re: Mixing nsresult and Result code

2017-05-09 Thread Nicolas B. Pierron
enting success with NS_OK, and also various other forms of success values. There is already a way to specialize the PackingStrategy of the Result class to consume less space, and it can be used to specialize the way we encode such Result<Ok, nsresult> class, to avoid the overhead of du

Re: Future of out-of-tree spell checkers?

2017-03-22 Thread Nicolas B. Pierron
for jsctypes and XPCOM? -- Nicolas B. Pierron ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform

Re: Key measurements from memory reports are now shown by crash-stats.m.o

2017-02-14 Thread Nicolas B. Pierron
ine OOM bug can cause black tiles (handled OOM in graphics); Shouldn't we *safely* crash on large OOM allocations, to provide a better user-experience by restarting, instead of a degraded user experience? -- Nicolas B. Pierron ___ dev-platform mailing l

Re: A reminder about MOZ_MUST_USE and [must_use]

2017-01-20 Thread Nicolas B. Pierron
ntion in C++. We have http://searchfox.org/mozilla-central/rev/30fcf167af036aeddf322de44a2fadd370acfd2f/mfbt/Result.h#173 we just have to make it the default convention now. -- Nicolas B. Pierron ___ dev-platform mailing list dev-platform@lists.mozilla

Re: What are your use cases for the Touch Bar on the new MacBook Pro?

2017-01-05 Thread Nicolas B. Pierron
, such as the bookmark button and zoom widget. Note, I am not a MacOS user, but this is what I would expect to see in a such short-cut bar. Maybe even a bouncing rainbow unicorn. -- Nicolas B. Pierron ___ dev-platform mailing list dev-platform@lists.mozilla.org

Re: Introducing mozilla::Result for better error handling

2016-12-22 Thread Nicolas B. Pierron
r error types. I wouldn't be surprised if something like that percolates into the Rust standard library at some point. -Ted ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform

Re: Converting assertions into release assertions

2016-09-22 Thread Nicolas B. Pierron
) with some state, without going in the internals of MOZ_CRASHs or requiring privileged access to the mini-dump. Maybe something like: MOZ_ASSERT(foo < 0x1000, MOZ_REASON("Unexpected value: %x", foo)); which could be converted into a lambda doing the snprintf into a pre-reserved space.

Re: Notice: decommissioning git.mozilla.org

2016-07-01 Thread Nicolas B. Pierron
-dev.git -- Nicolas B. Pierron ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform

Re: The integration/autoland repo

2016-06-29 Thread Nicolas B. Pierron
need to query bugzilla) -- Nicolas B. Pierron ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform

Re: Build System Project - Update from the last 2 weeks

2016-04-20 Thread Nicolas B. Pierron
artifact-like builds for those who are doing C++ development. I am particularly scared about this topic for multiple reasons, including that my system does not have a /lib directory. Is there a location where I can learn more and contribute back to this? -- Nicolas B. Pierron

Re: An analysis of content process memory overhead

2016-03-19 Thread Nicolas B. Pierron
, as the compression would either be useless, or it would take a noticeable amount of time. -- Nicolas B. Pierron ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform

Re: Linux distro readiness for Rust in Gecko

2016-03-19 Thread Nicolas B. Pierron
] https://bugzilla.mozilla.org/show_bug.cgi?id=1115107 -- Nicolas B. Pierron ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform

Re: Linux distro readiness for Rust in Gecko

2016-03-19 Thread Nicolas B. Pierron
On 03/17/2016 08:30 PM, Henri Sivonen wrote: On Thu, Mar 17, 2016 at 4:11 PM, Nicolas B. Pierron <nicolas.b.pier...@mozilla.com> wrote: I guess one of the thing we could do is use an alternative solution, such as an external package manager which can work side-by-side with th

Split Gecko in standalone fuzzing-friendly programs.

2016-03-09 Thread Nicolas B. Pierron
It > really is worth some time and effort to brainstorm about all the things we > might do to raise the bar, poke some holes in those ideas, then decide on > and push forward on a few more in the next few quarters. On Wed, Mar 9, 2016 at 5:23 PM, Al Billings wrote: > On 3/9/16 6:58

Re: Using rr chaos mode to find intermittent bugs

2016-02-11 Thread Nicolas B. Pierron
e rest of the program. Thus I felt that using "-e" option would give it an unfair large time slices compared to what is supposed to happen if the threads are running concurrently. -- Nicolas B. Pierron ___ dev-platform mailing l

Re: Proposed changes to Talos (performance) alerting

2016-01-18 Thread Nicolas B. Pierron
ding known by the developers. This is just a raw idea, but maybe this would make more sense to provide a diff of profiles, and show what decreased / increased. At least this would make these benchmarks less obscure. -- Nicolas B. Pierron ___ dev-platfo

Status: ASan builds on Windows

2015-12-15 Thread Nicolas B. Pierron
ilds on supports.mozilla.org to investigate. The person to contact might be Sylvestre Ledru [:Sylvestre], based on Lawrence suggestion. -- Nicolas B. Pierron ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform

Re: Startup cache and resource:// urls

2015-11-24 Thread Nicolas B. Pierron
ncern with this plan in Whistler. > Nicolas, do you recall what your concerns were? -- Nicolas B. Pierron ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform

Re: Disabling the startup cache

2015-06-23 Thread Nicolas B. Pierron
cache, which means that we could potentially optimize it by only storing functions which are used during the start-up time of the browser. (making this cache smaller, on B2G, only 33% of the function were executed during the start-up) -- Nicolas B. Pierron

Re: Revisiting modelines in source files

2015-06-17 Thread Nicolas B. Pierron
by reading the documentation, this is not clear to me if the indent_size applies to visibility keywords and case statements, or only to braces. https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties -- Nicolas B. Pierron ___ dev-platform

Re: Use of 'auto'

2015-06-03 Thread Nicolas B. Pierron
] https://dxr.mozilla.org/mozilla-central/source/js/src/jit/CodeGenerator.cpp#1704 PS: Yes, we can use variadic templates now … Bug 1168500 -- Nicolas B. Pierron ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo

Re: Proposal to ban the usage of refcounted objects inside C++ lambdas in Gecko

2015-04-13 Thread Nicolas B. Pierron
On 04/10/2015 07:47 PM, Ehsan Akhgari wrote: On 2015-04-10 1:41 PM, Nicolas B. Pierron wrote: Also, what is the alternative? Acquiring a nsCOMPtr/nsRefPtr inside the Lambda constructor (or whatever it's called)? Yes, another option would be to ensure that the lambda cannot be used after

Re: SpiderMonkey and XPConnect style changing from |T *p| to |T* p|

2015-03-27 Thread Nicolas B. Pierron
On 03/27/2015 12:19 AM, Bobby Holley wrote: Can we switch from 4-space to 2-space indentation at some point too? Yeah good idea, and we should probably scratch everything we have done so far and rewrite everything in whitespace. -- Nicolas B. Pierron

Re: SpiderMonkey and XPConnect style changing from |T *p| to |T* p|

2015-03-27 Thread Nicolas B. Pierron
, is when you are trying to take over a dead project, and as far as I know SpiderMonkey is far from being a dead project. -- Nicolas B. Pierron ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform

Re: Intent to not fix: Building with gcc-4.6 for Fx38+

2015-03-11 Thread Nicolas B. Pierron
environments. I think answer would be something less polite than no way!. On the other hand, this sounds like a simple way to lose a minor part of our user and the major part of our developers, if we are no longer going to support anything else. -- Nicolas B. Pierron

Re: JavaScript code coverage

2015-01-20 Thread Nicolas B. Pierron
some potential users will show up and mention that they are willing to get their hand dirty if we were to implement an Analysis API as discussed back in June. In which case we might be able to raise again the question about scheduling this work. -- Nicolas B. Pierron

Re: Git pushes to mercurial, early testers needed

2014-12-19 Thread Nicolas B. Pierron
. (Yes, it's a bummer that it only allows to push to a local mercurial clone, but it's better than breaking hg.mozilla.org repositories) This is great! I will look if I can use it as a substitute for mq in the moz-git-tools. -- Nicolas B. Pierron

Re: Unified compilation is going to ride the train

2014-11-28 Thread Nicolas B. Pierron
of the person who is adding/removing files from a moz.build. I know I made these mistake multiple times, and having B2G builds reporting such issues was helpful at cleaning my patches at the earliest time. -- Nicolas B. Pierron ___ dev-platform mailing

Re: Unified compilation is going to ride the train

2014-11-28 Thread Nicolas B. Pierron
On 11/28/2014 03:36 PM, Ehsan Akhgari wrote: On 2014-11-28 6:17 AM, Nicolas B. Pierron wrote: On 11/28/2014 11:06 AM, Jonathan Kew wrote: On 28/11/14 08:46, L. David Baron wrote: On Friday 2014-11-28 10:12 +0900, Mike Hommey wrote: The downside from doing so, though, is that non-unified

Re: Git - Hg workflows?

2014-11-04 Thread Nicolas B. Pierron
wrapping up the glue under some make-up, and this does not solve the pain of pushing latencies, and of having 3.0GB only used for pushing changes. -- Nicolas B. Pierron ___ dev-platform mailing list dev-platform@lists.mozilla.org https

Re: Git - Hg workflows?

2014-11-04 Thread Nicolas B. Pierron
the script I made to map from one to the other ssh -l login people.mozilla.org ~npierron/changeset-to-commit.sh chgset ssh -l login people.mozilla.org ~npierron/commit-to-changeset.sh sha1 -- Nicolas B. Pierron ___ dev-platform mailing list dev-platform

Re: Git - Hg workflows?

2014-10-31 Thread Nicolas B. Pierron
-dev on github? -- Nicolas B. Pierron ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform

Re: The browser should cache compiled javascript code while caching html pages

2014-10-17 Thread Nicolas B. Pierron
with Necko instead of having everybody creating their own persistent storage. -- Nicolas B. Pierron ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform

Re: The worst piece of Mozilla code

2014-10-16 Thread Nicolas B. Pierron
tools, and because this is the thing that I always have to run when a build-directory. “configure does not scale—never!—” [1] [1] http://hubble.gforge.inria.fr/parallel-builds.html -- Nicolas B. Pierron ___ dev-platform mailing list dev-platform

Re: The worst piece of Mozilla code

2014-10-16 Thread Nicolas B. Pierron
On 10/16/2014 03:08 PM, Nicolas B. Pierron wrote: On 10/16/2014 02:32 PM, Nicholas Nethercote wrote: I was wondering what people think is the worst piece of code in the entire Mozilla codebase. I'll leave the exact meanings of worst and piece of code unspecified... Simple, any file named

Re: JS assertions that get optimized away!

2014-06-27 Thread Nicolas B. Pierron
, unfortunately. That can't be optimized away. For function calls, yes. For non-effectful expressions, this is what Recover Instructions (Bug 1003801) are made for. By the way, optimized away is the title I chose for the blog post I am writing to explain recover instructions :D -- Nicolas B

Re: Are you interested in doing dynamic analysis of JS code?

2014-06-26 Thread Nicolas B. Pierron
the technical aspect behind supporting such API. I would be happy if we could share a common API for running analysis in an efficient and non-intrusive manner. -- Nicolas B. Pierron ___ dev-platform mailing list dev-platform@lists.mozilla.org https

Re: Are you interested in doing dynamic analysis of JS code?

2014-06-26 Thread Nicolas B. Pierron
be. It seems that you are more interested in having assertions where you can obtain a backtrace than having an analysis which does not change the behavior of the program. -- Nicolas B. Pierron ___ dev-platform mailing list dev-platform@lists.mozilla.org

Re: Removing 'jit-tests' from make check

2014-04-04 Thread Nicolas B. Pierron
developer will have to compile the full browser just to work on the Shell? The only documentation I know [1] explains how to run a configure make. [1] https://developer.mozilla.org/en-US/docs/SpiderMonkey/Build_Documentation -- Nicolas B. Pierron

Re: mozilla::Atomic considered harmful

2014-04-02 Thread Nicolas B. Pierron
this; } This way, this is more obvious that we might not be doing the right things, as long as we are careful to refuse AtomicHandler references in reviews. -- Nicolas B. Pierron ___ dev-platform mailing list dev-platform@lists.mozilla.org https

Re: Warning about mutating the [[Prototype]] of an object ?

2014-03-28 Thread Nicolas B. Pierron
/Introduction_to_Object-Oriented_JavaScript#Inheritance Your issue is similar to the other one reported in B2G (Bug 984146) -- Nicolas B. Pierron ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform

Re: On the usefulness of style guides (Was: style guide proposal)

2013-12-20 Thread Nicolas B. Pierron
. -- Nicolas B. Pierron ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform

Re: Poll: What do you need in MXR/DXR?

2013-10-05 Thread Nicolas B. Pierron
On 10/04/2013 04:14 PM, Nicolas B. Pierron wrote: On 10/03/2013 02:38 PM, Ehsan Akhgari wrote: On 2013-10-03 3:24 PM, Nicolas B. Pierron wrote: DXR gives a nice contextual navigation, but the size of the code base is overwhelming to have a clear understanding of what is going on. One

Re: Poll: What do you need in MXR/DXR?

2013-10-04 Thread Nicolas B. Pierron
On 10/03/2013 02:38 PM, Ehsan Akhgari wrote: On 2013-10-03 3:24 PM, Nicolas B. Pierron wrote: The code base is compiled for multiple platforms. Currently I cannot find the functions which are defined on ARM unless we use a search as we used to do on MXR. This is a fundamental problem

Re: Poll: What do you need in MXR/DXR?

2013-10-03 Thread Nicolas B. Pierron
result, or the consequences of a statement. Such overview is hard to get when you have ~30 DXR tabs opened. I would love to have a graph overview of these relations, as well as seeing the conditionals/guards as part of the graph. Great Work :) -- Nicolas B. Pierron

Re: Keeping automatically-updated local mirrors of repositories?

2013-09-20 Thread Nicolas B. Pierron
the info from the pushlog which is used by tbpl: curl http://hg.mozilla.org/integration/mozilla-inbound/json-pushes |\ md5sum - and check for differences. -- Nicolas B. Pierron ___ dev-platform mailing list dev-platform@lists.mozilla.org https

Re: Deploying more robust hg-git replication for gecko

2013-09-05 Thread Nicolas B. Pierron
in the future (but please also note that it might just be a bug in my existing setup.) I never experienced that before. I guess this might be related to the fact that I pull all mercurial repositories into one before doing the conversion to git. -- Nicolas B. Pierron

Re: Embracing git usage for Firefox/Gecko development?

2013-07-10 Thread Nicolas B. Pierron
of trouble. On the other hand, I have no idea of the over head of doing that across multiple mirrors as we currently do with mercurial repositories. -- Nicolas B. Pierron ___ dev-platform mailing list dev-platform@lists.mozilla.org https

Re: Rethinking the amount of system JS we use in Gecko on B2G

2013-04-22 Thread Nicolas B. Pierron
. Currently this preference is set to 3 MB before the first GC. [1] javascript.options.mem.gc_allocation_threshold_mb -- Nicolas B. Pierron ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform