Re: [Cython] Cython 0.25 released

2016-10-28 Thread Andreas Mueller

Congrats! Great work!

On 10/25/2016 04:34 PM, Robert Bradshaw wrote:

I'm happy to announce the release of Cython 0.25 which has numerous
new features and bug fixes. It is available at
https://pypi.python.org/pypi/Cython

We have also moved bug tracking from trac.cython.org to github issues.
However, user support still remains at cython-users@, please refrain
from filing issues until you have confirmed an actual bug.

- Robert


Features added
--

* def/cpdef methods of cdef classes benefit from Cython's internal function
   implementation, which enables introspection and line profiling for them.
   Implementation sponsored by Turbostream (www.turbostream-cfd.com).

* The distutils extension ``Cython.Distutils.build_ext`` has now been updated
   to use cythonize which properly handles dependencies.  The old extension can
   still be found in ``Cython.Distutils.old_build_ext`` and is now deprecated.

* Calls to Python functions are faster, following the recent "FastCall"
   optimisations that Victor Stinner implemented for CPython 3.6.
   See https://bugs.python.org/issue27128 and related issues.

* The new METH_FASTCALL calling convention for PyCFunctions is supported
   in CPython 3.6.  See https://bugs.python.org/issue27810

* C++ classes can now have typedef members. STL containers updated with
   value_type.

* Support for bazel using a the pyx_library rule in //Tools:rules.bzl.

* Initial support for using Cython modules in Pyston.  Patch by Daetalus.

* Dynamic Python attributes are allowed on cdef classes if an attribute
   ``cdef dict __dict__`` is declared in the class.  Patch by empyrical.

* Cython implemented C++ classes can make direct calls to base class methods.
   Patch by empyrical.

* New directive ``cython.no_gc`` to fully disable GC for a cdef class.
   Patch by Claudio Freire.

* Buffer variables are no longer excluded from ``locals()``.
   Patch by da-woods.

* Building f-strings is faster, especially when formatting C integers.

* for-loop iteration over "std::string".

* ``libc/math.pxd`` provides ``e`` and ``pi`` as alias constants to simplify
   usage as a drop-in replacement for Python's math module.

* Speed up cython.inline().

* Binary lshift operations with small constant Python integers are faster.

* Some integer operations on Python long objects are faster in Python 2.7.

* Support for the C++ ``typeid`` operator.

Significant Bugs fixed
--

* Division of complex numbers avoids overflow by using Smith's method.

* Some function signatures in ``libc.math`` and ``numpy.pxd`` were incorrect.
   Patch by Michael Seifert.

Other changes
-

* The "%%cython" IPython/jupyter magic now defaults to the language level of
   the current jupyter kernel.  The language level can be set explicitly with
   "%%cython -2" or "%%cython -3".
___
cython-devel mailing list
cython-devel@python.org
https://mail.python.org/mailman/listinfo/cython-devel


___
cython-devel mailing list
cython-devel@python.org
https://mail.python.org/mailman/listinfo/cython-devel


Re: [Cython] Cython 0.26 beta

2017-07-09 Thread Andreas Mueller

Hey folks.
So scikit-learn master doesn't build with 0.26b0:
https://github.com/scikit-learn/scikit-learn/issues/9272

Robert already looked into this, but it hasn't been resolved yet:
https://github.com/scikit-learn/scikit-learn/pull/9133

We want to create a release candidate today and release soon(ish).
It would be great if you could give us hand so that our release
builds with your release :)

Cheers,
Andy

On 07/03/2017 04:29 PM, Robert Bradshaw wrote:

There have been a lot of changes since Cython 0.25.2, please test and
report. https://github.com/cython/cython/archive/0.26b0.zip

At this point I anticipate only bugfixes will be merged before the
final release.
___
cython-devel mailing list
cython-devel@python.org
https://mail.python.org/mailman/listinfo/cython-devel


___
cython-devel mailing list
cython-devel@python.org
https://mail.python.org/mailman/listinfo/cython-devel


Re: [Cython] Preparations for Cython 0.26.1 and 0.27

2017-08-02 Thread Andreas Mueller
FWIW it looks like scikit-learn master builds without problems using 
cython master.



On 08/02/2017 05:44 AM, Stefan Behnel wrote:

Hi!

Given the current set of bugs and regressions in 0.26, I think we should
start preparing a 0.26.1 release. I've already updated the release branch
with recent fixes. It's currently the same as master, but I'd like to
separate the branches soon in order to start merging features for 0.27 to
avoid bit-rot.

The following regressions seem worth looking into for 0.26.1:

https://github.com/cython/cython/issues/1790

https://github.com/cython/cython/issues/1788

Anything else of importance?

Stefan
___
cython-devel mailing list
cython-devel@python.org
https://mail.python.org/mailman/listinfo/cython-devel


___
cython-devel mailing list
cython-devel@python.org
https://mail.python.org/mailman/listinfo/cython-devel


Re: [Cython] Preparations for Cython 0.26.1 and 0.27

2017-08-03 Thread Andreas Mueller



On 08/03/2017 12:46 PM, Stefan Behnel wrote:

Ian Henriksen schrieb am 03.08.2017 um 18:16:

On Thu, Aug 3, 2017 at 10:05 AM Matthew Brett wrote:

On Thu, Aug 3, 2017 at 2:12 PM, Andy wrote:

One more thing: If there was a nightly wheel like for scipy and numpy,
we could run CI with Cython master. That might lead to finding issues
earlier.
We probably don't want to build cython from source on CI, as I expect
that would take too much time.

That's a good idea - I will set that up, and email back here with details.

FWIW, depending on your CI needs using the no-cython-compile option can
speed
things up pretty drastically. Cython files don't compile quite as quickly
with that option set, but installing Cython itself is much faster.

Yes, for one-shot compilations that has always been the recommended way, if
there really is no suitable binary wheel available.

Cython can always be installed and used as a pure Python package, and even
run directly from a git checkout (or submodule if you really feel like it),
without any installation, just by adding it to the PYTHONPATH.


Thanks, we'll give that a go. We have a relative substantial amount
of cython code, so let's see how that'll impact runtime.
___
cython-devel mailing list
cython-devel@python.org
https://mail.python.org/mailman/listinfo/cython-devel