* Perrin Harkins ([EMAIL PROTECTED]) [31 Oct 2002 14:26]: [...] > Have you written C extensions for both Perl and PHP and think Perl is > easier?
I've only written XS for Perl. Not touched PHP with any C stuff. While I must admit that my early XS was crap, that's mostly my fault. Last time I looked at PHP, a while ago I admit, to extend it with C you had to recompile the lot. Has that changed? > Most people complain about XS being challenging. XS isn't that challenging if you read the documentation. In particular, that shiny new Jenness and Cozens book "Extending and Embedding Perl". > The picture might be different when SWIG and Inline::C are taken into > account, but I've never used them so I couldn't say. I find it's useful to know XS to use Inline::C. SWIG, since it's not Perl oriented, is possibly easiest. I'm not sure since I've not used it to any extent. > In general, it makes sense that a simple language would be simple to > extend with C. That's why people like TCL. They do? =) cheers, -- Iain.