|
The Nordic Perl Workshop 2004 Abstract
Udvidelse af Perl med C, en introduktion/Expanding Perl with C, an introduction (Dennis Haney)
60 minutes, Intermediate, in English
Dette er en introduktion til hvordan man kan bruge C biblioteker og
funktioner under Perl. Perl benytter XS for at lime disse to
programmeringssprog sammen. XS er et sprog der minder lidt om C, men
pŒ grund af dets høje kompleksitet benyttes oftest modulet Inline::C
i stedet, da denne automatisk kan håndtere mange af
besværlighederne. Dermed skal programmøren "kun" lære Perl's interne
API.
Der vil blive lagt kraftig vægt på eksempler, og der vil blive
gennemgået følgende:
En simpel introduktion til Perl interne typer
Lave funktionskald til simple C funktioner
Kunne returnere simpel data til Perl
Håndtere allokering af data i Perl
Håndtere Perl-style arrays og hashes
Brug af Perl's variable
Kald af funktioner i C implementeret i Perl
Simpel objekt håndtering
This will be an introduction on how to use C libraries and functions
inside Perl. Perl uses XS to glue the two programming languages
together. XS is a language which resembles C a bit, but due to its
high complexity the module Inline::C is often used instead, since that
is capable of handling much of the difficulty. Then the programmer
"only" have to learn Perl's internal API.
The talk will make full use of examples and the following subjects
will be touched:
- A simple introduction to Perl internal types
- Making function calls to simple C functions
- Returning simple data to Perl
- Handling allocation of data in Perl
- Handling Perl-style arrays and hashes
- Usage of Perl's variables
- Calling Perl code from C
- Simple objects in C
For information on the Workshop, please contact us at <contact@copenhagen.pm.org>. Thank you!
|