Migratable execution contexts for free-threading: a tiny "allocation-home" hook (pre-PEP, seeking feedback + a sponsor)

There are a few (at least two) lengthy discussions on the “ideas” category here on how Python could evolve to do something similar to this.

I was follwoign them, and eventually the talks hit a all on “how to do it” and the discussions cooled off - it looks like you could overcome the barrier with this idea.

I perceive that it would be great to re-start those discussions there, this time with your project in sight - (if I take it by myself there are less readers to this than to “ideas”)

I for one would very much welcome such a thing. It’d be nice to keep in mind that these are high abstractions that not everyone will have in mind when you post about it - so recaping what is the intent is very important.

(/me goes searching for the other thread about this topic)
One of them is here, but this ended shortly: Add Virtual Threads to Python

Oh - and here it is were it revolved moslty about - Asyncio in a nogil world - #13 by kevrod07 - it is older than one year.

Maybe you could elaborate a post to “ideas” with this new project, with a nice “pep rationale” like introduction, and linking back from those others?

2 Likes