------=_Part_12677_29061037.1156329086308 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 8/23/06, kandlinger / gmx.de <kandlinger / gmx.de> wrote: > > Hello, I am currently developing a webshop which uses a c/c++ shared > object/dynamic link library for some functions. Currently I am > evaluating which technology I should use. As I've got a completely > free choice I was thinking of Java Server Faces or Ruby on Rails. I > never used Ruby on Rails before, so my question is: How big is the > support of Ruby to access a c/c++ shared object/dynamic link library of > which i only got a c/c++ header file ? > > > For an example of this, feel free to look at the source code for the EventMachine library. The main library was written in C++ and not designed for Ruby. There is a small wrapper of pure C calls above the C++-based functionality, and the C wrapper is also not designed for Ruby. And then there is a standard Ruby extension which only massages data to and from Ruby-land and calls functions in the C wrapper, which it accesses only by #including a small header file. We had originally tried dlopen and SWIG and they were very painful. This approach has been fine. ------=_Part_12677_29061037.1156329086308--