Re: ZTS - why are you using it?
| From: | Florian Anderiasch | Date: | Wed, 30 Jan 2013 06:40:32 +0000 |
| Subject: | Re: ZTS - why are you using it? | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-65472@lists.php.net to get a copy of this message | ||
On 01/30/2013 07:09 AM, Pierre Joye wrote:
> On Wed, Jan 30, 2013 at 2:15 AM, Stas Malyshev
<smalyshev@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