in reply to Cross platform, multilanguage plugins
Plugins can be written in many languages - Perl, C, VB, Python, etc.This suggests you either want a C-level interface (i.e. a dynamic library) or some kind of language independent interface (preferably text based - I might even go for XML)
If you go for a shared library, you might want to consider SWIG, since you can use it to build a single C interface and generate wrappers for different languages including perl, python and C#.
The mechanism should work on both unix and Windows systems.Do you also want to have plugins running on remote machines?
I think I'd go with either a C library based interface for complex/dynamic systems, or some kind of XML "filter" system for "single shot" plugins: App -> XML out -> pipe into plugin -> xml response -> read back.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Cross platform, multilanguage plugins
by TGI (Parson) on Feb 13, 2007 at 23:24 UTC |