Re: [Cython] Issue with function annotations

2017-09-27 Thread Lisandro Dalcin
On 27 September 2017 at 15:54, Stefan Behnel wrote: > Hi Lisandro, > > Lisandro Dalcin schrieb am 27.09.2017 um 14:42: >> $ cython --version >> Cython version 0.27 >> >> $ cat tmp.pyx >> def f() -> (list, list): >> return [], [] >>

Re: [Cython] Issue with function annotations

2017-09-28 Thread Lisandro Dalcin
On 27 September 2017 at 17:18, Stefan Behnel wrote: > Lisandro Dalcin schrieb am 27.09.2017 um 15:53: >> Annotations can be used for >> type hinting, but they are not required to do that. > > Well, they sort of are, according to PEP 484. > I gently disagree. Third paragra

[Cython] Issues with CYTHON_FALLTHROUGH

2017-10-13 Thread Lisandro Dalcin
ribute(fallthrough) #define CYTHON_FALLTHROUGH __attribute__((fallthrough)) #elif defined(__GNUC__) && defined(__attribute__) #define CYTHON_FALLTHROUGH __attribute__((fallthrough)) #else #define CYTHON_FALLTHROUGH #endif #endif -- Lisandro Dalcin R

Re: [Cython] Issues with CYTHON_FALLTHROUGH

2017-10-14 Thread Lisandro Dalcin
Folks, let me fix the the CYTHON_FALLTHROUGH the right way. Additionally, I'll extend the Travis-CI build matrix with python 2/3 and a couple of xcode images. On 14 October 2017 at 01:22, Stefan Behnel wrote: > Lisandro Dalcin schrieb am 13.10.2017 um 21:42: >> This is from a con

Re: [Cython] Anything to include in the next 3.0 alpha release?

2021-03-24 Thread Lisandro Dalcin
tput. But IMHO the new output looks way better and it is totally in line with the new trend of using annotations and typing. PS: I should have raised this proposal earlier, but I've been quite busy, sorry about that. -- Lisandro Dalcin Senior Research Scientist Extreme Computing Re

Re: [Cython] Anything to include in the next 3.0 alpha release?

2021-03-25 Thread Lisandro Dalcin
what to do with C/C++ types, and the interaction with the annotation typing directive. > Also thinking of C++ types here… > > OK. Material for further discussion. Regards, -- Lisandro Dalcin Senior Research Scientist Extreme Computing Research Center (ECRC) King Abdullah Uni

Re: [Cython] Remove Py3.4 support in Cython 3.0?

2021-08-14 Thread Lisandro Dalcin
uld > mean that we can start using f-strings, dict ordering, and what not. > > Any objections? > Not at all! -- Lisandro Dalcin Senior Research Scientist Extreme Computing Research Center (ECRC) King Abdullah University of Science and Technolog

Re: [Cython] Annotations and Cython 3

2021-10-25 Thread Lisandro Dalcin
n comment in sources. In the face of ambiguity... give users various alternatives to the control the behavior. -- Lisandro Dalcin Senior Research Scientist Extreme Computing Research Center (ECRC) King Abdullah University of Science and Technology (KAUST)

Re: [Cython] Nested prange loops - (was: [cython-users] Converting to Python objects with nogil (inside prange for loop))

2022-07-18 Thread Lisandro Dalcin
or` loop, and either let the C compiler complain about the user code breaking the rules, or let users pay for the consequences of breaking the Open MP rules with undefined behavior. -- Lisandro Dalcin Senior Research Scientist Extreme Computing Research Center (ECRC) King Abdullah U

Re: [Cython] cython 3 migration update and next releases

2023-05-17 Thread Lisandro Dalcin
think? > I would not say that mpi4py is a big project, but it is around 15K lines of Cython code, and it is also ready for Cython 3. I'll update mpi4py requirements to `cython>=3` as soon as Cython 3 is released. -- Lisandro Dalcin Senior Research Scientist Extreme Computing

Re: [Cython] Can we remove the FastGIL implementation?

2023-09-19 Thread Lisandro Dalcin
N_FAST_GIL=0" to your CFLAGS to disabled it (and "=1" > to enable it explicitly). It's enabled by default in CPython 3.6-3.11 (but > disabled in Cython 0.29.x on Python 3.11). > > Thanks, > Stefan > ___ &

Re: [Cython] Should we start using the internal CPython APIs?

2023-10-29 Thread Lisandro Dalcin
What about adding a Cython compiler directive to set the default value of the new macro? That way, it is up to the project's authors/maintainers to decide on how to handle this, they are in a better position to weigh the performance vs. portability trade-off. You still have to decide on the defa

Re: [Cython] Ready for Cython 3.1 ?

2023-11-06 Thread Lisandro Dalcin
u are not in a rush to release 3.0.6, I would like to have some time to properly investigate what's going on. -- Lisandro Dalcin Senior Research Scientist Extreme Computing Research Center (ECRC) King Abdullah University of Science and Technolo

<    1   2