Re: Porting PECL to userspace
| From: | Pierre Joye | Date: | Fri, 20 May 2011 21:34:46 +0000 |
| Subject: | Re: Porting PECL to userspace | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-52491@lists.php.net to get a copy of this message | ||
On Fri, May 20, 2011 at 11:16 PM, Hannes Magnusson
<hannes.magnusson@gmail.com> wrote:
> 2011/5/20 Brian Moon <brian@moonspot.net>:
>>> 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