From: Martin DeMello Date: 2005-09-25T07:56:41+09:00 Subject: Re: swiggery Steven Jenkins wrote: > Gennady Bystritsky wrote: > > SWIG is especially good for a small task as you can get it done in no > > time to the extent you would spend tons of time doing manually. If you > > care about rubyish API it is also doable, by using SWIG directives like > > '%rename' in your interface description file. And the type mapping is > > just fabulous. > > SWIG is good for a small task if you know SWIG. I use %rename and > typemaps in my own applications, but I found the learning curve somewhat > steep--not worth climbing, in my experience, for a simple task like > Martin's. If Martin expects to do more work along those lines, the > learning time may be a good investment. Did it by hand in the end - didn't take long at all (though longer than it should have!). I might go back and try it with SWIG once I'm more familiar with the hand route, since as you say it will be valuable knowledge at some point - I think trying to learn both SWIG and C extensions at the same time was a bit much, though. martin