Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.13.0 - bouc'hal #2100

Merged
merged 2 commits into from
May 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
2023-04-29 Serge Guelton <serge.guelton@telecom-bretagne.eu>

* Improve performance of functions revieving scalar arguments. This changes
the internal function call API.

* Improve performance of fix-stride slicing, using a new slice
representation.

* Improve numpy.copyto performance, and detect copyto pattern usage.

* Force internal linkage of generated functions, which gives more
optimization room to the C++ compiler.

* Provide entry points pythran.import_pythrancode and
pythran.import_pythranfile, as a poor man JIT option.

* Optimize numpy.argmax(cst * val) into numpy.argmax(val) when cst is
positive.

* Avoid copies upon numpy.array_split

* Get rid of unused functions C++ warnings

* Avoid generating a loop footer when the loop index is not used outside of
the loop.

2023-01-05 Serge Guelton <serge.guelton@telecom-bretagne.eu>

* Bump xsimd depdency to 10.0.0
Expand Down
2 changes: 1 addition & 1 deletion docs/CLI.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ The generated native ``.so`` module can then be used with the Python interpreter
Pythran version can be dumped through ``--version``::

$> pythran --version 2>&1
0.12.1.dev0
0.13.0

The module-level ``__pythran__`` variable indicates that the module loaded has been pythranized::

Expand Down
4 changes: 3 additions & 1 deletion pythran/optimizations/pattern_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

from copy import deepcopy
import gast as ast
from inspect import isclass


class Pattern(object):
Expand Down Expand Up @@ -323,7 +324,8 @@ def sub():
args=[Placeholder(1)], keywords=[])


know_patterns = [x for x in globals().values() if hasattr(x, "pattern")]
know_patterns = [x for x in globals().values()
if isclass(x) and issubclass(x, Pattern) and x is not Pattern]


class PlaceholderReplace(Transformation):
Expand Down
2 changes: 1 addition & 1 deletion pythran/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = '0.12.1.dev0'
__version__ = '0.13.0'
__url__ = 'https://github.com/serge-sans-paille/pythran'
__descr__ = 'Ahead of Time compiler for numeric kernels'