-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PEP about interpreter isolation #77
Comments
Topics for discussion before the PEP can really take shape:
I plan on starting threads on python-dev. I'm also going to reach out to the numpy folks about what it will take for them to supports subinterpreters and how I (we) can help. |
See python/peps#2212. That's the draft I'm working on, in case anyone is interested. I should have it filled out (and pared down) and posted by the end of the week. |
cc @rgommers @seberg (from NumPy for awareness) Also cc-ing @ogrisel (who may have thoughts as well and know others who would be interested) |
Right now, nobody in NumPy is working on it, and I was hoping that the main effort for getting closer could be the HPy effort. NumPy uses The other always upcoming thing is that not all methods have access to module state, so that it is unclear where global state is stored efficiently (also fairly important). I do not know if these things are solved yet on the Python side (i.e. access to global singleton objects or interned strings which could be "immortalized", but I am not sure). Last time I looked into this, both of these seemed unclear to me. Maybe there are clear solutions now, but I am not sure I want to spend serious efforts on this in NumPy at the time, as I said, my hope was the HPy effort would at least move us closer. |
In that case I wonder if it would be useful to engage with HPy devs regarding this proposal. Do you know who would be best to talk to from HPy, Sebastian? Edit: Maybe @rlamy or @antocuni? Edit 2: These issues in particular look relevant: hpyproject/hpy#34 , hpyproject/hpy#268 |
I'm going to take a more focused approach in #79. |
At this point it makes sense to have a PEP about interpreter isolation. This will be a companion to PEP 554. The PEP will cover the following:
PyInterpreterState.global_objects
(Include/internal/pycore_global_objects.h)PyObject *
variable)PyTypeObject
variable, not pointer)PyObject
variable, not pointer)Include/*.h
; keep using them for the main interpreterdraft
The text was updated successfully, but these errors were encountered: