Ruby bindings

Hello!

Consider I have a collection of some C++ libs, in which I have
access to the actual source code (strict C++). I want to create
Ruby bindings and be able to utilize the C++ code through Ruby.

Is there a standard process in doing such a thing? Any document
describing the process, except the Ruby sources?

So far I have only the ruby-gtk+ sources, which, IMHO, is a
heavy project and I have no clue if the ruby-gtk+ folks follow
a standard model or something else (for performance reasons).

Regards,

···


University of Athens I bet the human brain
Physics Department is a kludge --Marvin Minsky

http://www.rubycentral.com/book/ext_ruby.html

···

On Tue, Nov 04, 2003 at 03:29:44AM +0900, Elias Athanasopoulos wrote:

Hello!

Consider I have a collection of some C++ libs, in which I have
access to the actual source code (strict C++). I want to create
Ruby bindings and be able to utilize the C++ code through Ruby.

Is there a standard process in doing such a thing? Any document
describing the process, except the Ruby sources?

So far I have only the ruby-gtk+ sources, which, IMHO, is a
heavy project and I have no clue if the ruby-gtk+ folks follow
a standard model or something else (for performance reasons).

Regards,

University of Athens I bet the human brain
Physics Department is a kludge --Marvin Minsky


Daniel Carrera | Aleph-0 bottles of beer on the wall, Aleph-0 bottles
PhD student. | of beer. Take one down, pass it around, Aleph-0
Math Dept. | bottles of beer on he wall…
UMD, | Aleph-0 -- from Wolfram MathWorld

Elias Athanasopoulos wrote:

Hello!

Consider I have a collection of some C++ libs, in which I have
access to the actual source code (strict C++). I want to create
Ruby bindings and be able to utilize the C++ code through Ruby.

Is there a standard process in doing such a thing? Any document
describing the process, except the Ruby sources?

If you mean process in the sense of executable software, SWIG/Ruby is great:

http://www.swig.org/
http://www.swig.org/Doc1.3/Ruby.html

Hello!

Consider I have a collection of some C++ libs, in which I have
access to the actual source code (strict C++). I want to create
Ruby bindings and be able to utilize the C++ code through Ruby.

Is there a standard process in doing such a thing? Any document
describing the process, except the Ruby sources?

So far I have only the ruby-gtk+ sources, which, IMHO, is a
heavy project and I have no clue if the ruby-gtk+ folks follow
a standard model or something else (for performance reasons).

Regards,

Maybe Ruby/DL already helps ?
http://ttsky.net/ruby/ruby-dl.html
It is included in ruby since 1.8 I think.
You can find more documentation under ruby/ext/dl/

Bye
Alex

···


NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien…
Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService

Jetzt kostenlos anmelden unter http://www.gmx.net

+++ GMX - die erste Adresse für Mail, Message, More! +++

Wow! Are you the king of the fastest reply? Thanks!

Regards,

···

On Mon, Nov 03, 2003 at 01:33:58PM -0500, Daniel Carrera wrote:

http://www.rubycentral.com/book/ext_ruby.html

--
University of Athens I bet the human brain
Physics Department is a kludge --Marvin Minsky