SWIG. David Beazley.
Download freely from
. SWIG is packaged with around 200 pages of
tutorial-style documentation, containing plenty of interesting examples. While you are there, please take a look at Dave's papers on applying SWIG to large-scale projects.
, by Jeff Okamoto, and
, by Dean Roehrich.
These two standard Perl documents provide a tutorial and a reference, respectively, for XS. You must be conversant either with
or the Perl internals documentation (
). (The former is a slightly gentler introduction.)
The Socket, POSIX, and SDBM modules supplied with the Perl distribution make good case studies for applying XS.
XS Cookbook. Dean Roehrich.
These cookbooks are available from CPAN (look under the
directory) and provide solutions to a number of sample problems covering all XS features. Highly recommended. You may also find it a good exercise to solve these problems using SWIG.
The Mathematical Tourist
. Ivars Peterson. W.H.Freeeman and Co., 1988
GD library for rendering into GIF files. Tom Boutell. Download from