OT - C programming
| From: | Jason Barnett | Date: | Tue, 15 Mar 2005 16:37:26 +0000 |
| Subject: | OT - C programming | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-210831@lists.php.net to get a copy of this message | ||
Rasmus Lerdorf wrote:
> Jason Barnett wrote:
>
>> Jay Blanchard wrote:
...
> In the end you are probably much better off learning a bit of C or C++
> and writing your own PHP extensions than hoping that someone will make a
> compiler that will magically speed everything up. PHP was designed
> specifically with this in mind. The idea is to keep things that don't
...
> better performance than any "PHP Compiler" ever will. And it really
> isn't that hard to write a PHP extension.
>
> -Rasmus
I actually looked into building my own extension before. I saw some of
the docs from the talks.php.net site and most of it made sense to me.
So I agree that the PHP <-> extensions interface is simple enough for a
poor slob like myself to understand.
Can you (or anyone else for that matter) give me a book recommendation
that explains C coding to someone with intermediate PHP skills?
I already have George Schlossnagle's book and it's great (it taught me a
lot of what I know about the source), but it assumes a level of
proficiency in C that I just don't have.
I know that you have to allocate memory for variables, you have strict
types (although I'm vaguely familiar with a zval), but some things like
all of those **'s I see in the source code just don't make sense to me.
Recommendations, anyone?
--
Teach a man to fish...
NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-general&w=2
STFM | http://php.net/manual/en/index.php
STFW | http://www.google.com/search?q=php
LAZY |
http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc