|
Re: It isn't Easy to Remove the GIL
|
Posted: Sep 10, 2007 7:55 PM
|
|
Hello Guido,
> Thanks for the support. I have said numerous times that I > don't want Python development to be driven by e.g. > Ruby-envy. (Ruby BTW has a GIL too.)
I don't 'speak' Ruby, so no envy there. :-) The envy is more from the fact that in so many other languages, even those that I personally don't like as much as Python, I can take advantage of multiple threads 'natively'. Using the thread API there is all I need. It allows me to utilize modern hardware easily.
Yes, I understand it's cPython, not the language itself. That's what makes it even more startling: The language and libraries offer a beautifully simple threading API, but modern hardware cannot be taken advantage of with it.
> But it didn't seem appropriate to ignore Juergen's "open > letter to Guido van Rossum". I hope that Juergen's > response echoes yours, but I'm skeptical until I see it.
Echoing the "don't become distracted" call? Yes, I guess I can't really echo that, since I was writing about it in the first place.
I think the discussion here is beginning to point out possibilities, which is wonderful. Keeping the GIL, but allowing multiple threads to run simultaneously. That would work wonders already. As you said in another response: "...a project to add GIL-free threading to Python might work...".
You know, as I said in my article: I really like Python and it's my language of choice for most anything these days. I posted a couple of articles to that effect before. I don't need to reiterate the points I made about threading here, but I guess you could put it this way: If you really care about something (in this case Python) then having strong opinions one way or the other should be understandable. If I wouldn't care about Python and want it to become applicable for a wide range of applications, I wouldn't have bothered writing that article.
|
|