Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Serge Guelton Newsgroups: comp.lang.python.announce Subject: Pythran - 0.8.7 Date: Sun, 16 Sep 2018 14:09:23 +0200 Lines: 42 Approved: python-announce-list@python.org Message-ID: References: <20180916120923.GA28119@lakota> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de TO53OrFuQwzOt8oBs/jalwXSo5ad6S/dOlykail6wdfQ== Return-Path: X-Original-To: python-announce-list@python.org Delivered-To: python-announce-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'url:pypi': 0.03; 'compiler': 0.05; ':-)': 0.07; 'enjoy,': 0.09; 'reports.': 0.09; 'to:addr:freelists.org': 0.09; 'url-ip:137/8': 0.09; 'url:issues': 0.09; 'library': 0.11; 'cc:2**2': 0.13; '0.8.7': 0.16; 'changelog': 0.16; 'conda-forge': 0.16; 'dimension': 0.16; 'dragon': 0.16; 'github:': 0.16; 'numpy': 0.16; 'osx': 0.16; 'osx):': 0.16; 'url:%9c': 0.16; 'url:changelog': 0.16; 'url:project': 0.16; 'python': 0.16; 'bug': 0.16; 'accepts': 0.17; 'runs': 0.19; 'header:User-Agent:1': 0.24; 'arrays': 0.25; 'specifies': 0.25; 'url-ip:151.101.0.223/32': 0.25; 'url- ip:151.101.128.223/32': 0.25; 'url-ip:151.101.192.223/32': 0.25; 'url-ip:151.101.64.223/32': 0.25; 'def': 0.26; 'windows': 0.26; 'url-ip:151.101.192/24': 0.26; 'url-ip:151.101.0/24': 0.27; 'url- ip:151.101.128/24': 0.27; 'url-ip:151.101.64/24': 0.27; 'import': 0.27; 'url:%3a': 0.29; 'cc:addr:python.org': 0.29; 'url- ip:192.30/16': 0.31; 'url:io': 0.31; 'version.': 0.32; 'closes': 0.33; 'jean': 0.33; 'url:readthedocs': 0.33; 'url-ip:151.101/16': 0.34; 'url-ip:151/8': 0.34; 'not,': 0.36; 'there,': 0.36; 'url:en': 0.37; 'scientific': 0.37; 'url-ip:192.30.253.112/32': 0.38; 'url-ip:192.30.253.113/32': 0.38; 'url-ip:192.30.253/24': 0.38; 'url:github': 0.38; 'url:utf8': 0.38; 'turn': 0.38; 'version': 0.39; 'thanks': 0.39; 'url:org': 0.40; 'their': 0.60; 'received:82': 0.61; 'more': 0.61; 'skip:n 10': 0.66; 'url:%3e': 0.70; 'special': 0.72; 'gift': 0.80; 'as:': 0.82; 'issues:': 0.84; 'reminder:': 0.84; 'url:is': 0.91; 'url:issue': 0.91 Content-Disposition: inline User-Agent: Mutt/1.10.0 (2018-05-17) X-Mailman-Approved-At: Fri, 21 Sep 2018 08:27:32 -0400 X-BeenThere: python-announce-list@python.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Announcement-only list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <20180916120923.GA28119@lakota> Xref: csiph.com comp.lang.python.announce:2980 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