Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Mark Lawrence Newsgroups: comp.lang.python Subject: Re: Pyhon 2.x or 3.x, which is faster? Date: Thu, 10 Mar 2016 13:18:15 +0000 Lines: 59 Message-ID: References: <56df6761$0$1588$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de i/zyK1UZ6DgzASgdCBqCYAReEaMLhF/xslUcuf+3TJiA== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'compiler': 0.05; 'from:addr:yahoo.co.uk': 0.05; 'that?': 0.05; '(b)': 0.07; '"who': 0.09; 'blocked': 0.09; 'compiler.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'runtime': 0.09; 'subject:which': 0.09; 'vast': 0.09; 'python': 0.10; 'language,': 0.11; 'file,': 0.15; 'compilers': 0.16; 'grasp': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'stages': 0.16; 'wrote:': 0.16; 'implementing': 0.18; 'input': 0.18; 'language': 0.19; '>>>': 0.20; 'meant': 0.22; '(a)': 0.22; "aren't": 0.22; 'lawrence': 0.22; 'libraries': 0.22; 'produces': 0.22; 'suppose': 0.22; 'code,': 0.23; 'accuracy': 0.23; 'third- party': 0.23; 'written': 0.24; 'header:In-Reply-To:1': 0.24; "i've": 0.25; 'header:User-Agent:1': 0.26; 'header:X-Complaints- To:1': 0.26; 'compare': 0.27; 'data,': 0.27; 'network.': 0.27; 'another.': 0.29; 'consisting': 0.29; 'correct,': 0.29; 'faster,': 0.29; "they'll": 0.29; 'wasting': 0.29; 'code': 0.30; 'writes': 0.30; 'users.': 0.31; 'language.': 0.32; 'possibly': 0.32; 'run': 0.33; 'programming,': 0.33; "i'll": 0.33; 'done': 0.35; 'unknown': 0.35; 'something': 0.35; 'but': 0.36; 'there': 0.36; 'cases': 0.36; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'done.': 0.37; 'no,': 0.38; 'why': 0.39; 'test': 0.39; 'to:addr:python.org': 0.40; 'mark': 0.40; 'called': 0.40; 'some': 0.40; 'ever': 0.60; 'waiting': 0.60; 'your': 0.60; 'details': 0.62; 'charset:windows-1252': 0.62; 'making': 0.62; 'complete': 0.63; 'interest': 0.64; 'our': 0.64; 'repeat': 0.67; '100%': 0.72; '10%': 0.72; 'sole': 0.76; 'you:': 0.79; 'online,': 0.83; '"yes,': 0.84; 'fourth': 0.84; 'language!': 0.84; 'optimisation': 0.84; 'pythonistas,': 0.84; 'dealt': 0.91 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: 80.234.129.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:104513 On 10/03/2016 12:47, BartC wrote: > On 10/03/2016 12:15, Mark Lawrence wrote: >> On 10/03/2016 11:50, BartC wrote: > >>> Suppose you were on the development team that writes the optimising >>> stages of a C compiler. You need to test the performance of the code it >>> produces so that you can compare one optimisation with another. Would >>> you: >>> >>> (a) Test only the code that is generated by your compiler >>> >>> (b) Include also the runtime of third-party libraries consisting of >>> unknown code, written in an unknown language, with an unknown compiler >>> and with unknown optimisation settings? >> >> What has an optimising C compiler got to do with the run time speed of >> Python, which in many cases is perfectly adequate? > >> I'll repeat for >> possibly the fourth time, the vast majority of people > > The vast majority aren't implementing the language! No, they are complete weirdos called USERS. Have you ever met any? > >> have no interest >> in run time speed as they are fully aware that they'll be wasting their >> precious development time, as they know that their code will be waiting >> on the file, the database or the network. What have you failed to grasp >> about that? > > Tell that to the people who have been working on optimising compilers > for the last couple of decades. Why bother making that inner loop 10% > faster, when the program will most likely be blocked waiting for input > anyway? > > You just don't get it. At last you manage to get something correct, I do not get your obsession with run time speed. For the fifth time, the vast majority of users simply do not care. If it is fast enough, job done. I have dealt with some complete dumbos in the years that I've been online, but when it comes to thickos you're right up there with the RUE, and I can assure you that this is meant to be an insult. To your way of thinking run time speed is the sole issue with programming, and trivial details like accuracy are irrelevant. "Look, Python has taken a whole minute to process this data, but BartC has done it in one nanosecond". "Yes, but Python is 100% accurate, BartC is 100% inaccurate". "Who cares, only speed counts". -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence