From: Phlip Date: 2005-10-01T14:41:46+09:00 Subject: Re: Interest in Boost::Ruby Alan Gutierrez wrote: > I know that Ruby can communicate with C++ using SWIG, but I'm > wondering if there isn't anything more explicit. Something that > will bind tighter to Ruby. The Boost libraries favor Python due > to Boost::Python. Is there something similar, or is there > interest in something similar? > > http://www.boost.org/libs/python/doc/ I have no idea how Boost reflects C++ members into Python members, but Boosties are the C++ reflection experts so I'm sure they beat a way out of C++'s endlessly complex template system. Bonding raw Ruby to raw C++ is much much easier than bonding Python to it. (Or Perl, or Lua, while we are on the topic. I have worked with all four.) I wrote an extensive project using Ruby as the scripting language for an OpenGL renderer, and I tossed it on the web somewhere, but I forget where. Eric Hodel is probably the best C language bonding expert. Here's one of his blogs showing "Ruby written in C": http://www.livejournal.com/users/drbrain/2005/05/03/ The best thing I have done with the VALUE object is very simple: I wrap it in a C++ class that exposes the functions taking a VALUE as simple methods, overloaded operators, etc. Very simple, and I don't pretend it's a C++ class. It makes coding very fast. -- Phlip http://www.greencheese.org/ZeekLand <-- NOT a blog!!!