Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84269 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7449 invoked from network); 4 Mar 2015 00:45:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Mar 2015 00:45:11 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.179 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.216.179 mail-qc0-f179.google.com Received: from [209.85.216.179] ([209.85.216.179:36868] helo=mail-qc0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 67/62-22264-C8556F45 for ; Tue, 03 Mar 2015 19:45:00 -0500 Received: by qcrw7 with SMTP id w7so33566807qcr.4 for ; Tue, 03 Mar 2015 16:44:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=OodN48HDCS+MwO18R5iDsKx0kfXmRGtvHNry74iy3gw=; b=pI//HwYaSK5s9wf25KHwnwO4umLaPR7kRdwjVw//9sD/4SXnYzxBmq80Y5Qn9ouyRC iWY08xXPIkoTLqL9wBxD/P33y5FCQuIU6pAgtRjX948kQO0ZwkCeiLP822/djUHebKCu mLpDEtYhoiGYVUvczThvbAgj3HXY7+obTMRhgiYGNumkUbxFqFLTuBF7IPCnW9RHZUt0 aCz6ATWkXXes1yLu/fI9tjqjdkC2I9+QeuPr1NeLbHdjiOpk7ndN7bMyCDjEZIIRBFe8 uSrZ9APYP3rlaPXHCppzGffV/2mInxHkrGaVyv7M0XBoIIspDVc40/wipXWmW90ZB5IT NVqA== MIME-Version: 1.0 X-Received: by 10.140.147.66 with SMTP id 63mr2332090qht.35.1425429896720; Tue, 03 Mar 2015 16:44:56 -0800 (PST) Received: by 10.96.39.195 with HTTP; Tue, 3 Mar 2015 16:44:56 -0800 (PST) Received: by 10.96.39.195 with HTTP; Tue, 3 Mar 2015 16:44:56 -0800 (PST) In-Reply-To: <72C2B700-6CBD-41D8-AB63-52B512CE6863@gmail.com> References: <54F4E29D.7080501@garfieldtech.com> <54F4E93C.80206@gmail.com> <54F4EBEC.2090702@garfieldtech.com> <54F4F3FC.6060501@fischer.name> <54F4FDFB.8010701@lsces.co.uk> <54F5895D.3090002@gmail.com> <54F614CD.6060208@lsces.co.uk> <72C2B700-6CBD-41D8-AB63-52B512CE6863@gmail.com> Date: Tue, 3 Mar 2015 16:44:56 -0800 Message-ID: To: Rowan Collins Cc: PHP internals , Lester Caine Content-Type: multipart/alternative; boundary=001a1135547ea5782005106bc249 Subject: Re: [PHP-DEV] Consistent function names From: pierre.php@gmail.com (Pierre Joye) --001a1135547ea5782005106bc249 Content-Type: text/plain; charset=UTF-8 On Mar 4, 2015 9:18 AM, "Rowan Collins" wrote: > > On 3 March 2015 20:08:45 GMT, Lester Caine wrote: > >The piece of the jigsaw I am missing is at which point does it become > >better to create a new extension for a complex object rather than > >simply > >writing a set of PHP classes? > > A good question, wrappers can achieve a lot here. An extension has two key benefits that I can think of: performance (indirection through userland code will always be slower, and for frequent operations like string and array handling, it could add up to something significant) and convenience (thanks to Composer, dependency management is pretty simple, but nothing beats functionality built right into the language distribution). For a php developer point of view, for someone not knowing c or php internals APIs, I highly recommend https://github.com/phalcon/zephir > --001a1135547ea5782005106bc249--