[This doesn't address the general question of XS vs Inline, just the specific case of writing a DBI driver.]
Robert H a écrit: > When would you not use Inline instead of doing it with XS? For example, I > am thinking about doing a wrapper for Metakit (ie DBD::Metakit). I talked > with the author of Metakit and he said he tried to do a Perl wrapper in XS > once but got lost. Is it feasible to do something like that using Inline > instead or would XS be the best case scenario for a DBD module? XS is the best case scenario for a DBD module because the DBI provides some infrastructure to aid drivers using XS. Specifically the driver template code in http://cpansearch.perl.org/src/TIMB/DBI-1.609/Driver.xst You'd need to duplicate that code if you use Inline::C. There's some docs in http://search.cpan.org/~timb/DBI-1.609/lib/DBI/DBD.pm and help available on the dbi-...@perl.org mailing list. Tim.