[pythran] Re: [SciPy-Dev] Pythran - 0.8.7

  • From: Sylvain Corlay <sylvain.corlay@xxxxxxxxx>
  • To: SciPy Developers List <scipy-dev@xxxxxxxxxx>
  • Date: Sun, 16 Sep 2018 16:42:16 +0200

Hi Serge,

Congrats on the release!

Still amazed by the performances of Pythran.

Cheers,

Sylvain

On Sun, Sep 16, 2018 at 2:19 PM Serge Guelton <
serge.guelton@xxxxxxxxxxxxxxxxxxx> wrote:

Hi there,

Pythran just released its 0.8.7 version. A quick reminder: Pythran is a
compiler for scientific Python, it can be used to turn Python kernels
as:

    #pythran export laplacien(float64[][][3])
    import numpy as np
    def laplacien(image):
        out_image = np.abs(4*image[1:-1,1:-1] -
                                       image[0:-2,1:-1] - image[2:,1:-1] -
                                       image[1:-1,0:-2] - image[1:-1,2:])
        valmax = np.max(out_image)
        valmax = max(1.,valmax)+1.E-9
        out_image /= valmax
        return out_image

In a native library that runs much faster. Note the ``#pythran export``
line that specifies that the native version only accepts 3D arrays with
last dimension set to 3.

It's available on pypi: https://pypi.org/project/pythran/
on conda-forge (linux and osx): https://anaconda.org/conda-forge/pythran
and on github: https://github.com/serge-sans-paille/pythran

Special Thanks for this release to:

- Yann Diorcet for all his work on the Windows compatibility
- Jean Laroche for the bug reports on OSX
- Marteen for his « red dragon » gift
- h-vetinari, vgroff, DerWeh, ucyo, Chronum94, paugier, gouarin and Dapid
for their bug reports.
- alexbw for setting up the conda-forge build

This release closes the following issues:


https://github.com/serge-sans-paille/pythran/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aclosed+updated%3A%3E2018-06-01+

A more detailed changelog is available at
https://pythran.readthedocs.io/en/latest/Changelog.html

Enjoy, and if not, submit bug report :-)

Serge
_______________________________________________
SciPy-Dev mailing list
SciPy-Dev@xxxxxxxxxx
https://mail.python.org/mailman/listinfo/scipy-dev

Other related posts:

  • » [pythran] Re: [SciPy-Dev] Pythran - 0.8.7 - Sylvain Corlay