Grokbase Groups Perl xs
FAQ

Search Discussions

758 discussions - 2,775 posts

  • 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 DarricauTristan 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 ...
    Sisyphus1Sisyphus1
    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 MertensDavid 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 ...
    NormandNormand
    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 GerdauMichael 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 DybedahlCalle 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 JoussetAlexandre 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)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 SchoenfeldTorsten 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 BullockBen 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 BullockBen 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 MertensDavid 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 MoseleyBill 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 FishShlomi 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 MoseleyBill 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 MoseleyBill 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 88Bulk 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 MoseleyBill 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 ...
    AgrahamAgraham
    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 MertensDavid 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 OswaldDavid 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õesAlberto 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 MertensDavid 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õesAlberto 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 OswaldDavid 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 ...
    BenBen
    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õesAlberto 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õesAlberto 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õesAlberto 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 ...
    BenBen
    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. ...
    BenBen
    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 RodriguezEmmanuel 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 ...
    YangXiYangXi
    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 RatcliffeJeffrey 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 RatcliffeJeffrey 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 ViktorovNikola 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 SommarskogErland 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 ...
    YaroslavYaroslav
    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 ...
    NormWNormW
    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 ShirleyJames 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 ...
    HarakiriHarakiri
    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 KALINOWSKIEduardo 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 NoriaXavier 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 MoellersJosef 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 SommarskogErland 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. ...
    ShibuShibu
    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 ...
    Menth0lMenth0l
    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 GanzMichael Ganz
    Sep 7, 2010 at 1:59 pm
    Sep 7, 2010 at 6:09 pm
  • Patrick DuprePatrick Dupre
    Jul 19, 2010 at 11:24 am
    Jul 19, 2010 at 11:24 am
  • this is my sample xs code, which calls the C++ class to fetch details of the person. The code works fine, i have couple of questions on this, which would help me in identifying mem leaks with this ...
    RavipsRavips
    Jul 19, 2010 at 10:52 am
    Aug 7, 2010 at 12:54 pm
Group Navigation
period‹ prev | Latest | first ›

Top users

Nick: 249 posts Nick Ing-Simmons: 136 posts Tassilo Parseval: 92 posts Billy N. Patton: 74 posts Muppet: 73 posts Nicholas Clark: 70 posts Steve Hay: 67 posts Reinhard Pagitsch: 65 posts Marvin Humphrey: 55 posts Steven N. Hirsch: 51 posts Tels: 42 posts Sisyphus: 42 posts Moseley: 41 posts Jan Dubois: 41 posts Marcus Holland-Moritz: 39 posts Sisyphus1: 38 posts Tassilo von Parseval: 37 posts Vivek Dasmohapatra: 35 posts Stanley Hopcroft: 30 posts Tye McQueen: 28 posts
show more
Archives