Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65472 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28603 invoked from network); 30 Jan 2013 06:40:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jan 2013 06:40:40 -0000 Authentication-Results: pb1.pair.com header.from=florian@anderiasch.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=florian@anderiasch.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain anderiasch.de from 81.169.138.148 cause and error) X-PHP-List-Original-Sender: florian@anderiasch.de X-Host-Fingerprint: 81.169.138.148 ares.art-core.org Linux 2.5 (sometimes 2.4) (4) Received: from [81.169.138.148] ([81.169.138.148:36113] helo=mail.anderiasch.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 91/93-09318-560C8015 for ; Wed, 30 Jan 2013 01:40:38 -0500 Message-ID: <5108C060.5050502@anderiasch.de> Date: Wed, 30 Jan 2013 07:40:32 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.11) Gecko/20121122 Icedove/10.0.11 MIME-Version: 1.0 To: Pierre Joye CC: Stas Malyshev , Zeev Suraski , PHP internals References: <5108743A.9090705@sugarcrm.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] ZTS - why are you using it? From: florian@anderiasch.de (Florian Anderiasch) On 01/30/2013 07:09 AM, Pierre Joye wrote: > On Wed, Jan 30, 2013 at 2:15 AM, Stas Malyshev 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