Re: Mercurial with bash prompt

2015-06-19 Thread wkocher
The "advanced" prompt at http://sjl.bitbucket.org/hg-prompt/quickstart/ does cause quite a bit of lag before it shows anything. Here's what --profile gives me: https://pastebin.mozilla.org/8837461 One thing I'd like to add with prompt would be the current label (central/inbound/etc) provided

Re: Revisiting modelines in source files

2015-06-19 Thread Robert O'Callahan
On Sat, Jun 20, 2015 at 3:27 PM, Nicholas Nethercote wrote: > I also think automated tools probably won't get us meeting the style > guide perfectly -- e.g. the aforementioned line-length wrapping, and > can they ensure CamelCaps() function names and aFoo/mFoo/gFoo/sFoo > variable naming? -- so e

Re: Revisiting modelines in source files

2015-06-19 Thread Andrew McCreight
On Fri, Jun 19, 2015 at 8:27 PM, Nicholas Nethercote wrote: > > Sat, Jun 20, 2015 at 2:16 AM, Gregory Szorc wrote: > > > > We can mass rewrite the tree. But unless > > the tools to keep things consistent are easy and painless to use, this > will > > add chaos. > > Chaos? There are two distinct s

Re: Revisiting modelines in source files

2015-06-19 Thread Nicholas Nethercote
> Sat, Jun 20, 2015 at 2:16 AM, Gregory Szorc wrote: > > We can mass rewrite the tree. But unless > the tools to keep things consistent are easy and painless to use, this will > add chaos. Chaos? There are two distinct steps here. 1. Get the style mostly consistent (e.g. spacing/indentation/brac

Re: intent to implement Streams

2015-06-19 Thread d
In addition to what Ben said, you may enjoy the FAQ https://github.com/whatwg/streams/blob/master/FAQ.md, especially "How do readable streams relate to observables or EventTarget?" and "How do readable streams related to async iterables?" ___ dev-platf

Re: intent to implement Streams

2015-06-19 Thread Benjamin Kelly
On Fri, Jun 19, 2015 at 3:03 PM, Benjamin Kelly wrote: > You could also use ReadableStream, but it doesn't look as similar to > observables: > > var reader = data.getStream().getReader(); > reader.read().then(function handleRead(value) { > handleNext(value); > return reader.read().the

Re: intent to implement Streams

2015-06-19 Thread Benjamin Kelly
On Fri, Jun 19, 2015 at 2:46 PM, David Rajchenbach-Teller < dtel...@mozilla.com> wrote: > Out of curiosity: can these streams be used as a base for reactive > programming? Or is it an entirely separate notion of streams? > I'm not an expert on reactive programming, but I believe its based around

Re: Revisiting modelines in source files

2015-06-19 Thread Eric Rahm
> If someone commits to producing a suitable clang-format binary/config, I'll > sign up for creating all the tooling. It looks like Birunthan stated he'd be willing to work on the clang-format side (I'm also happy to help out) if we are committed to integrating it into our wrorkflow. I found an

Re: intent to implement Streams

2015-06-19 Thread David Rajchenbach-Teller
Out of curiosity: can these streams be used as a base for reactive programming? Or is it an entirely separate notion of streams? Cheers, David On 19/06/15 20:09, Benjamin Kelly wrote: > Also, I have setup a session on streams in the DOM room at Whistler: > > > http://juneworkweekwhistler2015.s

Re: intent to implement Streams

2015-06-19 Thread Benjamin Kelly
Also, I have setup a session on streams in the DOM room at Whistler: http://juneworkweekwhistler2015.sched.org/event/28ff926a768953ba39a44cd36598d7f7 Please stop by if you have questions or just want to talk about it. Thanks! Ben On Fri, Jun 19, 2015 at 2:00 PM, Benjamin Kelly wrote: > Stre

intent to implement Streams

2015-06-19 Thread Benjamin Kelly
Streams provide a JS primitive for accessing incremental, streamed data. For example, the fetch Response object can expose a body ReadableStream which allows reading a potentially infinite http response. Currently the only way to do something like this is with XMLHttpRequest with the append exten

Re: Revisiting modelines in source files

2015-06-19 Thread Gregory Szorc
On Fri, Jun 19, 2015 at 6:45 AM, Birunthan Mohanathas < birunt...@mohanathas.com> wrote: > Hi, > > Over the past year, I have converted a few directories (xpcom/, > docshell/, embedding/) to Gecko style using a patched Clang-Format and > a few other tools. > > On 17 June 2015 at 18:57, Gregory Szo

Re: Mercurial with bash prompt

2015-06-19 Thread Gregory Szorc
I have the following: hg_ps1() { hg prompt "{({bookmark})}" 2> /dev/null } export PS1='... $(hg_ps1)\$ ' I do not get multiple second latency. You should capture --profile output from your prompt command and see what's taking so long. File a Mozilla bug against Developer Services :: hg.mozill

Mercurial with bash prompt

2015-06-19 Thread Amit Zur
Does anyone here who works on FF source use some bash prompt variation for mercurial? something like this: http://stevelosh.com/blog/2009/03/mercurial-bash-prompts/ I was wondering what you use since the method in this link is taking a lot of seconds to run on each prompt. Can you share your $P

Re: Revisiting modelines in source files

2015-06-19 Thread Mike Hoye
On 2015-06-18 8:36 PM, Eric Rahm wrote: On Thursday, June 18, 2015 at 7:28:44 AM UTC-7, kgu...@mozilla.com wrote: // This is a comment that was previously just over the eighty // character // limit but got rewrapped by clang-format just blindly // inserting // linebreaks willy-nilly and requires

Re: Revisiting modelines in source files

2015-06-19 Thread Birunthan Mohanathas
Hi, Over the past year, I have converted a few directories (xpcom/, docshell/, embedding/) to Gecko style using a patched Clang-Format and a few other tools. On 17 June 2015 at 18:57, Gregory Szorc wrote: > First thing is first: what are the blockers to mass rewriting > mozilla-central with clan

Re: Revisiting modelines in source files

2015-06-19 Thread kgupta
On Thursday, June 18, 2015 at 8:36:09 PM UTC-4, Eric Rahm wrote: > Can we sidestep this by punting on enforcing a line length restriction with > clang-format? > > I think it would be reasonably uncontroversial to just do the following > initially: > - spacing > - indentation > - bracing I

Re: clear cache

2015-06-19 Thread Philip Chee
On 19/06/2015 17:15, Marcello Stanisci wrote: > Additionally, launching FF with '-clearcaches' or by setting the > environmental 'MOZ_CLEAR_CACHES' does not seems to give the desired > effect. The switch you want is -purgecaches Phil -- Philip Chee , http://flashblock.mozdev.org/ http://xsid

clear cache

2015-06-19 Thread Marcello Stanisci
Hi All, I have followed various guides on how to clear the 'cache' in order to get changes in the JavaScript accepted withouth restarting the browser. In this case, I talk about the JavaScript of an extension. So: how to clear the 'cache' in order to get a fresh changed JavaScript recognized, wh

Re: In http://ftp.mozilla.org/pub/mozilla.org/b2g/tinderbox-builds/larch-win64/latest/

2015-06-19 Thread Paul Rouget
Please file bugs if you have issues. cc me (:paul). On Fri, Jun 19, 2015 at 7:24 AM, 罗勇刚(Yonggang Luo) wrote: > The > graphene-41.0a1.en-US.win64.zip > Doesn't package with icu dlls > > -- > 此致 > 礼 > 罗勇刚 > Yours > sincerely, > Yonggang Luo > __