From: Issac Date: 2001-12-10T12:59:16+09:00 Subject: [ruby-talk:28057] Re: Boost.Ruby ? Sounds like a good idea. The Ruby C api seems much cleaner than the Python C api, so it shouldn't be too bad. ----- Original Message ----- From: "Lorien Dunn" To: "ruby-talk ML" Sent: Sunday, December 09, 2001 5:52 PM Subject: [ruby-talk:28046] Re: Boost.Ruby ? > On Sun, 9 Dec 2001 02:47, Issac wrote: > > Of all the ways to extend Python with C++, my favorite is Boost.Python > > http://www.boost.org/libs/python/doc/ . > > Does something like this exist for Ruby? > > The problem with boost::python is that it creates VERY bloated extensions. > I've had 200k of c++ (including the boost wrapping) turn into 2.5 megs of > stripped binary. I ended up re-implimenting with ruby-c (writing ruby in c), > because of no end of hassles with boost- you still have a hard time wrapping > advanced c++, and the extension ends up being about 70k. > > I know I'm not using boost::python again :) > > IMHO the ruby c API is easy enough so something like boost is not needed. > Have a look at ruby-fltk as an example of how to hand-wrap c++. > > > Lorien Dunn