-
Notifications
You must be signed in to change notification settings - Fork 95
Is there anything like GIL? #64
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
Comments
gpython does not contain a GIL. However it does not, as yet allow any sort of multiprocessing. It is my plan to make a threading library which under the hood creates go routines. At this point it will need some sort of locking... |
by the skylark Python-like VM has actually the concept of a WDYT about this? |
Yes. My plan was to make a low level module exposing some go features like goroutines, channels, locks etc, and use that low level module to build up something which was API compatible with the
That sounds like a job for a context passed everywhere. We've already identified somewhere else that would be very useful! Go having no thread local storage makes it very difficult to translate some bits of python.
I think we'd almost certainly need something very similar! I'd propose to attach it to a context though. |
SGTM. (we should probably make sure extracting informations and/or restoring state from that |
Hmm, yes! AFAICS context is implemented as linked list, so the lookup isn't very efficient. |
I suggest to close this issue with the push of |
@yanchenghust v0.1.0 introduces
|
fixed w/ #158 |
As we know, CPython implemention has a GIL.
How about gpython?
The text was updated successfully, but these errors were encountered: