Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'interpreter': 0.05; 'correct.': 0.07; 'incompatible': 0.07; 'alain': 0.09; 'assuming': 0.09; 'claimed': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'will,': 0.09; 'python': 0.11; 'jan': 0.12; 'language,': 0.12; 'does,': 0.16; 'optional': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'extensions': 0.16; 'language': 0.16; 'wrote:': 0.18; '>>>': 0.22; 'header:User- Agent:1': 0.23; 'question': 0.24; 'compiled': 0.26; 'right.': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; '>>>>': 0.31; 'overhead': 0.31; 'ups': 0.31; 'writes:': 0.31; 'another': 0.32; 'computer.': 0.33; 'anybody': 0.35; 'there': 0.35; 'to:addr:python-list': 0.38; 'fact': 0.38; 'pm,': 0.38; 'little': 0.38; 'received:71': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'is.': 0.60; "you're": 0.61; 'reached': 0.63; 'chance': 0.65; 'here': 0.66; 'believe': 0.68; 'subject:This': 0.74; 'goal': 0.75; 'behavior': 0.77; 'compiles': 0.84; 'compiling': 0.84; 'inherent': 0.84; 'received:fios.verizon.net': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: OT: This Swift thing Date: Fri, 06 Jun 2014 13:06:13 -0400 References: <8738fjkc2w.fsf@dpt-info.u-strasbg.fr> <87tx7zi0i1.fsf@dpt-info.u-strasbg.fr> <87wqcunvhh.fsf@dpt-info.u-strasbg.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-71-175-90-87.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 In-Reply-To: <87wqcunvhh.fsf@dpt-info.u-strasbg.fr> 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: 31 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1402074399 news.xs4all.nl 2882 [2001:888:2000:d::a6]:53032 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:72864 On 6/6/2014 7:11 AM, Alain Ketterlin wrote: > Terry Reedy writes: > >> On 6/5/2014 4:07 PM, Alain Ketterlin wrote: >> >>>> When I compile Cython modules I use LLVM on this computer. >>> >>> Cython is not Python, it is another language, with an incompatible >>> syntax. >> >> Cython compiles Python with optional extensions that allow additional >> speed ups over compiling Python as is. In other word, the Cython >> language is a Python superset. I am assuming here that the claim to have reached this goal is correct. > You're right. What I question is the fact that anybody uses Cython > without the additional syntax. There is little chance that a "pure" > Python program will see any significant speedup when compiled with I believe the Cython author has claimed a 2x-5x speedup for stdlib modules when compiled 'as is'. > Cython (or, if it does, it means that the "canonical" Python interpreter > has some sub-optimal behavior that will, eventually, be corrected). I believe that there is some inherent overhead that Cython bypasses. -- Terry Jan Reedy