Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99391 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84287 invoked from network); 6 Jun 2017 09:13:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Jun 2017 09:13:47 -0000 Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Received: from [82.113.146.227] ([82.113.146.227:51908] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 66/CB-27119-94276395 for ; Tue, 06 Jun 2017 05:13:45 -0400 Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id 2A60110C6DB; Tue, 6 Jun 2017 10:13:41 +0100 (BST) Date: Tue, 6 Jun 2017 10:13:40 +0100 (BST) X-X-Sender: derick@singlemalt.home.derickrethans.nl To: Remi Collet cc: internals@lists.php.net In-Reply-To: <12948b4b-bd2d-b88e-80a0-f70ba2d49657@fedoraproject.org> Message-ID: References: <5313411f-40b4-58c6-83a8-7e813526f2a7@tekwire.net> <12948b4b-bd2d-b88e-80a0-f70ba2d49657@fedoraproject.org> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323329-1049516668-1496740421=:2857" Subject: Re: [PHP-DEV] Proposing inclusion of PCS in the 7.2 core distribution From: derick@php.net (Derick Rethans) --8323329-1049516668-1496740421=:2857 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE On Tue, 6 Jun 2017, Remi Collet wrote: > Le 05/06/2017 =C3=A0 19:46, Fran=C3=A7ois Laupretre a =C3=A9crit : > >=20 > > PCS provides a fast and easy mechanism to mix C and PHP code in PHP=20 > > extensions (more about PCS at http://pcs.tekwire.net). Thanks to the=20 > > PHP 7 performance improvement and the inclusion of opcache in the=20 > > core, a lot of existing non-performance-critical extension code may=20 > > now be converted to PHP without significant performance loss (this=20 > > must be measured case by case, of course, but tests show that=20 > > opcode-cached PHP code is often faster than C). >=20 > Sorry, but I don't like the idea of having PHP code bundled in C=20 > extension. >=20 > Have low-level part written in C, and user-land part in PHP is indeed=20 > a good way (e.g. mondodb, phpiredis + phredis...), but having the PHP=20 > library distributed via composer or any other way is enough. >=20 > P.S. IIRC couchbase have tried this way, and revert it We did it as well, in the early early days. It wasn't great and reverted=20 that too. I also believe PHP code should be distributed through=20 composer, and that is much easier to upgrade, as well as allow for=20 multiple versions running on the same server. cheers, Derick --8323329-1049516668-1496740421=:2857--