Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^3: XS cannot properly handle typemap with namespace (use XSpp)

by Anonymous Monk
on Jan 03, 2014 at 09:16 UTC ( #1069106=note: print w/ replies, xml ) Need Help??

in reply to Re^2: XS cannot properly handle typemap with namespace (use XSpp)
in thread XS cannot properly handle typemap with namespace

It seems XSpp is another system that is completely different with XS. So I'll have to suffer another painful learning......

I hope not, it should be quite simple.

See / XS++ - bonding Perl and C++ with minimal pain

See also Re: Interfacing Perl with C++, using XS, with external files, and using the STL as parameters and return values.
Math::ThinPlateSpline / Re: C tutorial for Perl programmers? (hard lint strict warnings bondage perlxspp)

Comment on Re^3: XS cannot properly handle typemap with namespace (use XSpp)
Replies are listed 'Best First'.
Re^4: XS cannot properly handle typemap with namespace (use XSpp)
by llancet (Friar) on Jan 06, 2014 at 13:56 UTC

    It's indeed painful for me. T_T

    There are two examples in the XSpp's package, and none of them fully used the XSpp's features. I spent a whole day to realize that xspp typemap should be generated to xs typemap via tools such as Module::Build::WithXSpp, otherwise you cannot use mapped types (like the "Object-WithIntAndString" example in XSpp package which used ExtUtils::MakeMaker). I also downloaded several perl packages which use XSpp, and non of them use the feature neither.

    Now I nearly make my code correctly compile, but I still don't understand how some errors were fixed and disappeared. And I still don't fully know the difference between "{parsed}{%precall_code %output_code}" and "{simple}{%xs_input_code %xs_output_code}". It seems the first solution don't work properly in my code.

    Moreover, the xspp lacks error reports. Some errors are not reported by xspp, and will just continue running silently and create malfunction xs code. You have to take hours to find clues about your bug from the final C file, and deduce the corresponding part of the xsp file.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1069106]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2016-05-28 18:23 GMT
Find Nodes?
    Voting Booth?