Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python.announce > #2828
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Serge Guelton <serge.guelton@telecom-bretagne.eu> |
| Newsgroups | comp.lang.python.announce |
| Subject | Pythran 0.8.5 |
| Date | Tue, 24 Apr 2018 09:09:31 +0200 |
| Lines | 45 |
| Approved | python-announce-list@python.org |
| Message-ID | <mailman.45.1524659217.2832.python-announce-list@python.org> (permalink) |
| References | <20180424070931.GA19986@lakota> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| X-Trace | news.uni-berlin.de Ukmc4sdr2JOfFuEI+2xZjQJ4GCp5Za3mdK++yqXZh19g== |
| Return-Path | <serge.guelton@telecom-bretagne.eu> |
| X-Original-To | python-announce-list@python.org |
| Delivered-To | python-announce-list@mail.python.org |
| X-Spam-Status | OK 0.004 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'compiler': 0.07; 'none,': 0.07; '(sorry': 0.09; 'any)': 0.09; 'github': 0.09; 'interpreted': 0.09; 'license.': 0.09; 'to:addr:freelists.org': 0.09; 'language,': 0.12; 'python': 0.15; 'bsd': 0.16; 'changelog': 0.16; 'docstring': 0.16; 'length)': 0.16; 'numpy': 0.16; 'pierre': 0.16; 'reader,': 0.16; 'roughly': 0.16; 'weights': 0.16; 'runs': 0.20; 'header:User-Agent:1': 0.25; 'def': 0.25; 'module': 0.25; 'import': 0.26; '----': 0.27; 'announce': 0.31; 'jean': 0.33; 'subset': 0.33; 'code': 0.33; 'output': 0.34; 'posting': 0.36; 'scientific': 0.37; 'charset:us-ascii': 0.37; 'turn': 0.40; 'times': 0.61; 'through': 0.61; 'sfxlen:1': 0.62; 'received:82': 0.62; 'native': 0.63; 'skip:o 10': 0.63; 'skip:n 10': 0.65; 'to:no real name:2**2': 0.67; 'below.': 0.68; 'export': 0.70; 'pleasure': 0.70; 'below:': 0.70 |
| Content-Disposition | inline |
| User-Agent | Mutt/1.9.4 (2018-02-28) |
| X-Mailman-Approved-At | Wed, 25 Apr 2018 08:26:56 -0400 |
| X-BeenThere | python-announce-list@python.org |
| X-Mailman-Version | 2.1.26 |
| Precedence | list |
| List-Id | Announcement-only list for the Python programming language <python-announce-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-announce-list/> |
| List-Post | <mailto:python-announce-list@python.org> |
| List-Help | <mailto:python-announce-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=subscribe> |
| X-Mailman-Original-Message-ID | <20180424070931.GA19986@lakota> |
| Xref | csiph.com comp.lang.python.announce:2828 |
Show key headers only | View raw
(sorry for the double posting if any)
It is my pleasure to announce a new version of the Pythran compiler.
Pythran is an Ahead of Time compiler for a subset of the Python
language, with a focus on scientific kernels.
It can turn code like the one below:
#pythran export weights(uint8[:,:])
import numpy as np
def weights(input_data, threshold=0.3):
n_seq, length = input_data.shape
weights = np.zeros(n_seq, dtype=np.float32)
for i in range(n_seq):
vector = input_data[i, None, :]
count_matches = np.sum(vector == input_data, axis=1)
over_threshold = count_matches > (threshold * length)
total = np.sum(over_threshold)
weights[i] = 1 / total
return weights
into a native module that runs roughly 10 times faster than when
interpreted by cpython.
It's available on PyPi, Conda and GitHub under BSD license.
For the curious reader, the Changelog is reproduced below.
It's a megablast!
----
2018-04-23 Serge Guelton <serge.guelton@telecom-bretagne.eu>
- numpy.fft support (thanks to Jean Laroche)
- Faster generalized expression
- Faster numpy.transpose, numpy.argmax, numpy reduction
- Sphinx-compatible generated docstring (thanks to Pierre Augier)
- Python output through -P (thanks to Pierre Augier)
- Many bugfixes and numpy improvements (thanks to Yann Diorecet and Jean Laroche)
Back to comp.lang.python.announce | Previous | Next | Find similar | Unroll thread
Pythran 0.8.5 Serge Guelton <serge.guelton@telecom-bretagne.eu> - 2018-04-24 09:09 +0200
csiph-web