I've got an application that has been growing bigger and more complex over the last few years. Lately, we've developed the desire to allow our customers to add functionality via a plugin interface.
The basic goals are:
- Plugins can be written in many languages - Perl, C, VB, Python, etc.
- The mechanism should work on both unix and Windows systems.
- Loading and running plugins should not be "too resource intensive".
The approach that comes to mind is to use either shared libraries or executables with a predefined interface.
If I use libraries, can I create an XS or Inline::C style interface that will let me talk to multiple different libraries?
If I use separate executables, what should I be considering for passing data and commands between application and the plugins?
I'm looking for general thoughts and leaders to further research. Any pointers would be greatly appreciated.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.