Alan, Hez's bindings do not use Swig, although there is an alternative OCaml plplot binding which does. I'm not sure this is currently as complete as Hez's efforts. This discussion did come up when Hez originally announced his efforts back in December. To quote
> My main reasons for using camlidl over SWIG are: > a) I have also used SWIG to create HDF4 library bindings for OCaml, so > I have some experience with it > b) The process is relatively easy - I take a slightly modified > plplot.h file, and preprocess it with a script I wrote. The output > feeds in to camlidl which generates the binding code. This is quite > similar, as I understand it, to how a SWIG binding would work. > However... > c) camlidl seems to produce much more lightweight bindings than SWIG. > Looking through the existing SWIG-based OCaml bindings there are a > large number of extra type wrappers which are not needed when using > camlidl. There may be ways around this in SWIG which I do not know > about. I agree that swig would be good to minimise maintenance effort. I see that the camidl approach needs (another) modified copy of plplot.h. Swig would presumably use the existing plplotcapi.i file. Having said that, if there are convincing technical reasons for using camidl I could be persuaded. Incidentally I see that swig now supports quite a range of languages. I notice that R is now among them (this is statistical computation language, somewhat like the commercial S). Given we support octave, this could be another useful language to target in the future. Regards Andrew On Sat, Mar 08, 2008 at 03:23:38PM -0800, Alan Irwin wrote: > P.S. > > Hi again, Hez: > > I just noticed that swig has supported OCaml for some time. We are all set > up for generating language bindings with swig (currently our python and java > interfaces are generated that way). Are you also using swig? > > If not, it doesn't matter since we also have plenty of language bindings > which are not generated by swig, but since OCaml is supported under swig it > does indicate that the OCaml PLplot bindings must be pretty similar in > overview to our other language bindings and therefore should be > straightforward to build with CMake. > > Alan > __________________________ > Alan W. Irwin > > Astronomical research affiliation with Department of Physics and Astronomy, > University of Victoria (astrowww.phys.uvic.ca). > > Programming affiliations with the FreeEOS equation-of-state implementation > for stellar interiors (freeeos.sf.net); PLplot scientific plotting software > package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of > Linux Links project (loll.sf.net); and the Linux Brochure Project > (lbproject.sf.net). > __________________________ > > Linux-powered Science > __________________________ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Plplot-devel mailing list > Plplot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/plplot-devel > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel