Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.054 X-Spam-Evidence: '*H*': 0.89; '*S*': 0.00; 'messages.': 0.05; 'subject:Python': 0.06; 'cache': 0.07; 'dev': 0.07; 'adopted': 0.09; 'git': 0.09; 'occasionally': 0.09; 'sells': 0.09; 'yeah,': 0.09; 'developer': 0.10; "(i'm": 0.16; '23,': 0.16; 'ages,': 0.16; 'did,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; "he'd": 0.16; 'hits': 0.16; 'minus': 0.16; 'previously,': 0.16; 'sell.': 0.16; 'sip': 0.16; 'sorts': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'wed,': 0.18; 'trying': 0.19; 'commit': 0.19; 'adds': 0.24; 'earlier': 0.24; 'source': 0.25; 'developers': 0.25; 'first,': 0.26; 'possibly': 0.26; 'second': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; "d'aprano": 0.31; 'steven': 0.31; 'subject:end': 0.31; 'probably': 0.32; 'bugs': 0.33; 'used,': 0.33; 'moment': 0.34; 'could': 0.34; 'message.': 0.35; 'problem': 0.35; 'something': 0.35; 'test': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'really': 0.36; "he's": 0.36; 'done': 0.36; 'useful': 0.36; 'experience,': 0.37; 'searching': 0.37; 'seconds': 0.37; 'too': 0.37; 'needed': 0.38; 'to:addr:python- list': 0.38; 'recent': 0.39; 'to:addr:python.org': 0.39; 'enough': 0.39; 'even': 0.60; 'catch': 0.60; 'then,': 0.60; 'mentioned': 0.61; 'took': 0.61; 'skip:* 10': 0.61; "you're": 0.61; 'times': 0.62; 'such': 0.63; 'decided': 0.64; 'more': 0.64; 'taking': 0.65; 'here': 0.66; 'importantly,': 0.68; 'notices': 0.68; 'cold': 0.69; 'day': 0.76; 'saw': 0.77; 'low': 0.83; 'beside': 0.84; 'coffee': 0.84; 'fortunately,': 0.84; 'who,': 0.84; 'workplace.': 0.84; 'notion': 0.91; 'sitting': 0.91; 'smoke': 0.91; 'imagine': 0.93; 'tough': 0.93; 'fight': 0.97; 'instant': 0.97; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=gfagbraf5ewv4GL0XLWdAHkHhETbRLbbNKbH+ODTx3s=; b=sc7DXItpqopRxA+4CQQSc7ZCeq8GW8mXuGUyuebcPLtKIUQ5CXvE46WkD+oszOzWZx /5sG8lOFujBroq028LvStMrUMYO7rYHEucXH7XyB5yg7dkAJvDTTuikR/7KIJg5fBBZG EPo7qC5ov7FCFA0sWjgVpJShiqA0KxJVIpIcTCGbmFtoZEG08asOo2z39I1w/rbmrPLw uiBtoUwpjuFDgx7Fz5OMXexaK65Q4NodMavhJluX1wp3cdruSuIPGY3agzrhoQ/MzjNI aWiO5kBPcbVjdN7oD0G4wb7KzyaDQVgS+L8/mIPKS+xBLlykcwk+xElpZbGNO88QSTto awww== MIME-Version: 1.0 X-Received: by 10.67.14.231 with SMTP id fj7mr25712312pad.115.1382478192297; Tue, 22 Oct 2013 14:43:12 -0700 (PDT) In-Reply-To: <5266b581$0$29981$c3e8da3$5496439d@news.astraweb.com> References: <4012031f-5334-4be8-a673-e0d8c8917fb2@googlegroups.com> <5264dbbe$0$30000$c3e8da3$5496439d@news.astraweb.com> <5265bba8$0$29981$c3e8da3$5496439d@news.astraweb.com> <526668e5$0$29981$c3e8da3$5496439d@news.astraweb.com> <5266b581$0$29981$c3e8da3$5496439d@news.astraweb.com> Date: Wed, 23 Oct 2013 08:43:12 +1100 Subject: Re: Python Front-end to GCC From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 51 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1382478195 news.xs4all.nl 15902 [2001:888:2000:d::a6]:41946 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:57316 On Wed, Oct 23, 2013 at 4:27 AM, Steven D'Aprano wrote: > On Tue, 22 Oct 2013 23:20:52 +1100, Chris Angelico wrote: > >> Considering that rapiding took about 1200ms (ish - again, cold cache) >> previously, adding even just 250ms is noticeable. > > Please excuse my skepticism, but in my experience, that would probably > mean in practice: > > ... rapiding took about 1200ms, plus or minus 200ms, plus 500ms if the > system is under load, plus 800ms if the developer vagued out for a > moment, plus 1900ms if he happened to be scratching an itch, plus 2700ms > if the anti-virus happened to be scanning something, plus 4100ms if the > dev decided this was a good time to take a sip of coffee, plus 437000ms > if he needed to make the coffee first, plus 72000000ms if he was just > taking a moment to check something on Reddit or answer an email... Yes; and more importantly, at the times when it actually would be used, the cache will likely be warm. > You're right, of course, that 1/4 second is noticeable. I just find it > hard to credit that it's *significant* in the circumstances you're > describing. But I could be wrong. Yeah, but the problem here is a fundamental of human nature. I mentioned earlier that I was trying to "sell" the notion of an instant pre-check of the code. I use one myself, have done for ages, and it's helped me often enough that I don't care if it occasionally adds a second to my time. (I have a few such assistants that involve searching through recent git commit messages, so they can take multiple seconds if the cache is cold. I don't care; once it's in cache, it's way faster.) But imagine sitting beside a skeptical fellow developer and saying, "Enable this line here and it'll catch these sorts of bugs before you even spin it up in your testbox" - and he hits F7 and notices that it takes twice as long as he's used to. That's going to make it a pretty hard sell. That's why I wanted to get the time cost of the smoke test as low as I possibly could, even on a cold cache. (I'm used to tough sells at my workplace. It took years before we adopted source control.... yes, seriously. And even once we did, I had to fight to get other developers to make useful commits and commit messages. One in particular - who, fortunately, is no longer with us - saw the whole thing as a nuisance that got in the way of his genius, so he'd just commit once at the end of the day with a barely-useful message. But then, he was pretty astounding in a lot of other areas, too - really amazing... like using the For-Case paradigm in PHP with an off-by-one error...) ChrisA