Search Discussions
-
I am just looking at someone else's code here: https://github.com/benkasminbullock/Math-Factor-XS/blob/master/XS.xs#L41 From the recent discussion on this list, I get the impression that is a memory ...
Ben Bullock
Mar 30, 2013 at 2:37 am
Mar 30, 2013 at 4:18 am -
Is there a way to push an AV * onto the stack as an array? Right now I have the following: if (wantarray) { EXTEND (SP, av_len (wantarray)); for (i = 0; i <= av_len (wantarray); i++) { PUSHs ...
Ben Bullock
Mar 24, 2013 at 3:01 am
Mar 25, 2013 at 2:24 am -
Hello everybody - I recently resuscitated CUDA::Minimal, a module that provides basic memory allocation and memory transfer functionality for CUDA (i.e. video card) parallel programming. Note, you ...
David Mertens
Feb 18, 2013 at 2:24 am
Feb 21, 2013 at 12:20 am -
Very quick question I hope someone can answer. I'm calling sendTask() in a C++ library where I pass a char* that is supposedly malloced and returned so I need to free() it. The problem is when I call ...
Bill Moseley
Nov 3, 2012 at 5:41 am
Nov 3, 2012 at 6:01 am -
Hi all, with the included script below, Devel::Leak keeps outputting different pointers each time for the leaked SVs. This makes debugging harder. Can I have perl somehow allocate the same pointers ...
Shlomi Fish
Aug 23, 2012 at 5:34 pm
Aug 24, 2012 at 8:41 am -
I'm not clear from perlguts and perlapi how to make sure all my strings are utf8. And I'm more confused about sv_utf8_upgrade vs bytes_to_utf8. Say I want to pass a list of strings passed into my ...
Bill Moseley
Aug 1, 2012 at 2:05 pm
Aug 1, 2012 at 2:05 pm -
I'm stuck trying to link with a C++ library where some of the signatures are "long long int". note: candidate is: int SomeClass::Foo(char*, long long int, char*, int, perl -V shows this, if of any ...
Bill Moseley
Jul 22, 2012 at 1:12 am
Jul 22, 2012 at 12:57 pm -
--Forwarded Message Attachment-- Date: Tue, 20 Mar 2012 11:34:37 -0500 Subject: Creating an XSUB on the fly From: <span class="m_body_email_addr" title="86cd4a2f67007b9c03de80d460b7f596" ...
Bulk 88
Jul 21, 2012 at 7:32 am
Jul 22, 2012 at 2:16 am -
It's been many years since working with XS, so I apologize for my ignorance. :) I have a C++ constructor with a signature like this: family( int count, char* names[], int ages[], char* family_name ...
Bill Moseley
Jul 17, 2012 at 2:06 pm
Jul 27, 2012 at 6:40 pm -
Hi Guys, I've been using Audio::Ao (http://search.cpan.org/~dbp/Audio-Ao-0.01/Ao.pm) for some weeks and it's great. It's an interface to the libao library (http://xiph.org/ao/) However, until today I ...
Agraham
May 29, 2012 at 9:43 pm
Jun 10, 2012 at 1:39 pm -
Now now, let's not be too hasty. Using an undocumented function is generally not advised, and documenting how to use an undocumented function is generally frowned upon. As such I see two ...
David Mertens
May 8, 2012 at 11:26 am
May 9, 2012 at 4:38 pm -
Can anyone point me to an example of XS code using Perl's native tools for stringwise relational comparisons? Sounds like an XY problem? The 'X': I want to compare the strings held in two SV's. I ...
David Oswald
May 7, 2012 at 5:26 pm
May 7, 2012 at 5:26 pm -
Hello, Anybody with experience with Swig? Does it usually takes care on freeing unused variables? Packages generated by Swig include a DESTROY method: But I am not able to understand this ...
Alberto Simões
Mar 28, 2012 at 8:50 pm
Mar 28, 2012 at 8:50 pm -
Hello everybody - I'm looking into hooking the Tiny C Compiler into Perl. Among other things, it can JIT-compile a string of C code and let you get a function pointer (or a pointer to any other ...
David Mertens
Mar 20, 2012 at 4:34 pm
Mar 20, 2012 at 4:34 pm -
Hello I really need to make my code work with XS and wchar_t. As far as I can tell there is no typemap for that in the core: xs/NATools.c:733: warning: passing argument 3 of ‘Perl_sv_setpv’ from ...
Alberto Simões
Feb 27, 2012 at 4:30 pm
Feb 27, 2012 at 8:03 pm -
[ This message is being sent to perl-xs@perl.org seeking suggestions, with a CC to inline@perl.org as an FYI. ] We have a situation with Inline::CPP wherein the module is failing to pass smoke ...
David Oswald
Feb 24, 2012 at 8:03 am
Feb 24, 2012 at 2:55 pm -
So I've got my module listed on cpan, and other folks are downloading it. Great, but it looks like mostly it's being tested mostly by automated scripts which is fine, but most of these systems appear ...
Ben
Feb 9, 2012 at 1:38 am
Feb 9, 2012 at 10:48 pm -
Hello Usually I gdb perl and can debug (more or less) my XS code. But now I have a situation that is making me crazy. Module compiles an interface to a C++ library. The interface was swig-generated. ...
Alberto Simões
Jan 16, 2012 at 7:05 pm
Jan 16, 2012 at 9:56 pm -
Hello Although most architectures are compiling my module correctly, I am getting some complains for some random linuxes: http://www.cpantesters.org/cpan/report/294f5cfc-3507-11e1-9d6f-f6dbfa7543f5 ...
Alberto Simões
Jan 2, 2012 at 1:54 pm
Feb 23, 2012 at 11:00 am -
Hello, I am used to write XS code (well, simple code) for C libraries. I never did anything for C++ (and I do not know much about C++), but I'll need to write a simple interface. Mostly, I need to ...
Alberto Simões
Dec 29, 2011 at 10:13 pm
Jan 2, 2012 at 7:32 am -
Announcing... (Drum roll, please) the first publicly available version of libPam_Perl: 0.001 codename theoretically functional. I have not yet registered the namespace and I'm still tweaking the ...
Ben
Dec 29, 2011 at 12:22 am
Jan 11, 2012 at 11:57 pm -
I'm trying to embed perl in a pam module and have a few questions. Is this a good place to ask? If not where is? thanks, ben -- Ben Hildred Estimator Applied Plastic Coatings, Inc. 5000 Tabor St. ...
Ben
Dec 23, 2011 at 5:13 am
Dec 23, 2011 at 8:24 pm -
Hi, I'm writing XS bindings for JavaScriptCore (WebKit's JavaScript engine) and a lot of the functions in the API throw an exception. The exception it self is a JavaScript variable (kind of like an ...
Emmanuel Rodriguez
Oct 26, 2011 at 7:11 pm
Oct 27, 2011 at 10:51 am -
Hi, everyone!I'm asking a question about how to wrapping a refcounted class inside perl.I have some experience on embedding perl in C++, but have little knowledge on perl XS, and I found perldoc ...
YangXi
Oct 17, 2011 at 3:25 am
Oct 21, 2011 at 11:00 am -
I'm getting this error wrapping a C++ library: Group.c: In function 'void XS_Foo__Group_new(PerlInterpreter*, CV*)': Group.c:84: error: reference to 'group' is ambiguous /usr/include/grp.h:44: error: ...
Jeffrey Ratcliffe
Oct 14, 2011 at 6:18 am
Jan 8, 2012 at 9:54 am -
I am trying to write Perl bindings for a C++ library which has multiple modules. Assuming we have Foo.xs Fo.pm Foo_Bar.xs how do I get Foo::Bar to load/boot/import at the same time as Foo on use Foo? ...
Jeffrey Ratcliffe
Oct 12, 2011 at 10:38 am
Oct 16, 2011 at 1:40 pm -
Hi, I'm working on an application written in C++ which incorporates Apache's Thrift, PHP, Perl and some other tools. My problem is that when I call C++ function from Perl (as XS) and pass the ...
Nikola Viktorov
Aug 8, 2011 at 2:21 pm
Aug 25, 2011 at 3:02 pm -
I have a module Win32::SqlServer, which I distribute with binaries for ActivePerl. With the release of 5.14, I want to provide binaries for this version as well. For x64 it works without problem. ...
Erland Sommarskog
Aug 1, 2011 at 9:55 pm
Aug 9, 2011 at 4:21 pm -
Hi, I'm trying to find a way to get 'application return value'. Just the same as 'package return value', usually 1 or "All your base are belong to us" in parent.pm Is it possible to get the same ...
Yaroslav
Jun 22, 2011 at 7:58 am
Jun 22, 2011 at 7:58 am -
Hi All, AFAICT, I want to implement the following Perl call to XS code: my (@ro,@wo,@eo) = nw_select(\@ri,\@wi,\@ei,$wait); What I think I need is XS code to return the 3 LHS arrays or 'undef's as ...
NormW
Jun 8, 2011 at 11:12 pm
Jun 12, 2011 at 12:15 am -
Hi, I'm trying to write a XS routine to return a point to a c++ class to be accessible from perl.. I'm new to XS, so i've been following: http://www.johnkeiser.com/perl-xs-c++.html and ...
James Shirley
Apr 9, 2011 at 6:25 am
Apr 17, 2011 at 3:53 am -
Hello, i've searched the mailing list and found an entry from 2001 that var arg list were not supported in perl - c : http://www.mail-archive.com/perl-xs@perl.org/msg00345.html Has this changed? Im ...
Harakiri
Mar 2, 2011 at 4:19 pm
Mar 3, 2011 at 1:30 am -
I've encountered a weird situation which the attached program demonstrates: - I create a Perl interpreter, and define the "displayarg" function that calls the XS_displayarg() C function. This ...
Eduardo M KALINOWSKI
Mar 1, 2011 at 5:46 pm
Mar 1, 2011 at 5:46 pm -
Hi, this C function is leaking memory: AV* __next_subset(SV* data_avptr, SV* odometer_avptr) { AV* data = GETAV(data_avptr); AV* odometer = GETAV(odometer_avptr); I32 len_data = av_len(data); AV* ...
Xavier Noria
Jan 28, 2011 at 10:06 am
Jan 28, 2011 at 11:03 am -
Hi, I'd like to access a Perl-variable (a scalar) from within an XS. I do accept that the scalar may not (yet) exists, so I'd cater for that: if (var_exists("$scsi_timeout")) timeout = strtoul(..., ...
Josef Moellers
Nov 30, 2010 at 2:37 pm
Dec 10, 2010 at 9:39 am -
Yes, I am confused. Please bear with me. I need to adapt the makefile.pl from a module from CPAN so it can build with ActivePerl, and modified the file according to the makefile.pl for my own module. ...
Erland Sommarskog
Nov 15, 2010 at 4:39 pm
Nov 25, 2010 at 9:55 pm -
Hello, I have an application which does data collection using embedded perl. On configuration change my application has to terminate currently running threads and then re-read the configuration data. ...
Shibu
Nov 15, 2010 at 8:39 am
Nov 15, 2010 at 8:39 am -
Hi, I wrote a small module with C++ for computing similiarity between strings. I compiled it on my 32-bit Windows XP machine using MinGW and SWIG and got a .dll file. It worked like a charm. Now i ...
Menth0l
Oct 1, 2010 at 8:50 am
Oct 1, 2010 at 9:48 pm -
I don't know if this is the right list, but I didn't found a better one for the problem. At the moment I'am developing an application-server with different services in C++ on Linux, Windows and ...
Michael Ganz
Sep 7, 2010 at 1:59 pm
Sep 7, 2010 at 6:09 pm -
Patrick Dupre
Jul 19, 2010 at 11:24 am
Jul 19, 2010 at 11:24 am -
0
gsl/XS
Patrick Dupre
Jul 17, 2010 at 10:14 am
Jul 17, 2010 at 10:14 am -
Is the following the correct code sequence to return an array reference or nothing (if result is 0) from an XS function? PPCODE: AV *result = 0; if (some_condition) { result = newAV(); ...
Florian Weimer
Jun 7, 2010 at 8:43 am
Jun 7, 2010 at 6:31 pm -
I apologize in advance if this is not the right mailing list. I looked through the myriad of perl's mailing lists and couldn't find anything for advanced internal knowledge outside of this xs list. ...
Ilya Sterin
May 20, 2010 at 11:02 pm
May 22, 2010 at 7:31 pm -
Hi I am new to XS but have coded for perl and C for a few year. Maybe this question sounds stupid but I can not figure it out on perlgut and perlxs at the moment. I have an array which contains ...
Walt Chen
May 18, 2010 at 9:49 am
May 18, 2010 at 3:58 pm -
Hello, I created a C++ class by using XS. Every things OK. Now I want to derive a class from it. How can I do it ? Thank. Patrick Dupre
Pat Dupre
Apr 16, 2010 at 1:54 pm
Apr 17, 2010 at 1:27 pm -
Hi, I'm trying to write a persistent perl daemon, but have noticed what looks like a memory leak, with perl_parse. It only seems to occur once dynamic loading of perl modules is enabled, here is my ...
James Shirley
Apr 15, 2010 at 1:05 am
Jun 7, 2010 at 5:19 pm -
1
XS hoh
Patrick Dupre
Apr 1, 2010 at 7:25 pm
Apr 2, 2010 at 7:41 am -
Patrick Dupre
Mar 31, 2010 at 4:21 pm
Mar 31, 2010 at 6:10 pm -
I've written a callback function for an XS module designed to call a perl function when invoked. If I call the function directly, from within the C code, it runs through completely as expected. If ...
Private and Confidential
Feb 11, 2010 at 12:32 am
Feb 11, 2010 at 5:44 pm
Top users
Archives
- March 2013 (6)
- February 2013 (8)
- November 2012 (3)
- August 2012 (6)
- July 2012 (14)
- May 2012 (5)
- March 2012 (2)
- February 2012 (12)
- January 2012 (14)
- December 2011 (6)
- October 2011 (19)
- August 2011 (11)
- June 2011 (13)
- April 2011 (5)
- March 2011 (5)
- January 2011 (4)
- November 2010 (9)
- October 2010 (3)
- September 2010 (5)
- July 2010 (3)
- June 2010 (3)
- May 2010 (7)
- April 2010 (5)
- March 2010 (3)
- February 2010 (6)
- December 2009 (1)
- November 2009 (2)
- July 2009 (7)
- June 2009 (4)
- March 2009 (8)
- February 2009 (3)
- January 2009 (9)
- December 2008 (6)
- November 2008 (7)
- October 2008 (7)
- September 2008 (23)
- August 2008 (8)
- July 2008 (1)
- June 2008 (7)
- May 2008 (7)
- April 2008 (11)
- March 2008 (2)
- January 2008 (4)
- December 2007 (6)
- November 2007 (1)
- October 2007 (9)
- September 2007 (23)
- August 2007 (2)
- July 2007 (10)
- June 2007 (2)
- May 2007 (11)
- April 2007 (7)
- March 2007 (4)
- February 2007 (3)
- January 2007 (23)
- November 2006 (20)
- October 2006 (3)
- September 2006 (11)
- August 2006 (26)
- July 2006 (12)
- June 2006 (14)
- May 2006 (20)
- April 2006 (30)
- March 2006 (8)
- February 2006 (8)
- January 2006 (7)
- December 2005 (16)
- November 2005 (24)
- October 2005 (31)
- September 2005 (19)
- August 2005 (21)
- July 2005 (29)
- June 2005 (14)
- May 2005 (10)
- April 2005 (44)
- March 2005 (40)
- February 2005 (33)
- January 2005 (63)
- December 2004 (35)
- November 2004 (37)
- October 2004 (35)
- September 2004 (58)
- August 2004 (48)
- July 2004 (39)
- June 2004 (53)
- May 2004 (66)
- April 2004 (52)
- March 2004 (66)
- February 2004 (56)
- January 2004 (109)
- December 2003 (16)
- November 2003 (7)
- October 2003 (31)
- September 2003 (36)
- August 2003 (35)
- July 2003 (32)
- June 2003 (28)
- May 2003 (37)
- April 2003 (37)
- March 2003 (48)
- February 2003 (8)
- January 2003 (50)
- December 2002 (19)
- November 2002 (46)
- October 2002 (34)
- September 2002 (26)
- August 2002 (28)
- July 2002 (23)
- June 2002 (9)
- May 2002 (33)
- April 2002 (36)
- March 2002 (27)
- February 2002 (18)
- January 2002 (33)
- December 2001 (25)
- November 2001 (28)
- October 2001 (21)
- September 2001 (14)
- August 2001 (29)
- July 2001 (14)
- June 2001 (50)
- May 2001 (13)
- April 2001 (9)
- March 2001 (28)
- February 2001 (15)
- January 2001 (11)
- December 2000 (29)
- November 2000 (36)
- October 2000 (18)
- September 2000 (16)
- August 2000 (5)
- July 2000 (3)
- June 2000 (6)
- May 2000 (11)
- April 2000 (19)
- January 2000 (11)
- December 1999 (12)
- November 1999 (40)
- October 1999 (18)
- September 1999 (2)
