Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Mark Lawrence Newsgroups: comp.lang.python Subject: Re: Pyhon 2.x or 3.x, which is faster? Date: Wed, 9 Mar 2016 23:35:24 +0000 Lines: 79 Message-ID: References: <87d1r6iltx.fsf@elektro.pacujo.net> <56df6761$0$1588$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de TFcg4CxO2qbXrkreit9yJwuukkhUO9IjGdgzYWSVd2QQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'compiler': 0.05; 'from:addr:yahoo.co.uk': 0.05; 'bits': 0.07; 'interpreted': 0.07; 'pypy': 0.07; 'see.': 0.07; 'statically': 0.07; 'paragraph,': 0.09; 'patterns,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'scripting': 0.09; 'subject:which': 0.09; 'python': 0.10; 'python.': 0.11; 'itself.': 0.11; 'output': 0.13; 'interpreter': 0.15; 'coding!': 0.16; 'compilers': 0.16; 'dropping': 0.16; 'interpreted,': 0.16; 'matters,': 0.16; 'paragraphs,': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'app': 0.16; 'string': 0.17; 'pointed': 0.18; 'input': 0.18; 'language': 0.19; '>>>': 0.20; '(the': 0.22; 'meant': 0.22; 'diverse': 0.22; 'latter': 0.22; 'lawrence': 0.22; '(or': 0.23; 'originally': 0.23; "python's": 0.23; 'second': 0.24; 'import': 0.24; 'written': 0.24; 'header:In-Reply-To:1': 0.24; 'all.': 0.24; 'module': 0.25; "i've": 0.25; 'header:User-Agent:1': 0.26; 'example': 0.26; 'header:X-Complaints-To:1': 0.26; 'handling': 0.27; 'cool': 0.27; 'idea': 0.28; 'actual': 0.28; '(it': 0.29; 'end,': 0.29; 'python).': 0.29; "i'm": 0.30; 'too.': 0.30; 'code': 0.30; 'task': 0.30; "i'd": 0.31; 'another': 0.32; "can't": 0.32; 'computing': 0.32; 'language.': 0.32; 'maybe': 0.33; "i'll": 0.33; 'running': 0.34; 'world,': 0.35; 'could': 0.35; 'execution': 0.35; 'question,': 0.35; 'unicode': 0.35; 'knowledge': 0.35; 'quite': 0.35; 'something': 0.35; 'comment': 0.35; "isn't": 0.35; 'problem.': 0.35; 'sometimes': 0.35; 'but': 0.36; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'release': 0.37; 'doing': 0.38; 'itself': 0.38; 'version': 0.38; 'several': 0.38; 'someone': 0.38; 'mailing': 0.38; 'why': 0.39; 'whatever': 0.39; 'does': 0.39; 'to:addr:python.org': 0.40; 'mark': 0.40; 'your': 0.60; 'real': 0.62; 'charset:windows-1252': 0.62; 'skip:n 10': 0.62; 'our': 0.64; 'world': 0.64; 'tasks.': 0.66; 'forward': 0.66; 'apart': 0.70; '100%': 0.72; 'commercial': 0.73; 'funny': 0.83; '2.8': 0.84; 'actually,': 0.84; 'frustrating': 0.84; 'pythonistas,': 0.84; 'rip': 0.84; 'mean.': 0.91; 'minute.': 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:104456 On 09/03/2016 23:14, BartC wrote: > On 09/03/2016 21:13, Mark Lawrence wrote: >> On 09/03/2016 12:02, BartC wrote: >>> On 09/03/2016 08:40, Mark Lawrence wrote: >>> >>> Here's another: you have a program in Python that you'd quite like to >>> port to another dynamic language. Transcribing actual Python code is >>> straightforward. Until you come to an import of a module that you can't >>> find, because it's not written in Python. Now what? Now, you might >>> appreciate the advantage of a program in 100% pure Python. >>> >> >> That is not Python's problem, or my problem, that is your problem. > > Maybe that's not the best example of why someone might prefer a 'Python' > program to be actually written in Python. Sometimes you want to > understand how code works or what it does or simply to learn from it. > (Or sometimes, to rip bits off.) Then it's frustrating when you come up > against a dead-end so quickly. Because the real meat isn't in Python at > all. > > Actually, you're doing a good job of arguing for not doing using Python > for real coding! Apart from just launching tasks. > >> Not that it matters, when you release BartC or whatever you call your >> language it'll take over the world, so I'm looking forward to dropping >> Python. What is the release date? > > (A first version might have been around 1986. I can't remember exactly. > Perhaps you think this is vapourware? It's not a commercial product at > the minute, just a hobby. Originally it was a scripting language for a > commercial app of mine.) > >> Could it be the same as that for >> Performance wise will it be tested >> against real world benchmarks or microbechmarks? > > (The byte-code compiler for the current version is written in itself. It > can compile itself (some 25Kloc) in about 1 second (that's running > interpreted, dynamic byte-code on a not-very-fast PC). Please answer my question, will it be tested against real world benchmarks or microbenchmarks? The above paragraph, and several following paragraphs, are completely irrelevant. > > The interpreter for the byte-code is also written in another language of > mine, which statically typed. The compiler for the latter is written in > the interpreted language too. > > I'd quite like to port either of these compilers to Python, to see what > PyPy can do with them. (It would also be quite cool to have them in pure > Python). But I've find these difficult to optimise, because they have > diverse execution patterns, while PyPy likes loops. I'll see. > > A compiler is another good 'pure language' task because, apart from > input and output at each end, all the computation is self-contained.) I've no idea what this is meant to mean. > > > Python 2.8 or RickedPython? Will the unicode handling be better than > > that of the dread Python 3.3+, PEP393 Flexible String Representation > > as repeatedly pointed out by the RUE? > > I'm not much interested in Unicode at the minute. I'll pass. > Your final comment sums up perfectly your knowledge of computing in 2016. I find it fitting that something so funny is put forward on the Python mailing list/news group/whatever, given the derivation of the name Python. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence