From: Steven Jenkins Date: 2005-04-12T23:08:11+09:00 Subject: Re: Accessing SVN through Ruby Bob Aman wrote: > On Apr 11, 2005 11:33 PM, Saynatkari wrote: > >>Hey, it is not that bad. See the snippet at the end that >>I wrote for a 'native' extension. The code is not all that >>great (I was mainly trying to get it to just work) but >>that Apache Portable Runtime is some truly horrible stuff. > > > Yes, it is, and this is one of the main reasons I want something more > "ruby-like" than the straight up Ruby SWIG bindings. "Er, pools? Why > should I have to think about pools? This is Ruby, for goodness > sakes!" The thing is ugly, even by C standards. I've wrapped two libraries with SWIG. In both cases, I ended up writing a layer of syntax sugar in Ruby, purely to make the API more Ruby-like. One of those efforts is described here: https://cvs.comedi.org/cgi-bin/viewcvs.cgi/comedilib/swig/ruby/README?rev=1.4&content-type=text/vnd.viewcvs-markup It's possible to do some of this in SWIG itself, but Ruby is easier, at least for me. Steve