Search Discussions
-
Hello everyone, My work with Alien::TinyCCx gives errors on appveyor ( https://ci.appveyor.com/project/run4flat/alien-tinyccx/build/1.0.7). I cannot reproduce these errors on my own setup. If you ...
David Mertens
Apr 24, 2016 at 10:57 pm
Apr 25, 2016 at 4:07 pm -
Hello everyone, I am making fairly steady progress on C::Blocks. I recently decided to set up Windows continuous integration for my projects using appveyor. (I plan to soon set up Mac CI using a ...
David Mertens
Apr 24, 2016 at 9:16 pm
Apr 25, 2016 at 3:33 pm -
Yonghua Peng
Nov 15, 2015 at 12:02 am
Nov 16, 2015 at 5:43 am -
Greetings, I have a command line Perl application. I am embedding that Perl application into a GUI application. I have stdout redirect using tie *SIMOUT, "MyStdOutPackage"; Sometimes I have an issue ...
JR Heisey
Apr 6, 2015 at 5:33 pm
Apr 6, 2015 at 5:33 pm -
Hi, I have a collection of Perl objects in an application. I want a C program to have access to the data in these objects. The objects are implemented as a package The C application wants an object ...
JR Heisey
Mar 4, 2015 at 5:18 pm
Mar 5, 2015 at 1:53 am -
I have a simple, if not basic, question. We have a static archive (*.a) library provided to us that we have written an XS interface for. So, the resulting .so that XS builds contains that library (or ...
Bill Moseley
Sep 30, 2014 at 12:39 pm
Oct 1, 2014 at 1:50 am -
Hello, there are good examples on how to embed perl: http://perldoc.perl.org/perlembed.html And there are good examples on how to use XS: http://perldoc.perl.org/perlxstut.html My problem: The first ...
Manuel Reimer
Aug 21, 2014 at 3:38 pm
Aug 21, 2014 at 3:38 pm -
Hi, I am working on a XS module in which I have to transmit and share data between multiples contexts. To simplify, this system is constructed around two methods: - send(<name , <data ) - ...
Tristan Darricau
Jul 22, 2014 at 8:17 am
Jul 22, 2014 at 9:00 am -
Sounds pretty cool, David. A plodder like me is probably just going to stick with Inline, but it would be great to see C::Blocks takes off. And it has the attractiveness to do so. (I like the way you ...
Sisyphus1
May 24, 2014 at 3:35 am
May 24, 2014 at 11:08 am -
Hey everyone, tl;dr: C::Blocks is a new TinyCC-based module, presently only available on github. (1) It jit-compiles blocks of C code, building and inserting OPs into the Perl OP tree, making ...
David Mertens
May 23, 2014 at 12:35 pm
May 23, 2014 at 12:35 pm -
Hi there, I have an error as detailed in the attached tst1.t perl script where the "use Readonly::XS;" line is failing.I tried to use perl -d debug mode but not working as use line is part of the ...
Normand
Apr 29, 2014 at 4:56 pm
May 2, 2014 at 12:54 pm -
Hi list ! I have some legacy modules originating in the dim past of perl 5.6.x which is to say there are likely quite a few quirks in the code. However the stuff used to work up and including until ...
Michael Gerdau
Feb 19, 2014 at 12:10 am
Feb 19, 2014 at 8:38 am -
Hi. The perlapi manpage has this to say about Safefree(): The XSUB-writer's interface to the C "free" function. So I've been using it instead of a plain free() pretty consistently, and everything ...
Calle Dybedahl
Dec 18, 2013 at 8:16 am
Dec 18, 2013 at 5:42 pm -
Hi all, A post on the P5P list, that could be interesting for people on this list. Forwarded with permission :-) Cheers -- -- \^/ -- -- -/ O \--------------------------------------- -- -- | |/ \| ...
Alexandre Jousset
Dec 16, 2013 at 7:10 pm
Dec 16, 2013 at 7:10 pm -
Howdy, I'm trying to garner some interest in a Perl XS beginner/intermediate group/community. I was wondering if we could sort of "take over" this list, and by that I mean start using it and ...
Matthew Horsfall (alh)
Dec 13, 2013 at 3:21 pm
Dec 14, 2013 at 1:25 pm -
I recently tracked down a difficult bug that occured only when one of my XS modules was used in conjunction with certain other XS modules (e.g., XML::Parser or String::Approx). It turned out to be ...
Torsten Schoenfeld
Sep 25, 2013 at 6:50 pm
Sep 26, 2013 at 7:12 am -
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
Top users
Archives
- April 2016 (7)
- November 2015 (4)
- April 2015 (1)
- March 2015 (2)
- September 2014 (3)
- August 2014 (1)
- July 2014 (2)
- May 2014 (5)
- April 2014 (2)
- February 2014 (3)
- December 2013 (15)
- September 2013 (5)
- 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)