Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Mark Lawrence Newsgroups: comp.lang.python Subject: Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?) Date: Sat, 12 Mar 2016 17:02:23 +0000 Lines: 48 Message-ID: References: <87h9gcxkd3.fsf@elektro.pacujo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de DYDu8dBdBltRMt2OdqvA3w0P55iFhJd3Tdj2ZpVDKrUw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.024 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.05; 'lost.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:which': 0.09; 'yeah,': 0.09; 'python': 0.10; '2016': 0.16; 'comparisons,': 0.16; 'formula': 0.16; 'integers,': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'subject:?)': 0.16; 'url:success': 0.16; 'wrote:': 0.16; 'string': 0.17; 'integer': 0.18; 'programmer': 0.18; 'language': 0.19; '>>>': 0.20; 'lawrence': 0.22; 'ok.': 0.22; 'am,': 0.23; 'header :In-Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; 'header:X -Complaints-To:1': 0.26; 'chris': 0.26; '13,': 0.29; 'assembly': 0.29; "i'm": 0.30; 'operations': 0.31; 'language.': 0.32; 'maybe': 0.33; 'url:python': 0.33; 'on,': 0.35; 'something': 0.35; 'but': 0.36; 'instead': 0.36; 'there': 0.36; 'url:org': 0.36; 'faster': 0.36; 'winning': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'difference': 0.38; 'why': 0.39; 'sure': 0.39; 'application': 0.39; 'to:addr:python.org': 0.40; 'mark': 0.40; 'software': 0.40; 'care': 0.60; 'subject:The': 0.61; 'relationship': 0.61; 'show': 0.62; 'success': 0.62; 'here.': 0.62; 'charset:windows-1252': 0.62; 'companies': 0.63; 'our': 0.64; 'world': 0.64; 'it!': 0.64; 'between': 0.65; 'mar': 0.65; "they're": 0.66; 'here': 0.66; '10%': 0.72; 'discovered': 0.83; 'funny': 0.83; 'benchmark': 0.84; 'faster.': 0.84; 'pythonistas,': 0.84; 'real-life': 0.84; 'institutions': 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:104717 On 12/03/2016 16:42, BartC wrote: > On 12/03/2016 15:30, Chris Angelico wrote: >> On Sun, Mar 13, 2016 at 2:12 AM, BartC wrote: > >>> However, I was going to revise my benchmark to use strings instead of >>> integers, to show how much slower they would be. But the program was 10% >>> faster with strings! > >>> So there's something funny going on. Either string operations are >>> super-fast >>> or integer operations are somehow crippled. Or maybe there so many other >>> overheads, that the difference between strings and ints is lost. > >> Or maybe they're all actually *object* comparisons, > > Yeah, that explains it! > > and what you know >> about assembly language has no relationship to what's going on here. >> This is why we keep advising you to get to know *Python*, > > I'm not sure /my/ knowing Python better is going to help it get any faster. > > I discovered something that might be a clue to what's going on, but > you're content to just brush it under the carpet. > > OK. > For a language that is apparently so slow that is unusable, it somehow has managed to get a following. From https://www.python.org/about/success/ Python is part of the winning formula for productivity, software quality, and maintainability at many companies and institutions around the world. Here are 41 real-life Python success stories, classified by application domain. So I am clearly not the only programmer in the world who couldn't care less about speed. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence