Rubinius support for rbSFML

After I finished the chapter deadline for the publisher I had some free time in the weekend. I spent some of it in making rbSFML compatible with the high performing Ruby implementation Rubinius. Sweet! Sure it required me to do a pull request to the Rubinius repository and do some fixes for them but it is now fully supported.

So if you want to do parallel tasks with rbSFML that should now be fully supported as well since Rubinius doesn’t have a GIL so using native threads there is actually worth it.

I’ve encountered a minor problem with it on Arch Linux. Somehow Rubinius gets it to crash inside Nvidia’s library libGL when the opengl context is being destroyed and I don’t understand why. But well I’ll track it down and fix it as soon as I get time. But it is still usable since the crash happens only when you are exiting the application and as it is destroying the last window created.


  • Funcoot

    I was wondering if rbSFML would benefit from Rubinius. I’m guess yes? I’m a little ignorant to Ruby, Rubinius and the benefits of Rubinius. What kind of general benefit is there to using rbSFML and Rubinius with each other?

    Comment | March 14, 2013
  • Well rbSFML itself doesn’t benefit anything. But your own ruby code can benefit hugely from it. For instance better performance and true native threads are some of the benefits you would gain.

    As you might or might not know Ruby MRI(original implementation) has a GIL in place which makes it only possible for one thread to run at any time. Rubinius have somehow come around this with their VM so threading will be truly parallel.

    I am only providing the support as an alternative as someone might want to use Rubinius over MRI 🙂 But the binding itself doesn’t gain anything from it.

    Comment | March 14, 2013
  • Funcoot

    The only reason I ask is because I am currently learning Ruby ( and it seems like a very well rounded language. I am enjoying learning it, it is beautiful and fun! I want to be able to build web applications and desktop applications, which Ruby seems just fine for, however I would also like to explore games one day, and it just worries me that I do not see any games written in Ruby.

    Comment | March 14, 2013
  • Portia Bartolo

    Magnificent goods from you, man. I’ve consider your stuff previous to and you’re simply too wonderful. I actually like what you’ve obtained here, certainly like what you’re saying and the best way by which you are saying it. You make it entertaining and you still care for to keep it smart. I cant wait to learn far more from you. This is really a terrific website.

    Comment | August 5, 2013

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress. Theme: TheBuckmaker