I'm unsure about API docs. I agree it would be more efficient, for sure. But whether or not the C library is the safest thing to use (or at least reasonably easy to maintain) is an entirely different issue.
The PSPP syntax is formalized, but I don't know if the API itself is - that might be why they're doing the PSPP syntax. Anyone else with more light to shed on that part? On Wed, Oct 13, 2010 at 12:11 PM, 老邪 <[email protected]> wrote: > HI, Duane > Thanks for replying. > and, i think i also need some documents of API of pspp C library? (if > it exists). > i just read source of PSPP::Wrapper, the way of it implement pspp > function is > 1) make a tmp file by given data, and a block of pspp syntax > 2) call pspp to handle that tmp file > 3) save the result > it's a way to call statistical procedures of pspp too. i was thinking > that way before. > but i think if can call the C library of pspp directly in Perl, that will be > better. so i > came here and asked for help :) > thanks > > laoxie > > On Wed, Oct 13, 2010 at 10:45 PM, Duane Currie <[email protected]> > wrote: >> >> Hi LaoXie, >> >> You'd probably want to try using Perl XS. See 'man perlxs' >> and 'man perlxstut' for information and examples of how to >> call C routines from Perl. >> >> Duane >> >> On Wed, Oct 13, 2010 at 10:12 AM, 老邪 <[email protected]> wrote: >> > Hi, all >> > i'm not sure this email is suitable or not. i'm a perl coder, and >> > for >> > some reasons, i'm learning to use PSPP under linux. >> > i notice that there is a CPAN module for pspp (PSPP-Perl), but it's >> > just >> > for "read and write the system file", it can't >> > be used to do any statistical procedures of pspp. >> > i think most ppl who use pspp, are mainly using the statistical >> > procedures of pspp, so, i'm thinking if someone can >> > write a CPAN module for statistics usage of pspp (name it >> > PSPP::Statistics >> > ?), that will be great. for now, i want to give a try. >> > but i don't have much experience to write perl code with C library, >> > so i >> > need help from here. can anyone give out >> > some instructions/guide tour/document(URL) of API ? . so that i can >> > start >> > learning.. >> > thanks. >> > >> > best regards, >> > laoxie >> > >> > _______________________________________________ >> > pspp-dev mailing list >> > [email protected] >> > http://lists.gnu.org/mailman/listinfo/pspp-dev >> > >> > > > _______________________________________________ pspp-dev mailing list [email protected] http://lists.gnu.org/mailman/listinfo/pspp-dev
