[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swig-user] swig guile2

From: William S Fulton
Subject: Re: [Swig-user] swig guile2
Date: Mon, 21 Mar 2011 20:32:18 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20110223 Lightning/1.0b2 Thunderbird/3.1.8

On 19/03/11 20:08, Tristan Colgate wrote:
Hi All,

   I'm working on a couple of projects using guile and swig and
recently did some work to put together a guile2 module for swig.

   I started out by trying to add guile2 support to the existing guile
support but the focus on the old GH interface meant things started to
get messy so I've basically copied the old guile module and removed
all the legacy gh support and updated the memory management for

   It is a bit of a hack but as far as I can tell it is working OK for
me at the moment.

   I thought now would be a good time to announce the effort and gauge opinion.

   Guile2 has lots of nice features and I think a dedicated module
could do interesting things without breaking legacy support. Guile 2
has an FFI that could potententially be useful in the future (I like
SWIGs typemaps far too much to have moved away from swig all together

Are you proposing a 2nd SWIG Guile module in addition to the current module?

   The code is currently on github, and I would welcome feedback. It is
a bit rough and ready, and my knowledge of SWIG internals is pretty
rudimentary, so I'd welcome comment and advise (and patches), from all

   Be sure to check out the guile2 branch.

I am no guile user, so can't help on the Guile side. The guile SWIG module is suffering neglect and doesn't seem to work with modern versions of Guile - the test-suite fails for me. Only very rarely are there Guile queries on the SWIG mailing list, so suspect it isn't used much. Would it make sense to drop the older Guile interface altogether and just use Guile 2? BTW, there is the swig -scm option for guile 1.6+. So there seems to be GH and SCM and now guile 2 API... does that sound right that there are so many C interfaces or is your Guile 2 interface just SCM?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]