Month: June 2014
-
What does this print, #1
I feel like I spend a fair amount of time investigating corner cases of the Python language; Python is relatively well-documented, but the documentation falls very short of a full language specification, so often the only recourse is to write a test case and run against CPython as a reference. Sometimes the answers are pretty…
-
Results of GIL experiments in Pyston
Today I decided to end my recent experiments with removing the GIL from Pyston. A couple things happened to prompt me to do this: the non-GIL version is able to beat the GIL-version performance with 2 threads, and profiling is showing that any further work will be fairly involved. I’ve been experimenting with a prototype…
-
Python, the GIL, and Pyston
Lately, I’ve been thinking a bit about supporting parallelism in Pyston — this has been on my “wish list” for a long time. The state of parallelism in CPython is a bit of a sore subject, since the GIL (“global interpreter lock”) essentially enforces single-threaded execution. It should be noted that a GIL is not…