Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'interpreter': 0.05; 'python)': 0.05; 'subject:Python': 0.06; 'compiler': 0.07; 'front- end': 0.07; 'arguments': 0.09; 'bits': 0.09; 'etc).': 0.09; 'executable': 0.09; 'runtime': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; '(say': 0.16; 'cc:name:python list': 0.16; 'compilation,': 0.16; 'missing?': 0.16; 'raised.': 0.16; 'url:gnu': 0.16; 'all.': 0.16; 'language': 0.16; '(not': 0.18; 'code.': 0.18; 'cc:addr:python.org': 0.22; 'compilation': 0.24; 'fairly': 0.24; 'environment': 0.24; 'question': 0.24; 'cc:2**0': 0.24; "i've": 0.25; 'compare': 0.26; 'least': 0.26; 'header:In- Reply-To:1': 0.27; 'specifically': 0.29; 'needed.': 0.30; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'url:wiki': 0.31; '(although': 0.31; 'agreed.': 0.31; 'bad.': 0.31; 'gcc': 0.31; 'produces': 0.31; 'purely': 0.31; 'subject:end': 0.31; 'run': 0.32; 'could': 0.34; "can't": 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'really': 0.36; 'c++': 0.36; 'largely': 0.36; 'url:org': 0.36; 'should': 0.36; 'two': 0.37; 'list': 0.37; 'project': 0.37; 'performance': 0.37; 'feedback': 0.38; 'ahead': 0.38; 'massive': 0.38; 'question,': 0.38; 'needed': 0.38; 'that,': 0.38; 'little': 0.38; 'anything': 0.39; 'recent': 0.39; 'expect': 0.39; 'does': 0.39; 'itself': 0.39; 'users': 0.40; 'major': 0.40; 'how': 0.40; 'ago.': 0.61; 'numbers': 0.61; 'success': 0.61; 'world.': 0.61; 'simply': 0.61; 'making': 0.63; 'hear': 0.63; 'real': 0.63; 'such': 0.63; 'more': 0.64; 'love': 0.65; '(that': 0.65; 'talking': 0.65; 'world': 0.66; 'wish': 0.70; 'believe,': 0.84; 'compiling': 0.84; 'faster.': 0.84; 'gains': 0.84; 'washington': 0.93 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 :cc:content-type; bh=c5HWnC7HFj0bBUlV552+4T/ZrKKknasryS2yyXKjklw=; b=TeQfaD6TOgV5p4PDNgqZuQ4UgcndHCJ0Q4s7V9sAYf2T+O+jf//e0/atKS4TDxggKv WTeYaxPzq7KTxOsHpjf2z/cpgkFgYPKnt64Lb/TIowuWDdYuFiITFstp3RLrIPoxdoHU zzLYjEtUFji355oB00CrQNV8trRl3Sf7CS3OVl3pzmFeoU4OPACxu7c8OPRp76Vk1VGv BrRQ3V5DZw9013ABkG71ODfLRxaQosKHXUvSlasl40RFxilZRMNtnwkZRo4m4/3iMqOr 1WyWDVQw/6rcpeYwQzYTOLvpzGBjwjMwZBkCDB5+cTj6IvaQEjqTRBPR4qTOygixazhr qNsA== MIME-Version: 1.0 X-Received: by 10.194.110.138 with SMTP id ia10mr11940120wjb.3.1382326503297; Sun, 20 Oct 2013 20:35:03 -0700 (PDT) In-Reply-To: <4012031f-5334-4be8-a673-e0d8c8917fb2@googlegroups.com> References: <4012031f-5334-4be8-a673-e0d8c8917fb2@googlegroups.com> Date: Sun, 20 Oct 2013 20:35:03 -0700 Subject: Re: Python Front-end to GCC From: Mark Janssen To: Philip Herron Content-Type: text/plain; charset=ISO-8859-1 Cc: Python List 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: 57 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1382326510 news.xs4all.nl 15880 [2001:888:2000:d::a6]:58476 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:57166 > Gccpy is an Ahead of time implementation of Python ontop of GCC. So it > works as you would expect with a traditional compiler such as GCC to > compile C code. Or G++ to compile C++ etc. That is amazing. I was just talking about how someone should make a front-end to GCC on this list a couple of months ago. Awesome! > Documentation can be found http://gcc.gnu.org/wiki/PythonFrontEnd. > (Although this is sparse partialy on purpose since i do not wan't > people thinking this is by any means ready to compile real python > applications) What's missing? > I've found some good success with this project in compiling python > though its largely unknown to the world simply because i am nervous of > the compiler and more specifically the python compiler world. > > But at least to me there is at least to me an un-answered question in > current compiler implementations. AOT vs Jit. > > Is a jit implementation of a language (not just python) better than > traditional ahead of time compilation. Not at all. The value of jit compilation, I believe, is purely for the dynamic functionality that it allows. AOT compilation will never allow that, but in return you get massive performance and runtime-size gains (that is, you don't need a massive interpreter environment anymore!) If your compiler produces an executable program without the need for the python interpreter environment: Two major wins. > What i can say is ahead of time at least strips out the crap needed > for the users code to be run. As in people are forgetting the basics > of how a computer works in my opinion when it comes to making code run > faster. Agreed. > I could go into the arguments but i feel i should let the project > speak for itself its very immature so you really cant compare it to > anything like it but it does compile little bits and bobs fairly well > but there is much more work needed. I wish I had the resources to try it myself, but would love to see some performance numbers (say factorizations, or bubble-sorts, etc). Also runtime executable sizes. > I would really like to hear the feedback good and bad. I can't > describe how much work i've put into this and how much persistence > I've had to have in light of recent reddit threads talking about my > project. Please reference threads in question, would like to see the issues raised. -- MarkJ Tacoma, Washington