[Python-Dev] Re: Speeding up CPython

2021-05-18 Thread Stephen J. Turnbull
Abdur-Rahmaan Janhangeer writes: > That's why i guess what i am proposing might seem simple I'm saying that we already have the simple version, spelled git clone; git checkout main~5000 then git log -U0 main~5000..main | grep -v '^[-+ ]' which provides very nice hints for the

[Python-Dev] Re: Speeding up CPython

2021-05-17 Thread Diego Peres
Recently I found cinder on GitHub created by Instagram , looks like they have the same interest of yous (speed up cpython) and might be useful team up with them. ``` We've made Cinder publicly available in order to facilitate conversation about

[Python-Dev] Re: Speeding up CPython

2021-05-17 Thread Abdur-Rahmaan Janhangeer
A really awesome book, i was proposing a by the house training. The community is awesome, just some more twerkings needed as you always see the lost beginner wanting mentorship, the contributors contributing and the core-devs having no time to cater for a whole community of mentorship seekers.

[Python-Dev] Re: Speeding up CPython

2021-05-17 Thread Abdur-Rahmaan Janhangeer
On Thu, May 13, 2021 at 10:03 PM Stephen J. Turnbull < turnbull.stephen...@u.tsukuba.ac.jp> wrote: > *Creating* plausible issues is hard work, I assure you as a university > professor. Coming up with "exercises" that are not makework requires > expertise in both the domain and in educational

[Python-Dev] Re: Speeding up CPython

2021-05-14 Thread Nick Coghlan
On Fri, 14 May 2021, 1:47 am Stéfane Fermigier, wrote: > > > On Thu, May 13, 2021 at 8:42 AM Abdur-Rahmaan Janhangeer < > arj.pyt...@gmail.com> wrote: > >> Actual quote by "a Python Software Foundation fellow and contrib- >> utor to Python infrastructure projects" >> > > Ah, this is what you

[Python-Dev] Re: Speeding up CPython

2021-05-13 Thread Mats Wichmann
On 5/12/21 4:10 PM, Terry Reedy wrote: On 5/12/2021 5:14 PM, Antoine Pitrou wrote: On Wed, 12 May 2021 17:05:03 -0400 Terry Reedy wrote: Yet you always see it: new people not knowing where to start, highly skilled contributors drowning and intermediate contributors moving slowly I have

[Python-Dev] Re: Speeding up CPython

2021-05-13 Thread Stephen J. Turnbull
Abdur-Rahmaan Janhangeer writes: > No i mean fake path in the sense of a fork > of CPython with issues for learning purposes *Creating* plausible issues is hard work, I assure you as a university professor. Coming up with "exercises" that are not makework requires expertise in both the domain

[Python-Dev] Re: Speeding up CPython

2021-05-13 Thread Guido van Rossum
Have you heard of this book? It's an excellent companion to the source code. https://realpython.com/products/cpython-internals-book/ On Thu, May 13, 2021 at 12:30 AM Abdur-Rahmaan Janhangeer < arj.pyt...@gmail.com> wrote: > Greetings, > > One crucial missing piece in the Python world is the

[Python-Dev] Re: Speeding up CPython

2021-05-13 Thread Stéfane Fermigier
On Thu, May 13, 2021 at 8:42 AM Abdur-Rahmaan Janhangeer < arj.pyt...@gmail.com> wrote: > Actual quote by "a Python Software Foundation fellow and contrib- > utor to Python infrastructure projects" > Ah, this is what you were referring to. The document was published 5 years ago, so this may or

[Python-Dev] Re: Speeding up CPython

2021-05-13 Thread Stéfane Fermigier
On Wed, May 12, 2021 at 8:51 PM Abdur-Rahmaan Janhangeer < arj.pyt...@gmail.com> wrote: > Great news, just a tiny bit from me. > I read the other day in the OpenSource report > sponsored by the Ford Foundation a CPython > contributor stating that we have an all time high > count of Python users

[Python-Dev] Re: Speeding up CPython

2021-05-13 Thread Abdur-Rahmaan Janhangeer
Greetings, On Thu, May 13, 2021 at 11:43 AM Chris Angelico wrote: > How is this "educational version" different from a forked git > repository? I'm confused here. > Oh i mean a forked git repository with internal-focused documentations, issues opened with description of changes to be made then

[Python-Dev] Re: Speeding up CPython

2021-05-13 Thread Chris Angelico
On Thu, May 13, 2021 at 5:37 PM Abdur-Rahmaan Janhangeer wrote: > > Greetings, > > One crucial missing piece in the Python world is the focus > on internals of projects. You have many talks on usage and > scaling but not enough on internals. Even less workshops. > For OpenSource to thrive, you

[Python-Dev] Re: Speeding up CPython

2021-05-13 Thread Abdur-Rahmaan Janhangeer
Greetings, One crucial missing piece in the Python world is the focus on internals of projects. You have many talks on usage and scaling but not enough on internals. Even less workshops. For OpenSource to thrive, you need people who master the codebase. It's a long process. You get there by

[Python-Dev] Re: Speeding up CPython

2021-05-13 Thread Abdur-Rahmaan Janhangeer
Actual quote by "a Python Software Foundation fellow and contrib- utor to Python infrastructure projects" What frustrates me most is that we have an all-time high of Python developers and an all-time low on high quality contri- butions.[...] As soon as pivotal developers like Armin Ronacher slow

[Python-Dev] Re: Speeding up CPython

2021-05-12 Thread Abdur-Rahmaan Janhangeer
On Thu, 13 May 2021, 01:09 Terry Reedy, wrote: > On 5/12/2021 2:50 PM, Abdur-Rahmaan Janhangeer wrote: > > Great news, just a tiny bit from me. > > I read the other day in the OpenSource report > > sponsored by the Ford Foundation a CPython > > contributor stating that we have an all time high >

[Python-Dev] Re: Speeding up CPython

2021-05-12 Thread Terry Reedy
On 5/12/2021 5:14 PM, Antoine Pitrou wrote: On Wed, 12 May 2021 17:05:03 -0400 Terry Reedy wrote: Yet you always see it: new people not knowing where to start, highly skilled contributors drowning and intermediate contributors moving slowly I have multiple times strongly recommended that

[Python-Dev] Re: Speeding up CPython

2021-05-12 Thread Antoine Pitrou
On Wed, 12 May 2021 17:05:03 -0400 Terry Reedy wrote: > > > contributing and level up to gain a pool of resources > > We don't need to wait for easy issues or things like > > that or wait for PR merge to level up. > > > > Yet you always see it: new people not knowing where to start, > > highly

[Python-Dev] Re: Speeding up CPython

2021-05-12 Thread Terry Reedy
On 5/12/2021 2:50 PM, Abdur-Rahmaan Janhangeer wrote: Great news, just a tiny bit from me. I read the other day in the OpenSource report sponsored by the Ford Foundation a CPython contributor stating that we have an all time high count of Python users but an all time low number of contributors

[Python-Dev] Re: Speeding up CPython

2021-05-12 Thread Abdur-Rahmaan Janhangeer
Great news, just a tiny bit from me. I read the other day in the OpenSource report sponsored by the Ford Foundation a CPython contributor stating that we have an all time high count of Python users but an all time low number of contributors to CPython. I don't know how but we certainly need a fake

[Python-Dev] Re: Speeding up CPython

2021-05-12 Thread Guido van Rossum
On Fri, May 7, 2021 at 8:20 PM Gregory P. Smith wrote: > > On Fri, May 7, 2021 at 6:51 PM Steven D'Aprano > wrote: > >> On Tue, Oct 20, 2020 at 01:53:34PM +0100, Mark Shannon wrote: >> > Hi everyone, >> > >> > CPython is slow. We all know that, yet little is done to fix it. >> > >> > I'd like

[Python-Dev] Re: Speeding up CPython

2021-05-07 Thread Gregory P. Smith
On Fri, May 7, 2021 at 6:51 PM Steven D'Aprano wrote: > On Tue, Oct 20, 2020 at 01:53:34PM +0100, Mark Shannon wrote: > > Hi everyone, > > > > CPython is slow. We all know that, yet little is done to fix it. > > > > I'd like to change that. > > I have a plan to speed up CPython by a factor of

[Python-Dev] Re: Speeding up CPython

2021-05-07 Thread Steven D'Aprano
On Tue, Oct 20, 2020 at 01:53:34PM +0100, Mark Shannon wrote: > Hi everyone, > > CPython is slow. We all know that, yet little is done to fix it. > > I'd like to change that. > I have a plan to speed up CPython by a factor of five over the next few > years. But it needs funding. I've noticed a

[Python-Dev] Re: Speeding up CPython

2021-01-25 Thread Simon Cross
On Mon, Jan 25, 2021 at 1:30 AM Terry Reedy wrote: > The Python Software Foundation currently has a shortfall of funds rather > than a surplus. I believe Mark's proposal suggested raising money specifically for the project, not spending general PSF funds.

[Python-Dev] Re: Speeding up CPython

2021-01-24 Thread Terry Reedy
On 1/24/2021 6:09 PM, Bruno Cabral wrote: Hello Everyone, I´m very curious about this proposal, but unfortunately it has been a while since I heard any news about this project. Does anyone know what happened? The Python Software Foundation currently has a shortfall of funds rather than a

[Python-Dev] Re: Speeding up CPython

2021-01-24 Thread Bruno Cabral
Hello Everyone, I´m very curious about this proposal, but unfortunately it has been a while since I heard any news about this project. Does anyone know what happened? Best Regards, Bruno___ Python-Dev mailing list -- python-dev@python.org To

[Python-Dev] Re: Speeding up CPython

2020-11-04 Thread Mark Shannon
Hi Thomas, I have to assume that this isn't a rejection of my proposal, since I haven't actually made a proposal to the SC yet :) Thanks for the feedback though, it's very valuable to know the SC's thinking on this matter. I have a few comments inline below. On 04/11/2020 12:27 pm,

[Python-Dev] Re: Speeding up CPython

2020-11-04 Thread Paul Moore
On Wed, 4 Nov 2020 at 13:14, Antoine Pitrou wrote: > > On Wed, 4 Nov 2020 13:27:50 +0100 > Thomas Wouters wrote: > > > > And it may not be immediately obvious from Mark's plans, but as far as we > > can tell, the proposal is for speeding up pure-Python code. It will do > > little for code that

[Python-Dev] Re: Speeding up CPython

2020-11-04 Thread Antoine Pitrou
Hello, On Wed, 4 Nov 2020 13:27:50 +0100 Thomas Wouters wrote: > > And it may not be immediately obvious from Mark's plans, but as far as we > can tell, the proposal is for speeding up pure-Python code. It will do > little for code that is hampered, speed-wise, by CPython's object model, or >

[Python-Dev] Re: Speeding up CPython

2020-11-04 Thread Thomas Wouters
(For the record, I’m not replying as a PSF Director in this; I haven’t discussed this with the rest of the Board yet. This just comes from the Steering Council.) The Steering Council discussed this proposal in our weekly meeting, last week. It's a complicated subject with a lot of different

[Python-Dev] Re: Speeding up CPython

2020-10-22 Thread Barry Warsaw
I don’t have much to add to this thread, except to ask whether Mark has been in contact with Carl Shapiro. Carl’s posted here before, but I don’t think he’s an active mailing list participant. Carl has a lot of experience with VMs and has been doing interesting work on performant Python

[Python-Dev] Re: Speeding up CPython

2020-10-22 Thread Steve Dower
On 22Oct2020 1341, Marco Sulla wrote: On Thu, 22 Oct 2020 at 14:25, Mark Shannon > wrote: MSVC seems to do better jump fusion than GCC. Maybe I'm wrong, since I only take a look at dict, tuple and set C code, but it does not seems to me that there's more than 1-2

[Python-Dev] Re: Speeding up CPython

2020-10-22 Thread Marco Sulla
On Thu, 22 Oct 2020 at 14:25, Mark Shannon wrote: > MSVC seems to do better jump fusion than GCC. > Maybe I'm wrong, since I only take a look at dict, tuple and set C code, but it does not seems to me that there's more than 1-2 GOTOs in every CPython function, and they can't be merged.

[Python-Dev] Re: Speeding up CPython

2020-10-22 Thread Mark Shannon
Hi Paul, On 22/10/2020 1:18 pm, Paul Moore wrote: On Thu, 22 Oct 2020 at 12:52, Mark Shannon wrote: Getting a PGO/LTO comparison against 3.10 is tricky. Mainly because I'm relying on merging a bunch of patches and expecting it to work :) However, on a few simple benchmarks I'm seeing about a

[Python-Dev] Re: Speeding up CPython

2020-10-22 Thread Paul Moore
On Thu, 22 Oct 2020 at 12:52, Mark Shannon wrote: > Getting a PGO/LTO comparison against 3.10 is tricky. > Mainly because I'm relying on merging a bunch of patches and expecting > it to work :) > > However, on a few simple benchmarks I'm seeing about a 70% speedup vs > master for both default and

[Python-Dev] Re: Speeding up CPython

2020-10-22 Thread Mark Shannon
Hi Nathaniel, On 22/10/2020 7:36 am, Nathaniel Smith wrote: Hi Mark, This sounds really cool. Can you give us more details? Some questions that occurred to me while reading: - You're suggesting that the contractor would only be paid if the desired 50% speedup is achieved, so I guess we'd

[Python-Dev] Re: Speeding up CPython

2020-10-22 Thread Mark Shannon
Hi Greg, On 21/10/2020 11:57 pm, Greg Ewing wrote: A concern I have about this is what effect it will have on the complexity of CPython's implementation. CPython is currently very simple and straightforward. Some parts are not quite as simple as they used to be, but on the whole it's fairly

[Python-Dev] Re: Speeding up CPython

2020-10-22 Thread Ronald Oussoren via Python-Dev
> On 20 Oct 2020, at 14:53, Mark Shannon wrote: > > Hi everyone, > > CPython is slow. We all know that, yet little is done to fix it. > > I'd like to change that. > I have a plan to speed up CPython by a factor of five over the next few > years. But it needs funding. > > I am aware that

[Python-Dev] Re: Speeding up CPython

2020-10-22 Thread Nathaniel Smith
Hi Mark, This sounds really cool. Can you give us more details? Some questions that occurred to me while reading: - You're suggesting that the contractor would only be paid if the desired 50% speedup is achieved, so I guess we'd need some objective Python benchmark that boils down to a single

[Python-Dev] Re: Speeding up CPython

2020-10-21 Thread Gregory P. Smith
On Wed, Oct 21, 2020 at 4:04 PM Greg Ewing wrote: > A concern I have about this is what effect it will have on the > complexity of CPython's implementation. > > CPython is currently very simple and straightforward. Some parts > are not quite as simple as they used to be, but on the whole it's >

[Python-Dev] Re: Speeding up CPython

2020-10-21 Thread Greg Ewing
A concern I have about this is what effect it will have on the complexity of CPython's implementation. CPython is currently very simple and straightforward. Some parts are not quite as simple as they used to be, but on the whole it's fairly easy to understand, and I consider this to be one of

[Python-Dev] Re: Speeding up CPython

2020-10-21 Thread Christian Heimes
On 21/10/2020 20.55, Larry Hastings wrote: > On 10/21/20 5:58 AM, Petr Viktorin wrote: >> At the risk of going off topic: That's for GCC. As far as I know, MSVC >> uses something like __declspec( thread ). >> What are the options for generic C99 compilers, other than staying slow? > > > As a

[Python-Dev] Re: Speeding up CPython

2020-10-21 Thread Larry Hastings
On 10/21/20 5:58 AM, Petr Viktorin wrote: At the risk of going off topic: That's for GCC. As far as I know, MSVC uses something like __declspec( thread ). What are the options for generic C99 compilers, other than staying slow? As a practical matter: does CPython even support "generic C99

[Python-Dev] Re: Speeding up CPython

2020-10-21 Thread Ronald Oussoren via Python-Dev
> On 21 Oct 2020, at 14:39, Larry Hastings wrote: > > On 10/21/20 4:04 AM, Antoine Pitrou wrote: >> (apart from small fixes relating to borrowed references, and >> that's mostly to make PyPy's life easier). > > Speaking as the Gilectomy guy: borrowed references are evil. The definition > of

[Python-Dev] Re: Speeding up CPython

2020-10-21 Thread Steve Holden
On Wed, Oct 21, 2020 at 8:37 AM Paul Moore wrote: > On Wed, 21 Oct 2020 at 08:14, Christian Heimes > wrote: > > > > On 21/10/2020 00.14, Steven D'Aprano wrote: > > > On Tue, Oct 20, 2020 at 06:04:37PM +0100, Paul Moore wrote: > > > > > >> What I don't see is where the money's coming from. It's

[Python-Dev] Re: Speeding up CPython

2020-10-21 Thread Petr Viktorin
On 10/21/20 1:40 PM, Mark Shannon wrote: Hi Petr, On 21/10/2020 11:49 am, Petr Viktorin wrote: Let me explain an impression I'm getting. It is *just one aspect* of my opinion, one that doesn't make sense to me. Please tell me where it is wrong. In the C API, there's a somewhat

[Python-Dev] Re: Speeding up CPython

2020-10-21 Thread Larry Hastings
On 10/21/20 4:04 AM, Antoine Pitrou wrote: (apart from small fixes relating to borrowed references, and that's mostly to make PyPy's life easier). Speaking as the Gilectomy guy: borrowed references are evil.  The definition of the valid lifetime of a borrowed reference doesn't exist,

[Python-Dev] Re: Speeding up CPython

2020-10-21 Thread Simon Cross
On Wed, Oct 21, 2020 at 4:28 AM Terry Reedy wrote: > I don't think the two projects are mutually exclusive. 100% agreed. I would even go as far as to say that HPy and other proposals to improve Python are mutually beneficial. HPy aims to remove dependencies between C extensions and Python

[Python-Dev] Re: Speeding up CPython

2020-10-21 Thread Mark Shannon
Hi Petr, On 21/10/2020 11:49 am, Petr Viktorin wrote: Let me explain an impression I'm getting. It is *just one aspect* of my opinion, one that doesn't make sense to me. Please tell me where it is wrong. In the C API, there's a somewhat controversial refactoring going on, which involves

[Python-Dev] Re: Speeding up CPython

2020-10-21 Thread Antoine Pitrou
On Wed, 21 Oct 2020 12:49:54 +0200 Petr Viktorin wrote: > > Later, Mark says there is an even better way – or at least, a less > intrusive one! In [the second discussion], he hints at it vaguely (from > that limited info I have, it involves switching to C11 and/or using > compiler-specific

[Python-Dev] Re: Speeding up CPython

2020-10-21 Thread Petr Viktorin
Let me explain an impression I'm getting. It is *just one aspect* of my opinion, one that doesn't make sense to me. Please tell me where it is wrong. In the C API, there's a somewhat controversial refactoring going on, which involves passing around tstate arguments. I'm not saying [the

[Python-Dev] Re: Speeding up CPython

2020-10-21 Thread Christian Heimes
On 21/10/2020 11.37, Steven D'Aprano wrote: > On Wed, Oct 21, 2020 at 09:06:58AM +0200, Christian Heimes wrote: >> On 21/10/2020 00.14, Steven D'Aprano wrote: >>> On Tue, Oct 20, 2020 at 06:04:37PM +0100, Paul Moore wrote: >>> What I don't see is where the money's coming from. It's fine to

[Python-Dev] Re: Speeding up CPython

2020-10-21 Thread Chris Angelico
On Wed, Oct 21, 2020 at 8:23 PM Matti Picus wrote: > Just to set the record straight, PyPy has been available on conda-forge > [0] since March, and has seen close to 70,000 downloads [1] from that > channel alone, in addition to the downloads from > https://downloads.python.org/pypy and the other

[Python-Dev] Re: Speeding up CPython

2020-10-21 Thread Steven D'Aprano
On Wed, Oct 21, 2020 at 09:06:58AM +0200, Christian Heimes wrote: > On 21/10/2020 00.14, Steven D'Aprano wrote: > > On Tue, Oct 20, 2020 at 06:04:37PM +0100, Paul Moore wrote: > > > >> What I don't see is where the money's coming from. It's fine to ask, > >> but will anyone come up with that sort

[Python-Dev] Re: Speeding up CPython

2020-10-21 Thread Matti Picus
On Wed, Oct 21, 2020 at 3:38 AM Steven D'Aprano st...@pearwood.info wrote: > some insulting FUD that is not worth repeating, and an apology Just to set the record straight, PyPy has been available on conda-forge [0] since March, and has seen close to 70,000

[Python-Dev] Re: Speeding up CPython

2020-10-21 Thread Christian Heimes
On 21/10/2020 09.35, Paul Moore wrote: > On Wed, 21 Oct 2020 at 08:14, Christian Heimes wrote: >> >> On 21/10/2020 00.14, Steven D'Aprano wrote: >>> On Tue, Oct 20, 2020 at 06:04:37PM +0100, Paul Moore wrote: >>> What I don't see is where the money's coming from. It's fine to ask, but

[Python-Dev] Re: Speeding up CPython

2020-10-21 Thread Antoine Pitrou
On Tue, 20 Oct 2020 16:10:27 +0100 Mark Shannon wrote: > Hi Antoine, > > On 20/10/2020 2:32 pm, Antoine Pitrou wrote: > > On Tue, 20 Oct 2020 13:53:34 +0100 > > Mark Shannon wrote: > >> Hi everyone, > >> > >> CPython is slow. We all know that, yet little is done to fix it. > >> > >> I'd like

[Python-Dev] Re: Speeding up CPython

2020-10-21 Thread Paul Moore
On Wed, 21 Oct 2020 at 08:14, Christian Heimes wrote: > > On 21/10/2020 00.14, Steven D'Aprano wrote: > > On Tue, Oct 20, 2020 at 06:04:37PM +0100, Paul Moore wrote: > > > >> What I don't see is where the money's coming from. It's fine to ask, > >> but will anyone come up with that sort of

[Python-Dev] Re: Speeding up CPython

2020-10-21 Thread Christian Heimes
On 21/10/2020 00.14, Steven D'Aprano wrote: > On Tue, Oct 20, 2020 at 06:04:37PM +0100, Paul Moore wrote: > >> What I don't see is where the money's coming from. It's fine to ask, >> but will anyone come up with that sort of funding? > > I don't think Mark is asking for you or I to fund the

[Python-Dev] Re: Speeding up CPython

2020-10-21 Thread Stefan Ring
On Wed, Oct 21, 2020 at 3:51 AM Gregory P. Smith wrote: > > meta: i've written too many words and edited so often i can't see my own > typos and misedits anymore. i'll stop now. :) Haha! Very interesting background, thank you for writing down all of this!

[Python-Dev] Re: Speeding up CPython

2020-10-20 Thread Terry Reedy
On 10/20/2020 2:49 PM, Dan Stromberg wrote: I suspect what it needs most is HPY work, which could benefit a lot of Python language implementations in the long term: https://github.com/hpyproject/hpy $2e6 spent on HPY could be pretty amazing. I don't think the two projects are mutually

[Python-Dev] Re: Speeding up CPython

2020-10-20 Thread Gregory P. Smith
On Tue, Oct 20, 2020 at 5:59 AM Mark Shannon wrote: > Hi everyone, > > CPython is slow. We all know that, yet little is done to fix it. > > I'd like to change that. > I have a plan to speed up CPython by a factor of five over the next few > years. But it needs funding. > > I am aware that there

[Python-Dev] Re: Speeding up CPython

2020-10-20 Thread Steven D'Aprano
On Tue, Oct 20, 2020 at 06:04:37PM +0100, Paul Moore wrote: > What I don't see is where the money's coming from. It's fine to ask, > but will anyone come up with that sort of funding? I don't think Mark is asking for you or I to fund the exercise. He's asking for the PSF to fund it. I think

[Python-Dev] Re: Speeding up CPython

2020-10-20 Thread Simon Cross
Since HPy was mentioned, hello from the HPy team! If anyone is thinking about Python performance or new Python VMs, we'd love them to take a look at HPy and come and talk to us. HPy is meant to provide a new C API layer that any Python VM could implement in order to efficiently support Python

[Python-Dev] Re: Speeding up CPython

2020-10-20 Thread Kevin Modzelewski
I'd love to hear more about what workloads you're targeting and how you came up with the anticipated numbers for the improvements. For comparison, our new jit provides a single-digit-percentage speedup on our django and flask benchmarks. On Tue, Oct 20, 2020 at 9:03 AM Mark Shannon wrote: > Hi

[Python-Dev] Re: Speeding up CPython

2020-10-20 Thread Dan Stromberg
On Tue, Oct 20, 2020 at 9:33 AM Steven D'Aprano wrote: > > What would happen if $2M were spent on improving PyPy3 instead? > > Then both of the PyPy3 users will be very happy *wink* > Wow, I didn't know I was 50% of Pypy3 users :) Anyway, Pypy3 is already pretty great. I'm sure it can be

[Python-Dev] Re: Speeding up CPython

2020-10-20 Thread Mark Shannon
On 20/10/2020 5:48 pm, Chris Angelico wrote: On Wed, Oct 21, 2020 at 3:31 AM Mark Shannon wrote: Hi Chris, On 20/10/2020 4:37 pm, Chris Angelico wrote: On Wed, Oct 21, 2020 at 12:03 AM Mark Shannon wrote: Hi everyone, CPython is slow. We all know that, yet little is done to fix it.

[Python-Dev] Re: Speeding up CPython

2020-10-20 Thread Paul Moore
On Tue, 20 Oct 2020 at 14:01, Mark Shannon wrote: > > Hi everyone, > > CPython is slow. We all know that, yet little is done to fix it. > > I'd like to change that. > I have a plan to speed up CPython by a factor of five over the next few > years. But it needs funding. > > I am aware that there

[Python-Dev] Re: Speeding up CPython

2020-10-20 Thread Chris Angelico
On Wed, Oct 21, 2020 at 3:38 AM Steven D'Aprano wrote: > > On Wed, Oct 21, 2020 at 02:37:02AM +1100, Chris Angelico wrote: > > > Do you have any details to back this up? You're not just asking for a > > proposal to be accepted, you're actually asking for (quite a bit of) > > money, and then

[Python-Dev] Re: Speeding up CPython

2020-10-20 Thread Chris Angelico
On Wed, Oct 21, 2020 at 3:31 AM Mark Shannon wrote: > > Hi Chris, > > On 20/10/2020 4:37 pm, Chris Angelico wrote: > > On Wed, Oct 21, 2020 at 12:03 AM Mark Shannon wrote: > >> > >> Hi everyone, > >> > >> CPython is slow. We all know that, yet little is done to fix it. > >> > >> I'd like to

[Python-Dev] Re: Speeding up CPython

2020-10-20 Thread Steven D'Aprano
On Wed, Oct 21, 2020 at 02:38:25AM +1100, Chris Angelico wrote: > On Wed, Oct 21, 2020 at 12:55 AM Steven D'Aprano wrote: > > A minor point, and I realise that the costs are all in very round > > figures, but they don't quite match up: $2 million split over five > > stages is $400K per stage, not

[Python-Dev] Re: Speeding up CPython

2020-10-20 Thread Steven D'Aprano
On Wed, Oct 21, 2020 at 02:37:02AM +1100, Chris Angelico wrote: > Do you have any details to back this up? You're not just asking for a > proposal to be accepted, you're actually asking for (quite a bit of) > money, and then hoping to find a contractor to do the actual work. Payment is on

[Python-Dev] Re: Speeding up CPython

2020-10-20 Thread Mark Shannon
Hi Chris, On 20/10/2020 4:37 pm, Chris Angelico wrote: On Wed, Oct 21, 2020 at 12:03 AM Mark Shannon wrote: Hi everyone, CPython is slow. We all know that, yet little is done to fix it. I'd like to change that. I have a plan to speed up CPython by a factor of five over the next few years.

[Python-Dev] Re: Speeding up CPython

2020-10-20 Thread Chris Angelico
On Wed, Oct 21, 2020 at 12:55 AM Steven D'Aprano wrote: > A minor point, and I realise that the costs are all in very round > figures, but they don't quite match up: $2 million split over five > stages is $400K per stage, not $500K. The proposal is for four stages. ChrisA

[Python-Dev] Re: Speeding up CPython

2020-10-20 Thread Chris Angelico
On Wed, Oct 21, 2020 at 12:03 AM Mark Shannon wrote: > > Hi everyone, > > CPython is slow. We all know that, yet little is done to fix it. > > I'd like to change that. > I have a plan to speed up CPython by a factor of five over the next few > years. But it needs funding. > > The overall aim is

[Python-Dev] Re: Speeding up CPython

2020-10-20 Thread Mark Shannon
On 20/10/2020 2:47 pm, Steven D'Aprano wrote: A very interesting proposal. A couple of thoughts... Can we have an executive summary of how your proposed approach differs from those of PyPy, Unladen Swallow, and various other attempts?

[Python-Dev] Re: Speeding up CPython

2020-10-20 Thread Matthias Klose
On 10/20/20 2:53 PM, Mark Shannon wrote: > I'd love to hear your thoughts on this. a VM needs a separate backend for each architecture (maybe even OS) - which architectures do you include into your proposal? what's your estimate for a new port? - do you plan for a fall-back to a slow

[Python-Dev] Re: Speeding up CPython

2020-10-20 Thread Mark Shannon
Hi Antoine, On 20/10/2020 2:32 pm, Antoine Pitrou wrote: On Tue, 20 Oct 2020 13:53:34 +0100 Mark Shannon wrote: Hi everyone, CPython is slow. We all know that, yet little is done to fix it. I'd like to change that. I have a plan to speed up CPython by a factor of five over the next few

[Python-Dev] Re: Speeding up CPython

2020-10-20 Thread edwin
Where is your working code for the first stage? October 20, 2020 8:53 AM, "Mark Shannon" wrote: > Hi everyone, > > CPython is slow. We all know that, yet little is done to fix it. > > I'd like to change that. > I have a plan to speed up CPython by a factor of five over the next few > years.

[Python-Dev] Re: Speeding up CPython

2020-10-20 Thread Steven D'Aprano
A very interesting proposal. A couple of thoughts... Can we have an executive summary of how your proposed approach differs from those of PyPy, Unladen Swallow, and various other attempts? You suggest that payment should be on delivery, or meeting the target, rather than up-front. That's good

[Python-Dev] Re: Speeding up CPython

2020-10-20 Thread Antoine Pitrou
On Tue, 20 Oct 2020 13:53:34 +0100 Mark Shannon wrote: > Hi everyone, > > CPython is slow. We all know that, yet little is done to fix it. > > I'd like to change that. > I have a plan to speed up CPython by a factor of five over the next few > years. But it needs funding. > > I am aware that