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


Groups > comp.lang.python.announce > #2878

Pythran - 0.8.6

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.6
Date Thu, 7 Jun 2018 14:01:20 +0200
Lines 31
Approved python-announce-list@python.org
Message-ID <mailman.28.1528373765.22129.python-announce-list@python.org> (permalink)
References <20180607120120.GA9284@lakota>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
X-Trace news.uni-berlin.de DY7SBqDVIlQxvM+yJVafHw/VxhJPGkqk1hWLp4cdvYfA==
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.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'url:pypi': 0.03; 'compiler': 0.05; ':-)': 0.07; 'enjoy,': 0.09; 'to:addr:freelists.org': 0.09; 'library': 0.11; 'conda-forge': 0.16; 'descriptors,': 0.16; 'from...': 0.16; 'github:': 0.16; 'osx):': 0.16; 'sfxlen:0': 0.16; 'url:project': 0.16; 'python': 0.16; 'runs': 0.19; 'libraries': 0.21; 'pfxlen:0': 0.21; 'header :User-Agent:1': 0.24; '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; 'cc:2**0': 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; 'java': 0.29; 'cc:addr:python.org': 0.29; 'skip:_ 20': 0.31; 'url- ip:192.30/16': 0.31; 'version.': 0.32; 'base,': 0.33; 'cc:no real name:2**0': 0.34; 'url-ip:151.101/16': 0.34; 'url-ip:151/8': 0.34; 'code': 0.34; 'there,': 0.36; '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; 'turn': 0.38; 'charset:us-ascii': 0.38; 'url:org': 0.40; 'received:82': 0.61; 'through': 0.61; 'c++': 0.63; 'fact,': 0.74; 'as:': 0.82; 'reminder:': 0.84; 'involved.': 0.91
Content-Disposition inline
User-Agent Mutt/1.9.5 (2018-04-13)
X-Mailman-Approved-At Thu, 07 Jun 2018 08:16:05 -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 <20180607120120.GA9284@lakota>
Xref csiph.com comp.lang.python.announce:2878

Show key headers only | View raw


Hi there,

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


    #pythran export _brief_loop(float64[:,:], uint8[:,:], intp[:,:], int[:,:], int[:,:])
    def _brief_loop(image, descriptors, keypoints, pos0, pos1):

        for k in range(len(keypoints)):
            kr, kc = keypoints[k]
            for p in range(len(pos0)):
                pr0, pc0 = pos0[p]
                pr1, pc1 = pos1[p]
                descriptors[k,p] = image[kr + pr0, kc + pc0] < image[kr + pr1, kc + pc1]

In a native library that runs much faster.

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

As a fun fact, Pythran is now used as a mean to turn Python code into
pure native library used in C++ code base, without Python involved. Some
people even use SWIG to turn this code into native libraries called
from... Java through JNI :-)

Enjoy,

Serge

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


Thread

Pythran - 0.8.6 Serge Guelton <serge.guelton@telecom-bretagne.eu> - 2018-06-07 14:01 +0200

csiph-web