# Boost.Python equivalent for Ruby?

**URL:** <https://www.ruby-forum.com/t/boost-python-equivalent-for-ruby/70844>\
**Category:** Ruby\
**Created:** [October 3, 2006, 12:57pm UTC](https://www.ruby-forum.com/t/boost-python-equivalent-for-ruby/70844 "2006-10-03T12:57:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![valachi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/54ee81/32.png) [@valachi](https://www.ruby-forum.com/u/valachi)\
**Post date:** [October 3, 2006, 12:57pm UTC](https://www.ruby-forum.com/t/boost-python-equivalent-for-ruby/70844/1 "2006-10-03T12:57:02Z")

</div>

Does something like Boost.Python exist for Ruby?

Couple of similar, now aborted projects, were mentioned  
on this newsgroup but perhaps I miss something new.

(I know about C extensions and SWIG.)

/Pavel

---

<div class="post-metadata">

**Author:** ![valachi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/54ee81/32.png) [@valachi](https://www.ruby-forum.com/u/valachi)\
**Post date:** [October 3, 2006, 6:12pm UTC](https://www.ruby-forum.com/t/boost-python-equivalent-for-ruby/70844/2 "2006-10-03T18:12:07Z")

</div>

On 10/3/06, Pavel V. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Does something like Boost.Python exist for Ruby?

When asking questions like this, it’s probably worthwhile giving a  
two or three sentence overview of what Boost.Python is/does.  
Less useful would be a URL. I’m already busy enough not to  
go looking for extra information to try to figure out someones  
question unless it really scratches an itch or fires my  
imagination.

---

<div class="post-metadata">

**Author:** ![valachi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/54ee81/32.png) [@valachi](https://www.ruby-forum.com/u/valachi)\
**Post date:** [October 3, 2006, 7:30pm UTC](https://www.ruby-forum.com/t/boost-python-equivalent-for-ruby/70844/3 "2006-10-03T19:30:26Z")

</div>

On 10/3/06, Pavel V. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Does something like Boost.Python exist for Ruby?
> 
> Couple of similar, now aborted projects, were mentioned  
> on this newsgroup but perhaps I miss something new.
> 
> (I know about C extensions and SWIG.)

At the moment SWIG is probably as close as it gets to boost.python.  
It seems to me that there’s a lot of overlap between SWIG and  
boost.python, but it seems the latter (I haven’t used boost.python,  
but I have used SWIG) is more python-centric.

Another approach would be to use Rubyinline:  
[http://rubyforge.org/projects/rubyinline/](http://rubyforge.org/projects/rubyinline/)

What are you trying to accomplish?

Phil

---

<div class="post-metadata">

**Author:** ![valachi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/54ee81/32.png) [@valachi](https://www.ruby-forum.com/u/valachi)\
**Post date:** [October 3, 2006, 7:56pm UTC](https://www.ruby-forum.com/t/boost-python-equivalent-for-ruby/70844/4 "2006-10-03T19:56:28Z")

</div>

“Phil T.” wrote:

> > Does something like Boost.Python exist for Ruby?
> 
> Another approach would be to use Rubyinline:  
> [http://rubyforge.org/projects/rubyinline/](http://rubyforge.org/projects/rubyinline/)

Thanks, I’ll play with it.

> What are you trying to accomplish?

What I am looking for is the ability to  
subclass C++ classes in a scripting  
to allow quick experimenting  
and with simple way to conver them to C++.

/Pavel
