Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python.announce > #2980 > unrolled thread
| Started by | Serge Guelton <serge.guelton@telecom-bretagne.eu> |
|---|---|
| First post | 2018-09-16 14:09 +0200 |
| Last post | 2018-09-16 14:09 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python.announce
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Pythran - 0.8.7 Serge Guelton <serge.guelton@telecom-bretagne.eu> - 2018-09-16 14:09 +0200
| From | Serge Guelton <serge.guelton@telecom-bretagne.eu> |
|---|---|
| Date | 2018-09-16 14:09 +0200 |
| Subject | Pythran - 0.8.7 |
| Message-ID | <mailman.44.1537532853.2746.python-announce-list@python.org> |
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
Back to top | Article view | comp.lang.python.announce
csiph-web