Path: csiph.com!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Marko Rauhamaa Newsgroups: comp.lang.python Subject: Re: Fortran Date: Thu, 29 May 2014 21:55:34 +0300 Organization: A noiseless patient Spider Lines: 41 Message-ID: <87k394ct3t.fsf@elektro.pacujo.net> References: <87tx91warf.fsf@elektro.pacujo.net> <871tvxtwgj.fsf@dpt-info.u-strasbg.fr> <8761l9pi3n.fsf@elektro.pacujo.net> <5387437f$0$4935$e4fe514c@dreader35.news.xs4all.nl> <87mwe0zlk7.fsf@elektro.pacujo.net> <53877506$0$29978$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx05.eternal-september.org; posting-host="ff5cf27ef3d5b31f034d3b72bdc27a41"; logging-data="17875"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/JT5xffY5HNz9UuydBw7d2" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) Cancel-Lock: sha1:KqSqbYyUM9cVc8jJME+Vv1Vxgeo= sha1:az1KXMqvoLLeUSx18dVmHNLj1Mc= Xref: csiph.com comp.lang.python:72247 Steven D'Aprano : > You're talking as if this were only theoretical. It is not. The state > of the art in compiler techniques has advanced a lot since the old > days of the Pascal P-Machine. Parakeet, for example[2], compiles > numeric functions to optimized machine code on the fly using > decorators, using Static Single Assignment, which some wag described > as being "covered in Fisher Price's My First Compiler"[3]. From your Parakeet link: An eager reader may be thinking: I can just stick that decorator atop any Python function and it will magically run faster? Great! I'll paste @jit all over my code and my Python performance problems will be solved! Easy with those decorators! Parakeet is not a general-purpose compiler for all of Python. Parakeet only supports a handful of Python's data types: numbers, tuples, slices, and NumPy arrays. Thus, by its own admission, it is not the Holy Grail I've been talking about: a Python optimizer that makes Java redundant. For example, I have never really had to deal with numeric computations; I have implemented numerous communication protocols in C, C++, Java and Python. I would love to stick to Python, but I haven't seen the performance numbers posted that would support that decision. Also, I know people who are using Java in large-scale online game servers. Could they be using Python instead? > [1] Unladen Swallow was not a failure. It's just that expectations > were so high ("OMG OMG Google is making a Python compiler this will be > more powerful than the Death Star and faster than time travel!!!1!") > that it couldn't help but be a disappointment. That would be *my* expectation. Until then, I'm quite happy with CPython performance in the numerous niches where it is enough. Marko