Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #71983

Re: Make Python Compilable, convert to Python source to Go

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 <rosuav@gmail.com>
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 <rosuav@gmail.com>
Cc "python-list@python.org" <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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.10279.1400993256.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Sun, May 25, 2014 at 1:06 PM, bookaa bookaa <rorsoft@gmail.com> 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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Make Python Compilable, convert to Python source to Go bookaa bookaa <rorsoft@gmail.com> - 2014-05-24 20:06 -0700
  Re: Make Python Compilable, convert to Python source to Go Chris Angelico <rosuav@gmail.com> - 2014-05-25 14:47 +1000
    Re: Make Python Compilable, convert to Python source to Go bookaa bookaa <rorsoft@gmail.com> - 2014-05-25 01:17 -0700
      Re: Make Python Compilable, convert to Python source to Go Chris Angelico <rosuav@gmail.com> - 2014-05-25 18:52 +1000
      Re: Make Python Compilable, convert to Python source to Go Stefan Behnel <stefan_ml@behnel.de> - 2014-05-25 11:30 +0200
      Re: Make Python Compilable, convert to Python source to Go Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-05-25 11:24 +0100
        Re: Make Python Compilable, convert to Python source to Go mm0fmf <none@mailinator.com> - 2014-05-25 12:02 +0100
          Re: Make Python Compilable, convert to Python source to Go Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-05-25 12:40 +0100
      Re: Make Python Compilable, convert to Python source to Go Devin Jeanpierre <jeanpierreda@gmail.com> - 2014-05-25 23:31 -0700
      Re: Make Python Compilable, convert to Python source to Go Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-05-26 12:17 +0100
        Re: Make Python Compilable, convert to Python source to Go Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-05-27 01:24 +0000
  Re: Make Python Compilable, convert to Python source to Go wxjmfauth@gmail.com - 2014-05-25 00:57 -0700
  Re: Make Python Compilable, convert to Python source to Go Ben Finney <ben@benfinney.id.au> - 2014-05-26 13:20 +1000
  Re: Make Python Compilable, convert to Python source to Go Stefan Behnel <stefan_ml@behnel.de> - 2014-05-26 09:18 +0200

csiph-web