Re: [Python-ideas] Performance improvements via static typing

2018-07-21 Thread Brett Cannon
On Fri, Jul 20, 2018, 02:33 Stefan Behnel, wrote: > Michael Hall schrieb am 19.07.2018 um 15:51: > > While I am aware of projects like Cython and mypy, it seems to make sense > > for CPython to allow optional enforcement of type hints, with compiler > > optimizations related to it to be used.

Re: [Python-ideas] Performance improvements via static typing

2018-07-21 Thread Chris Barker - NOAA Federal via Python-ideas
A note here: Earlier in the conversation about standardizing type hinting, I (among others) was interested in applying it to C-level static typing (e.g. Cython). Guido made it very clear that that was NOT a goal of type hints — rather, they were to be used for dynamic, python style types — so a

Re: [Python-ideas] Performance improvements via static typing

2018-07-20 Thread Stefan Behnel
Michael Hall schrieb am 19.07.2018 um 15:51: > While I am aware of projects like Cython and mypy, it seems to make sense > for CPython to allow optional enforcement of type hints, with compiler > optimizations related to it to be used. While this would not receive the > same level of performance

Re: [Python-ideas] Performance improvements via static typing

2018-07-19 Thread Michael Hall
On Thu, Jul 19, 2018 at 10:07 AM, Stephan Houben wrote: > You are aware of numba? > > https://numba.pydata.org/ > > Stephan > > Op do 19 jul. 2018 16:03 schreef Eric Fahlgren : > >> On Thu, Jul 19, 2018 at 6:52 AM Michael Hall >> wrote: >> >>> While I am aware of projects like Cython and mypy,

Re: [Python-ideas] Performance improvements via static typing

2018-07-19 Thread Michael Hall
On Thu, Jul 19, 2018 at 10:02 AM, Eric Fahlgren wrote: > On Thu, Jul 19, 2018 at 6:52 AM Michael Hall > wrote: > >> While I am aware of projects like Cython and mypy, it seems to make sense >> for CPython to allow optional enforcement of type hints, with compiler >> optimizations related to it

Re: [Python-ideas] Performance improvements via static typing

2018-07-19 Thread Stephan Houben
You are aware of numba? https://numba.pydata.org/ Stephan Op do 19 jul. 2018 16:03 schreef Eric Fahlgren : > On Thu, Jul 19, 2018 at 6:52 AM Michael Hall > wrote: > >> While I am aware of projects like Cython and mypy, it seems to make sense >> for CPython to allow optional enforcement of

Re: [Python-ideas] Performance improvements via static typing

2018-07-19 Thread Eric Fahlgren
On Thu, Jul 19, 2018 at 6:52 AM Michael Hall wrote: > While I am aware of projects like Cython and mypy, it seems to make sense > for CPython to allow optional enforcement of type hints, with compiler > optimizations related to it to be used. While this would not receive the > same level of

[Python-ideas] Performance improvements via static typing

2018-07-19 Thread Michael Hall
While I am aware of projects like Cython and mypy, it seems to make sense for CPython to allow optional enforcement of type hints, with compiler optimizations related to it to be used. While this would not receive the same level of performance benefits as using ctypes directly, there do appear to