This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Automatic stub generation?


On 3 Sep 1998, Miguel de Icaza wrote:

>    I am writing a spreadsheet program for the GNOME project and I am
> interesting in making Guile have access to the internals of the
> spreadsheet[1][2]
> 
>    Is there any package that would help me doing the bridge code, or
> should I code those manually?  I remember seeing an announcement for
> such thing. 

Hallo!

AFAIK there are two packages: SWIG and G-Wrap. Although I only use SWIG,
some of the differences seem to be:

- SWIG supports interfaces for several scripting languages, not only for
  guile. I contrast, G-Wrap generates only wrappers for scheme (maybe even
  only for guile?)
- SWIG has rudimentary (but for me sufficiently working) support for C++,
  which doesn't seem to be true of G-Wrap. Maybe meanwhile wrappers for
  C++ exist?

There are probably some aspects in favor of G-Wrap, but I especially
remember these points, since they were crucial for me at the time I had to
decide which packet to use.

However, for GNOME I suggest considering SWIG, since ISTR that one of the
GNOME issues is not to be fixed to a single language. If you are
interested, I could send you some examples of how I usually wrap functions
and data structures with SWIG.

* Note to the maintainers: If there is interest, I could work these
examples into a little tutorial. Some time ago I sent some comments about
the guile web sites, stating the lack of examples as one of the big
problems for advocating guile.

Best regards, 
Dirk Herrmann

--
This message is best viewed with ISO 8859/1 (latin-1) character encoding.
              Microsoft .. what do you want to boot today?