Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4a.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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.06; 'source.': 0.07; "'python": 0.09; 'dependency': 0.09; 'executable': 0.09; 'subset': 0.09; 'translate': 0.10; 'cc:addr :python-list': 0.11; 'python': 0.11; 'bug': 0.12; 'language,': 0.12; 'translation': 0.12; 'backend.': 0.16; 'binary.': 0.16; 'code?': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'script?': 0.16; 'java,': 0.16; 'wrote:': 0.18; 'all,': 0.19; 'figures': 0.19; 'separate': 0.22; 'cc:addr:python.org': 0.22; 'adds': 0.24; 'questions:': 0.24; 'cc:2**0': 0.24; 'source': 0.25; 'header:In-Reply-To:1': 0.27; "we'd": 0.29; 'restrict': 0.30; 'message-id:@mail.gmail.com': 0.30; '25,': 0.31; 'layer': 0.31; 'compatible': 0.32; 'run': 0.32; 'another': 0.32; 'open': 0.33; 'tool': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'version': 0.36; 'two': 0.37; 'performance': 0.37; 'files': 0.38; 'pm,': 0.38; 'anything': 0.39; 'does': 0.39; 'called': 0.40; 'how': 0.40; 'tell': 0.60; 'new': 0.61; 'numbers': 0.61; "you're": 0.61; 'worth': 0.66; 'useful.': 0.68; 'yourself': 0.78; 'comparable': 0.84; 'presumably': 0.84; 'subject:source': 0.84; 'subject:Make': 0.91; 'to:none': 0.92 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:cc :content-type; bh=TrPW2ZpWNGtjxVC7z23oWKvIy7Fs2rCPdqrNEQrORr0=; b=n9OqG43T26YLWVWiede4bxG6JT2zG0UQ2ONMTI6fpFy3kyX4V4uy00HD2ZC7xglPB5 DoCXdMzle8GFTfrtzl9p7s1+jTQEJfdkN5OJvke6jJElgEHGcG3tevY9CnkqfLk5sHa3 8IkPUaRJROQ8LVa4wSAx+/hMraQF/RLEik8PfYo92Tg/0iFt3m1I/0D6CufbYFXdGfXo vkCPj/m+5DO5z4ncFohfxdsu7/Cs5lj/Tc38DNnJ8yraON/ZwNWUFWDelFX5gISYdsSn FX5Ml1juuR6cESTPPq4gtS0vYMl/2VwxitjxJ5136hNwAFKf/j2kPiReAml1fYcdcmQ3 TgcA== MIME-Version: 1.0 X-Received: by 10.52.255.65 with SMTP id ao1mr1246900vdd.43.1400993247474; Sat, 24 May 2014 21:47:27 -0700 (PDT) In-Reply-To: <4300c94d-316b-46b8-9d51-856b60273334@googlegroups.com> References: <4300c94d-316b-46b8-9d51-856b60273334@googlegroups.com> Date: Sun, 25 May 2014 14:47:27 +1000 Subject: Re: Make Python Compilable, convert to Python source to Go From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1400993256 news.xs4all.nl 2852 [2001:888:2000:d::a6]:54063 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:71983 On Sun, May 25, 2014 at 1:06 PM, bookaa bookaa wrote: > This tool can be called 'Python to GoLang', which translate Python source to Golang source. And then you can compile the Go files to executable binary. (btw: Go is a new C-like compilable language, open source). > Sounds like you're writing a Python implementation that uses a Go backend. As Pythons go, this is comparable to using Java, or Mono, or RPython, or C, or anything else. So there are two questions: 1) How compatible is your Python-to-Golang converter with all the nuances of Python code? Does it work perfectly on any arbitrary Python script? And, what version of Python is it aimed at? 2) What's performance like? Presumably significantly better than CPython, as that's what you're boasting here. Have you run a standardized benchmark? How do the numbers look? If the answer is "It'll work on anything, but it's only faster if you restrict yourself to a specific subset of Python syntax", that's still useful. But we'd need to see figures that tell us when it's worth adding a separate dependency and another translation layer (after all, every layer adds its own bug potential). ChrisA