# Rubybind library

**URL:** <https://www.ruby-forum.com/t/rubybind-library/129750>\
**Category:** Ruby\
**Created:** [February 21, 2008, 9:46am UTC](https://www.ruby-forum.com/t/rubybind-library/129750 "2008-02-21T09:46:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [February 21, 2008, 9:46am UTC](https://www.ruby-forum.com/t/rubybind-library/129750/1 "2008-02-21T09:46:01Z")

</div>

Hey.

I’m currently developing a C++/Ruby binding library, called rubybind.  
(If you know luabind, you’ll know what I aim at) It’s open source,  
under the MIT license. Currently it’s in a pretty early stage of  
development but is has something (barely) functional to offer.

Feel free to check it out.

here it is: [rubybind download | SourceForge.net](https://sourceforge.net/projects/rubybind/)

And yes, this is pretty much advertizing… I hope you’re not offended.

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [February 21, 2008, 1:06pm UTC](https://www.ruby-forum.com/t/rubybind-library/129750/2 "2008-02-21T13:06:06Z")

</div>

On Feb 21, 3:42 am, removed\_email\_address@domain.invalid wrote:

> And yes, this is pretty much advertizing… I hope you’re not offended.

have you seen rice yet? It seems like it could be similar…

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [February 21, 2008, 4:18pm UTC](https://www.ruby-forum.com/t/rubybind-library/129750/3 "2008-02-21T16:18:20Z")

</div>

On Thu, Feb 21, 2008 at 7:04 AM, Tom M [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > here it is:[rubybind download | SourceForge.net](https://sourceforge.net/projects/rubybind/)
> > 
> > And yes, this is pretty much advertizing… I hope you’re not offended.
> 
> have you seen rice yet? It seems like it could be similar…

I second the look at Rice (Ruby Interface for C++ Extensions).

In fact, I myself began work on this exact type of library, called  
rubybind, of all things. That was of course until I was pointed to  
Rice. Rice isn’t reliant on boost, has been in development for some  
time (internally by Paul B. and others) and only recently  
officially released.

[http://rice.rubyforge.org](http://rice.rubyforge.org)

Jason

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [February 21, 2008, 8:36pm UTC](https://www.ruby-forum.com/t/rubybind-library/129750/4 "2008-02-21T20:36:02Z")

</div>

Actually I did know about rice, but the last thing I had read of it  
was pretty long ago, and I guess I though it was abandoned or at a  
very early stage of development.

Nevertheless I won’t abandon rubybind. This is for several reasons.

First, I intend rubybind to be a part of a bigger library boost::(or  
not boost)language\_bind which will provide a generic for binding C++  
with lua, ruby, python (and maybe other languages). This is still  
being designed and absolutely no details have been though of. I still  
think that someday I might get to it.

Second, after taking a closer look (though not a very detailed yet) I  
noticed that it is a little different than what rubybinds aims at. The  
memory management strategies, the exposing of classes and functions  
and runtime instead of compile-time generated bindings. For now rice  
looks like it is a lot slower than I thought rubybind would be.  
Ofcourse since we’re talking about ruby, we get to a whole new  
dimension of “slow” 🙂

And last, I like creating this library and I still would like this c++  
(and ruby) excersise for my personal development. I will be using  
rubybind for a game that I’m developing in ruby with a light c++ 3d  
engine of mine, that will be entirely exported to ruby. By all means I  
would fill more confident using rubybind than rice when creating the  
game. You know… you own code is always more usable and supportable.

There might be a lot of other differences but I still haven’t taken a  
detailed look at rice.

I must admit that I am kinda dissapointed (I honestly thought I was  
filling an empty niche in software developent with rubybind). Anyway  
rubybind won’t be abandoned for now.

Thanks for the replies
