|There's more than one way to do things|
Re: C tutorial for Perl programmers?by syphilis (Chancellor)
|on Sep 03, 2013 at 10:02 UTC||Need Help??|
I need to give them enough know-how to main XS code
I guess the first thing they need to know is the basics of C - and the fact that they already know some perl is pretty much irrelevant, IMO.
That is, I think they need to be taught the C basics the same way that someone who has never programmed at all is taught the basics of C. Since these people have already programmed in perl, they may well learn more quickly than those who have not done any programming at all, but I think both groups should be given the same course (whatever that may be).
Once they have some proficiency in C, they then need to be taught how to implement C code in perl. For this, two things come to mind:
1) the perlxstut, perlxs and perlguts documentation;
2) the demos in Inline::C's C-Cookbook.pod
In the final analysis, there's not much difference between XS and Inline::C - and I think the latter's capacity to help programmers learn the former should not be underestimated.
For someone who knows perl but not C, it's a fairly steep learning curve - a curve that I would not expect to be negotiated quickly.