On Tue, Jan 21, 2014 at 08:42:43PM -0500, Bob Algiers wrote:
> Swig is great. I use it at work (nvidia) to speed up perl programs.
> Swig would be even more powerful if it could call the scripting languages from c/c++. If you could normalize to c++, then you could call any of your scripting languages from any other. I would use this
to provide python bindings to perl modules.
It should soon be possible to get method dispatch from C++ into
Perl implementations of C++ base classes using the "directors" feature.
I believe this is due to be included in the next major release. However
to provide Python with a library that can invoke Perl code, the library
would need to create and maintain it's own embedded Perl interpreter.
I have not yet had a chance to try this myself, but I believe it
should be possible. Perl is not *that* difficult to embed in an
application, though embedding in a library can be tricky.http://perldoc.perl.org/perlembed.html