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


Groups > comp.lang.python > #93199

Re: HOPE: A Python just-in-time compiler for astrophysical computations

Date 2015-06-26 11:32 -0600
From Michael Torrie <torriem@gmail.com>
Subject Re: HOPE: A Python just-in-time compiler for astrophysical computations
References <mailman.664.1434846609.13271.python-list@python.org> <55898f07$0$3088$426a74cc@news.free.fr>
Newsgroups comp.lang.python
Message-ID <mailman.106.1435339981.3674.python-list@python.org> (permalink)

Show all headers | View raw


On 06/23/2015 10:53 AM, Laurent Pointal wrote:
> Mark Lawrence wrote:
> 
>> Another beasty I've just stumbled across which you may find interesting
>> http://www.sciencedirect.com/science/article/pii/S2213133714000687
>  
> Why use a JIT complation when you could use some C++ generation then 
> compilation as Python module, like with Pythran ?
> 
> https://github.com/serge-sans-paille/pythran
> 
> For heavy computing, you may loose some time before running computation, to 
> have (generate) the right tool, then do the job with real bonus.

Not really. I suspect Hope caches the compiled subroutine so only the
very first running of the function on the very first execution of the
pthon program will be slow.  After that, the program will run quickly
each time.  It's a pretty good idea.

I've never heard of pythran; I'll have to check it out and see how it
compares to the ever-growing crop of Python dialect compilers.  Cython
could be used in a similar way as you suggest, and in PyPy we have the
RPython dialect that compiles to C.

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


Thread

HOPE: A Python just-in-time compiler for astrophysical computations Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-06-21 01:29 +0100
  Re: HOPE: A Python just-in-time compiler for astrophysical computations BartC <bc@freeuk.com> - 2015-06-21 10:29 +0100
    Re: HOPE: A Python just-in-time compiler for astrophysical computations Laura Creighton <lac@openend.se> - 2015-06-21 15:43 +0200
  Re: HOPE: A Python just-in-time compiler for astrophysical computations Laurent Pointal <laurent.pointal@free.fr> - 2015-06-23 18:53 +0200
    Re: HOPE: A Python just-in-time compiler for astrophysical computations Michael Torrie <torriem@gmail.com> - 2015-06-26 11:32 -0600
    Re: HOPE: A Python just-in-time compiler for astrophysical computations Stefan Behnel <stefan_ml@behnel.de> - 2015-06-28 09:31 +0200
      Re: HOPE: A Python just-in-time compiler for astrophysical computations wxjmfauth@gmail.com - 2015-06-29 00:19 -0700

csiph-web