On 01/30/2013 07:09 AM, Pierre Joye wrote: > On Wed, Jan 30, 2013 at 2:15 AM, Stas Malyshev <smalys...@sugarcrm.com> wrote: >> Hi! >> >>> Python, for example, is thread safe by default. Extensions developers >> >> Doesn't Python have global engine lock? > > Right, but they do not give up thread safety. See "Thread State and > the Global Interpreter Lock" in: > > http://docs.python.org/2/c-api/init.html > > The TS model in php should be redesigned in the next major version, > instead of simply giving it up.
You make it sound as if the GIL was a good thing... And yes, it might have been introduced for that exact reason, but I haven't read anything pro-GIL in the last few years, according to most Python developers (mostly those who want to scale) it's basically their number one pain point. Doesn't sound like a fair deal at all. Plus, mod_python is dead, everyone's using FastCGI/UWSGI anyway, so I'm not sure what you're hinting at... (Or am I missing something?) NB: Deliberately staying away from any pro/contra PHP-ZTS arguments, this was just a quick blurb about Python. Greetings, Florian -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php