Here's my opinion about
perlxs: it is obviously complete but not easy to use or learn. Often, it's simply too easy to throw something together with blatant memory leaks without obvious solutions. I'd like to see an API as close as possible to perl's own built-in functionality, specifically memory cleanup and less stack twiddling. Over course, in order to build an API over this, one must be very familiar with
perlxs,
perlguts, and beyond what is described in any docs. I would love to use something simplistic like:
//your code
class PerlScalar
{
//overloads on assignment, operators, etc.
~PerlScalar(){...} //just say NO to memory leaks!
}
class PerlArray{...}
class PerlHash{...}
//my code
PerlScalar myScalar="This is text.";
PerlScalar myScalar2=123; //integer, double, etc.
PerlScalar myScalar3(bitblob); //assigns any random info
This would allow nearly instant integration with ANY C++ program. Furthermore, you need to be careful about multiple perl interpreters which needs a great deal of informing on pthreads (I can help you out in this and any other UN*X dept.) This would be massive undertaking. I imagine it could be entirely done as a wrapper class around
perlxs. Let me know what you think and if you need help (you will). I'd also like to be able to pipe to various Perl interpreters, regardless of the interpreter's status. Currently, one can pass and environment and whole bunch of stuff that's quite confusing and difficult to get right on the first time.
perlxs is also a pain in the ass when trying to fiddle with the perl stack. They're just some macros, but can be easily forgotten and often annoying. I would suggest throwing a wrapper around that, too. Essentially, I'm looking for a wrapper for perlxs that wouldn't cut into performance nor flexibility. Sir, you have a winner idea, I hope it evolves into something popular! Hell, I'd use it!
AgentM Systems nor Nasca Enterprises nor
Bone::Easy nor Macperl is responsible for the
comments made by
AgentM. Remember, you can build any logical system with NOR.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.