BTW: I've not heard from Dan Cunningham in a while. Has anyone else?
Is anyone using the sources from Gitorious currently?
I had wanted to do a Perl library but hadn't had the time (staring a lot at ZigBee these days).
Rick
SPAMers suck. I adjusted the settings in the google group to moderate
the first few posting by brand new members.
> BTW: I've not heard from Dan Cunningham in a while. Has anyone else?
>
> Is anyone using the sources from Gitorious currently?
>
> I had wanted to do a Perl library but hadn't had the time (staring a
> lot at ZigBee these days).
I would love a Perl library!
Dax Kelson
I started changing the sources in Git to use instance variables instead of globals, but haven't had time to regress it and make sure everything still works.
Has anyone else tried them?
Thanks.
On 11/9/10 11:33 AM, Rick Macdonald wrote:
> I've been aware of SWIG for many many years but never had a need for it. I think it might be worth a try for the HAI library. The basic idea is that with little or no changes to the library code, SWIG can generate C code wrappers that you compile to add some or all of the functions to scripting languages such as Ruby, PHP, Tcl, Perl, Python.
>
> I think the biggest issue might be error messages and error handling, since our library mostly prints its errors. That could require significant code change.
>
> In my scripting I just run the hai executable repeatedly with command line arguments to get what I need done. Using SWIG or porting to something like PERL would give access to lower level functions.
>
> Dax and others, any comments?
>
> http://www.swig.org/
>
> SWIG runs on UNIX, Windows and Mac. Here is a more complete list of supported target languages:
>
> The following scripting languages were supported in the final SWIG 1.1 release.
>
> * Tcl 8.0 and newer versions.
> * Python 1.5 and newer.
> * Perl 5.003 or newer.
> * Guile 1.3.4 and newer.
>
> The following languages are also supported in swig-1.3.6 onwards.
>
> * Java JDK 1.1 and newer.
> * Ruby.
> * Mzscheme.
Thanks,
Rick