Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52491 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18764 invoked from network); 20 May 2011 21:34:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 May 2011 21:34:52 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.215.42 mail-ew0-f42.google.com Received: from [209.85.215.42] ([209.85.215.42:39848] helo=mail-ew0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AF/5C-12578-A7ED6DD4 for ; Fri, 20 May 2011 17:34:50 -0400 Received: by ewy2 with SMTP id 2so1349712ewy.29 for ; Fri, 20 May 2011 14:34:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=irey5/f9Ehvq3WP2SbCUlClZ82sgmir/hiYof/229N4=; b=r4BIU+3J+wz14cVeLz8e+Tbr7YA++ncrYNUZ97pjbiLIvWfMHvRf26BIkhJZ4zJBXI GQjSsvWl9kAOnEepkcJ99BVxgaAirVeIN3/PPlRB9bH9XKCEiSypowZVwuR7YtiVsIAr 0L0s152PyJHXGraNcPRxSD9g2xA6uilRFGMXY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=YIMlKABSOlo0uYRGMJmXHw4BBzjdoDW8oDWOIBSCPMdRUrFXIAaBGeuSHcXaoDa94H 6HSZKbp1FFdhmdEQVV3eDGpJyI0BvMcMMI/MU+dP6ph5Ph3laRO1VoHCpq9IvHdnzt+R vEzA+gz2+6Fqket+Bsj2sso+G1maM2fpRcB8s= MIME-Version: 1.0 Received: by 10.14.124.15 with SMTP id w15mr24135eeh.191.1305927286211; Fri, 20 May 2011 14:34:46 -0700 (PDT) Received: by 10.14.127.80 with HTTP; Fri, 20 May 2011 14:34:46 -0700 (PDT) In-Reply-To: References: <4DD693BB.7030300@garfieldtech.com> <1305909198.1318.13.camel@guybrush> <4DD69AB2.8050005@garfieldtech.com> <1305910898.1318.21.camel@guybrush> <4DD6AF6B.2090204@moonspot.net> Date: Fri, 20 May 2011 23:34:46 +0200 Message-ID: To: Hannes Magnusson Cc: Brian Moon , =?ISO-8859-1?Q?Johannes_Schl=FCter?= , Larry Garfield , internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Porting PECL to userspace From: pierre.php@gmail.com (Pierre Joye) On Fri, May 20, 2011 at 11:16 PM, Hannes Magnusson wrote: > 2011/5/20 Brian Moon : >>> I think it's the exact opposite - the less C code we need the better. >>> Developing C code is more work. Maintaining C code is more work. >>> Distributing C code is more complicated. The less this is needed, the >>> faster PHP is, the better for everybody (except C programmers ;-) ) >> >> I was with you until "The less this is needed, the faster PHP is, the better >> for everybody". PHP is just a glue language on top of an awesome library of >> C. If more people would embrace that and quit including 1000 classes to show >> a simple web page then it would be better for everybody. >> > > Indeed. But how awesome would it be if you could talk to a c library > using userspace PHP? You can, it is possible via pecl's ffi. One has to give it some love. Cheers, -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org