From stefan_ml at behnel.de Sun Mar 4 07:15:15 2018 From: stefan_ml at behnel.de (Stefan Behnel) Date: Sun, 4 Mar 2018 13:15:15 +0100 Subject: [Cython] Cython 0.28 beta 1 is available! Message-ID: <4ac19da6-699c-366a-e3ce-000febc54207@behnel.de> Hi all, after almost half a year of development and a late couple of weeks of bug hunting and feature cleanup, I'm happy to announce the availability of the first beta of Cython 0.28. https://github.com/cython/cython/releases/tag/0.28b1 This is a rather big feature release, please give it some testing. I'll not even start listing the major improvements here, but it comes with some really long-requested language features and lots of new optimisations, so please take a look at the changelog: https://github.com/cython/cython/blob/0.28b1/CHANGES.rst Have fun, Stefan From stefan_ml at behnel.de Fri Mar 9 07:28:44 2018 From: stefan_ml at behnel.de (Stefan Behnel) Date: Fri, 9 Mar 2018 13:28:44 +0100 Subject: [Cython] Cython 0.28 beta 2 is available In-Reply-To: <4ac19da6-699c-366a-e3ce-000febc54207@behnel.de> References: <4ac19da6-699c-366a-e3ce-000febc54207@behnel.de> Message-ID: Hi again, thanks to your feedback, I was able to solve a couple of issues and regressions in the first beta. Here's the second one. Release: https://github.com/cython/cython/releases/tag/0.28b2 Differences: https://github.com/cython/cython/compare/0.28b1...0.28b2 Overall changelog for 0.28: https://github.com/cython/cython/blob/0.28b2/CHANGES.rst Looks like the final release is close. If nothing major comes up, I'll prepare the final release in a couple of days. Stefan Stefan Behnel schrieb am 04.03.2018 um 13:15: > Hi all, > > after almost half a year of development and a late couple of weeks of bug > hunting and feature cleanup, I'm happy to announce the availability of the > first beta of Cython 0.28. > > https://github.com/cython/cython/releases/tag/0.28b1 > > This is a rather big feature release, please give it some testing. I'll not > even start listing the major improvements here, but it comes with some > really long-requested language features and lots of new optimisations, so > please take a look at the changelog: > > https://github.com/cython/cython/blob/0.28b1/CHANGES.rst > > Have fun, > > Stefan From stefan_ml at behnel.de Sun Mar 11 05:55:03 2018 From: stefan_ml at behnel.de (Stefan Behnel) Date: Sun, 11 Mar 2018 10:55:03 +0100 Subject: [Cython] Cython 0.28 release candidate is available In-Reply-To: References: <4ac19da6-699c-366a-e3ce-000febc54207@behnel.de> Message-ID: <5e18723c-e29d-d509-9bd9-df8383688ca4@behnel.de> ... and one more iteration, since in order to fix an error reporting bug, I had to change a setting for internally generated code, which should not impact user code, but might, especially in C++ mode. So here's the release candidate: https://github.com/cython/cython/releases/tag/0.28rc1 Stefan Stefan Behnel schrieb am 09.03.2018 um 13:28: > Hi again, > > thanks to your feedback, I was able to solve a couple of issues and > regressions in the first beta. Here's the second one. > > Release: > https://github.com/cython/cython/releases/tag/0.28b2 > > Differences: > https://github.com/cython/cython/compare/0.28b1...0.28b2 > > Overall changelog for 0.28: > https://github.com/cython/cython/blob/0.28b2/CHANGES.rst > > Looks like the final release is close. If nothing major comes up, I'll > prepare the final release in a couple of days. > > Stefan > > > > Stefan Behnel schrieb am 04.03.2018 um 13:15: >> Hi all, >> >> after almost half a year of development and a late couple of weeks of bug >> hunting and feature cleanup, I'm happy to announce the availability of the >> first beta of Cython 0.28. >> >> https://github.com/cython/cython/releases/tag/0.28b1 >> >> This is a rather big feature release, please give it some testing. I'll not >> even start listing the major improvements here, but it comes with some >> really long-requested language features and lots of new optimisations, so >> please take a look at the changelog: >> >> https://github.com/cython/cython/blob/0.28b1/CHANGES.rst >> >> Have fun, >> >> Stefan > From stefan_ml at behnel.de Tue Mar 13 15:59:12 2018 From: stefan_ml at behnel.de (Stefan Behnel) Date: Tue, 13 Mar 2018 20:59:12 +0100 Subject: [Cython] Cython 0.28 released In-Reply-To: <4ac19da6-699c-366a-e3ce-000febc54207@behnel.de> References: <4ac19da6-699c-366a-e3ce-000febc54207@behnel.de> Message-ID: Hi everyone, I'm pleased to announce the immediate availability of Cython 0.28, after almost half a year of development. https://pypi.python.org/pypi/Cython/0.28 The major new features include: * Cdef classes can now multiply inherit from ordinary Python classes, as long as (exactly) one base class is an extension type. * The "const" modifier can be applied to memoryview declarations to allow read-only buffers as input. * C code in the docstring of a "cdef extern" block is copied verbatimly into the generated file. The changelog lists the various other big and small features, optimisations and bug fixes that went into this release: https://github.com/cython/cython/blob/0.28/CHANGES.rst Have fun, Stefan From J.Demeyer at UGent.be Thu Mar 15 05:32:51 2018 From: J.Demeyer at UGent.be (Jeroen Demeyer) Date: Thu, 15 Mar 2018 10:32:51 +0100 Subject: [Cython] Workshop on interfacing (math) software with low level libraries Message-ID: <5AAA3DC3.4090609@UGent.be> Dear Cython developers, This is a reminder of ODK's workshop on "Interfacing (math) software with low-level libraries", April 30th-May 4th in Cernay near Paris: https://github.com/OpenDreamKit/OpenDreamKit/issues/251 Registrations have started (see the above web page). Details: (Math) Computational systems face a tension between using high level languages (e.g. Python) for expressivity, ease of use and prototyping, and low-level languages (e.g. C/C++) for power and speed, and also for modularity (using existing libraries, or writing reusable ones). To resolve this tension, many approaches have been explored in the recent years, and the frontier between the two worlds is becoming increasingly blurry. The purpose of this workshop is to bring together developers to share expertise, seek collaboration venues, and get into concrete action. This is quite bold. The focus on math software should keep this manageable, while providing a large enough variety of solutions and use cases. - Developers of "binding systems" such as cppyy, pybind11, Boost Python - Developers of "compilers" such as Cython, Pythran, Numba - Developers of interactive C++ environments (cling, xeus-cling, xtensor, ...) - Developers of (math) libraries in a low level language that wish to make their code accessible to a variety of users (e.g. libsemigroups, or low-level combinatorics HPCombi, number theory and arithmetic FLINT; in general developers of C-level interfaces to various systems: libSingular, libgap, cypari, cypari2, giacpy, PyNormaliz, Linbox, meataxe; - Developers of systems like GAP, SageMath, Oscar, Mathemagix, ROOT that make a heavy use of such technologies - Developers of programming languages like Julia - ... Organizers: - Vincent Delecroix, Serge Gelton, Florent Hivert, Nicolas Thi?ry Funding: OpenDreamKit should be able to fund all the local expenses (as in previous workshops in Cernay), the travel expenses of ODK members, and the travel expenses of some invited people. From stefan_ml at behnel.de Sun Mar 18 16:04:11 2018 From: stefan_ml at behnel.de (Stefan Behnel) Date: Sun, 18 Mar 2018 21:04:11 +0100 Subject: [Cython] Cython 0.28.1 released Message-ID: Hi all, thanks to your excellent bug reports, here is a bug fix release for the recent 0.28. https://pypi.python.org/pypi/Cython/0.28.1 Changelog: https://github.com/cython/cython/blob/0.28.1/CHANGES.rst Bugs fixed for this release: * ``PyFrozenSet_New()`` was accidentally used in PyPy where it is missing from the C-API. * Assignment between some C++ templated types were incorrectly rejected when the templates mix ``const`` with ``ctypedef``. (Github issue #2148) * Undeclared C++ no-args constructors in subclasses could make the compilation fail if the base class constructor was declared without ``nogil``. (Github issue #2157) * Bytes %-formatting inferred ``basestring`` (bytes or unicode) as result type in some cases where ``bytes`` would have been safe to infer. (Github issue #2153) * ``None`` was accidentally disallowed as typed return value of ``dict.pop()``. (Github issue #2152) Have fun, Stefan From gabrieldemarmiesse at gmail.com Sat Mar 24 15:35:26 2018 From: gabrieldemarmiesse at gmail.com (Gabriel de Marmiesse) Date: Sat, 24 Mar 2018 19:35:26 +0000 Subject: [Cython] New organisation of the docs Message-ID: Hi! After some time spent on the docs, I noticed quite some duplicates, and also that sometime, going through many pages is needed to gather bits of information about a subject (eg. compilation, interacting with C code, extension types...). I propose to break the previous splitting tutorial / userguide in favor to a structure "by topic", which would allow us to: - spot documentation duplicates easily, - making navigation easier for the users - ultimately avoid the hassle of "I want to use learn Numpy with Cython, should I go to "Working with Numpy", "Typed memoryviews" or "Cython for Numpy users". Of course I would mean fusing some pages together and reorganizing some things inside the pages, creating new ones... But for the moment, I would like to just focus about sections names and what pages we put inside. It's a quick grouping, I'm looking for feedback, feel free to change it (especially the names): Getting Started: - Cython - an overview - Installing Cython - Installing MinGW on windows - Building Cython code - Faster code via static typing - Basic tutorial - Language basics (from users guide) - Language basics (from Reference Guide) Working with C: - calling C functions - Using C libraries - Interfacing with external C code - Unicode and passing strings - Memory allocation - Using C++ in Cython Language features: - Tutorial on extension types (aka. cdef classes). - Extension types (from Users guide) - Extension types (from Reference guide) - Special methods of extension types - pxd files - pure python mode - early bindings for speed - Fused types (Templates) - Porting Cython code to PyPy - Using parallelism - Pythran as a Numpy backend Things to watch out for: - caveats - limitations - differences between Cython and Pyrex Compilation: - Source files and compilation - Compilation - sharing declarations between Cython modules - profiling - Debugging your Cython program Interacting efficiently with python: - Working with Numpy - Working with Python arrays - Typed memoryviews - Implementing the buffer protocol - Cython for Numpy Users to be named: - Further reading - Related work Reference Guide: - Interfacing with Other Code - Special Mention - Limitations - Compiler Directives - Indices and tables Gabriel de Marmiesse -------------- next part -------------- An HTML attachment was scrubbed... URL: From J.Demeyer at UGent.be Sat Mar 31 11:22:18 2018 From: J.Demeyer at UGent.be (Jeroen Demeyer) Date: Sat, 31 Mar 2018 17:22:18 +0200 Subject: [Cython] PEP draft to get rid of the "cyfunction" class Message-ID: <5ABFA7AA.7020007@UGent.be> I have drafted a PEP (not officially submitted yet) to unify built-in and Python functions. Cython could benefit from this because cyfunctions could finally be considered functions without sacrificing performance. You find the proposal at https://github.com/jdemeyer/PEP-functions For comments and discussion, please post on the python-ideas thread https://mail.python.org/pipermail/python-ideas/2018-March/049563.html Happy Easter, Jeroen.