Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upIs there anything like GIL? #64
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. |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

As we know, CPython implemention has a GIL.
How about gpython?