Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: perllibv2.01

by AgentM (Curate)
on May 06, 2001 at 04:56 UTC ( #78309=note: print w/replies, xml ) Need Help??

in reply to perllibv2.01

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.

Replies are listed 'Best First'.
Re: Re: perllibv2.01
by Cybercosis (Monk) on May 06, 2001 at 08:03 UTC
    Hrm... this is not an idea I had considered. Email me ( and we'll talk about it!


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://78309]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2017-02-26 11:04 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (372 votes). Check out past polls.