Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed2.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.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'static': 0.04; 'interpreter': 0.05; 'startup': 0.05; 'subject:Python': 0.06; '750': 0.07; 'pypy': 0.07; '22,': 0.09; 'executable': 0.09; 'runtime': 0.09; 'sake': 0.09; 'second.': 0.09; 'uses.': 0.09; 'suggest': 0.14; '(it': 0.16; 'bug).': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'merged': 0.16; 'previously,': 0.16; 'time"': 0.16; 'time.)': 0.16; ':-)': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'adds': 0.24; 'fairly': 0.24; 'environment': 0.24; 'developers': 0.25; 'options': 0.25; 'script': 0.25; 'compare': 0.26; 'task': 0.26; 'second': 0.26; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'start,': 0.30; 'message-id:@mail.gmail.com': 0.30; "d'aprano": 0.31; 'long.': 0.31; 'steven': 0.31; 'subject:end': 0.31; 'trivial': 0.31; 'probably': 0.32; 'critical': 0.32; 'languages': 0.32; 'actual': 0.34; 'could': 0.34; 'anywhere': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'sequence': 0.36; 'level': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'itself': 0.39; 'to:addr:python.org': 0.39; 'space': 0.40; 'even': 0.60; 'skip:u 10': 0.60; 'took': 0.61; "you're": 0.61; 'advanced': 0.63; 'high': 0.63; 'our': 0.64; 'more': 0.64; 'close': 0.67; 'real-world': 0.68; 'cold': 0.69; 'saving': 0.69; '250': 0.78; 'benchmark': 0.84; 'delaying': 0.84; 'disposal': 0.91; 'task,': 0.91; 'why?': 0.91; 'race': 0.95; '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=yQtPVQUu6DaiyM96oTClEu3xcsmIkjR8CGN3BHKpWVE=; b=iqqhgtw9ltq2cKCVSS+UYLdPAuNhO55YNTOksa/8RNXtATKnIjut8MWI1GoG5LwL0V 3UdW/n8lhm/Yn9yPtbStgsG53MQR5tyVnFjGVRSiKW4YHPFWpSKr2Iw9ItN/oi3pj3Kz xmO0uIyTBC2yTqm3aJ8cDn4ox4rLlUXSZMtbeN/LKIljBusvXG6wibvzAZA+i+1cDV7+ FW6ZQ7+cw2tnqMT5ANwrwWvZTJ/kNMpygAVZ8J5Spqq3+4VUZfXQ4IcwkDJGueSomYOM CFIKMufss3CYC3eibf4Beuk344WIVfapkDHIQgRTAOfDr8eimnQzPfuOAHoxe8hx+Qod H30Q== MIME-Version: 1.0 X-Received: by 10.66.157.165 with SMTP id wn5mr2671432pab.169.1382444452637; Tue, 22 Oct 2013 05:20:52 -0700 (PDT) In-Reply-To: <526668e5$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> Date: Tue, 22 Oct 2013 23:20:52 +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: 29 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1382444460 news.xs4all.nl 15955 [2001:888:2000:d::a6]:56366 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:57255 On Tue, Oct 22, 2013 at 11:00 PM, Steven D'Aprano wrote: > Given a sufficiently advanced static analyser, PyPy could probably > special-case programs that do nothing. Then you're in a race to compare > the speed at which the PyPy runtime environment can start up and do > nothing, versus a stand-alone executable that has to start up and do > nothing. If this is a benchmark that people care about, I suggest they > need to get out more :-) Like every benchmark, it has its uses. Just last week I was tinkering with several high level languages in order to see which one would start, do a fairly trivial task, and shut down, in the shortest space of time. Why? Because I wanted that trivial task to be added to our rapid-deployment sequence at a point where a human would be waiting on it, and the task itself wasn't critical (it was an early-catcher for a particular type of bug). Delaying my fellow developers by even one second at that point would be unacceptable; the various options at my disposal took anywhere from 250 to 750 ms (cold cache, which is what matters) to run. Yes, I know a second isn't long. But I was trying to sell a concept, and if I can say that it adds "practically no time" to an interactive action, that's a lot better than even one second. Considering that rapiding took about 1200ms (ish - again, cold cache) previously, adding even just 250ms is noticeable. Benchmarking an empty program would get very close to this actual real-world scenario. (Eventually I merged the functionality into an unrelated script just for the sake of saving on interpreter startup time.) ChrisA