# Rb++ vs. swig

**URL:** <https://www.ruby-forum.com/t/rb-vs-swig/177852>\
**Category:** wxRuby\
**Created:** [October 25, 2009, 2:42pm UTC](https://www.ruby-forum.com/t/rb-vs-swig/177852 "2009-10-25T14:42:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mister\_Gibson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/cc9497/32.png) [@Mister\_Gibson](https://www.ruby-forum.com/u/Mister_Gibson)\
**Post date:** [October 25, 2009, 2:42pm UTC](https://www.ruby-forum.com/t/rb-vs-swig/177852/1 "2009-10-25T14:42:25Z")

</div>

Dear wxruby,

Have you looked into RB++ as an alternative to swig?

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

I’d love to hear your thoughts on this.

Cheers.

---

<div class="post-metadata">

**Author:** ![Mister\_Gibson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/cc9497/32.png) [@Mister\_Gibson](https://www.ruby-forum.com/u/Mister_Gibson)\
**Post date:** [October 25, 2009, 4:09pm UTC](https://www.ruby-forum.com/t/rb-vs-swig/177852/2 "2009-10-25T16:09:38Z")

</div>

hi

Mister Gibson wrote:

> Have you looked into RB++ as an alternative to swig?
> 
> [http://rbplusplus.rubyforge.org/](http://rbplusplus.rubyforge.org/)

Yes, I’ve looked into it a little; some comments I’ve had in the past:

[http://rubyforge.org/pipermail/wxruby-development/2009-June.txt](http://rubyforge.org/pipermail/wxruby-development/2009-June.txt)

And also some discussion on this thread (FFI vs SWIG vs rb++)

[http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/322464](http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/322464)

rb++ does seem neater than SWIG. But there’s a very considerable number  
of difficult problems of wrapping wxWidgets in Ruby that are already  
solved using SWIG. rb++ also relies a fair bit on C++ namespaces, which  
wxWidgets doesn’t use, and SWIG also supports a number of C++ features  
which aren’t yet supported in rb++.

but i’m always interested to hear more on this

cheers  
alex
