# Ruby and SDL?

**URL:** <https://www.ruby-forum.com/t/ruby-and-sdl/80320>\
**Category:** Ruby\
**Created:** [December 24, 2006, 12:38am UTC](https://www.ruby-forum.com/t/ruby-and-sdl/80320 "2006-12-24T00:38:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wim\_Vander\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/13edae/32.png) [@Wim\_Vander\_S](https://www.ruby-forum.com/u/Wim_Vander_S)\
**Post date:** [December 24, 2006, 12:38am UTC](https://www.ruby-forum.com/t/ruby-and-sdl/80320/1 "2006-12-24T00:38:15Z")

</div>

Hi,

I was wondering if there was a decent binding for SDL in ruby?  
The only thing I can find is [Web page of ohai](http://www.kmc.gr.jp/~ohai/index.en.html),  
but that one doesn’t look all that reliable. Is there anyone with some  
experience with this binding? Is it reliable? And how about efficiency?

Thanks,

Wim

–  
Wim Vander S.  
Bachelor Computer Science, University Ghent

[http://nanoblog.ath.cx](http://nanoblog.ath.cx)  
My weblog, powered by Ruby and BSD licensed.

---

<div class="post-metadata">

**Author:** ![Wim\_Vander\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/13edae/32.png) [@Wim\_Vander\_S](https://www.ruby-forum.com/u/Wim_Vander_S)\
**Post date:** [December 24, 2006, 1:04am UTC](https://www.ruby-forum.com/t/ruby-and-sdl/80320/2 "2006-12-24T01:04:22Z")

</div>

On 12/23/06, Wim Vander S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi,
> 
> I was wondering if there was a decent binding for SDL in ruby?  
> The only thing I can find is [Web page of ohai](http://www.kmc.gr.jp/~ohai/index.en.html),  
> but that one doesn’t look all that reliable. Is there anyone with some  
> experience with this binding? Is it reliable? And how about efficiency?

[http://rubyforge.org/projects/rubysdl/](http://rubyforge.org/projects/rubysdl/)

-austin

---

<div class="post-metadata">

**Author:** ![Wim\_Vander\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/13edae/32.png) [@Wim\_Vander\_S](https://www.ruby-forum.com/u/Wim_Vander_S)\
**Post date:** [December 24, 2006, 2:40am UTC](https://www.ruby-forum.com/t/ruby-and-sdl/80320/3 "2006-12-24T02:40:34Z")

</div>

Wim Vander S. ha escrito:

> Hi,
> 
> I was wondering if there was a decent binding for SDL in ruby?  
> The only thing I can find is [http://www.kmc.gr.jp/~ohai/index.en.html](http://www.kmc.gr.jp/~ohai/index.en.html),  
> but that one doesn’t look all that reliable. Is there anyone with some  
> experience with this binding? Is it reliable? And how about efficiency?

Yes, it works fine (at least on unix boxes), with SDL1.2. It is as  
efficient as any scripting binding can be.  
The one on rubyforge, on the other hand, is more buggy and will take  
some hacking to get it compiled. Avoid it.

---

<div class="post-metadata">

**Author:** ![Wim\_Vander\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/13edae/32.png) [@Wim\_Vander\_S](https://www.ruby-forum.com/u/Wim_Vander_S)\
**Post date:** [December 24, 2006, 2:56am UTC](https://www.ruby-forum.com/t/ruby-and-sdl/80320/4 "2006-12-24T02:56:37Z")

</div>

On Sun, 24 Dec 2006 08:36:35 +0900  
Wim Vander S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> –  
> Wim Vander S.  
> Bachelor Computer Science, University Ghent
> 
> [http://nanoblog.ath.cx](http://nanoblog.ath.cx)  
> My weblog, powered by Ruby and BSD licensed.

AFAIK, as of right now there are 3 choices for Ruby and SDL:  
[http://www.kmc.gr.jp/~ohai/index.en.html](http://www.kmc.gr.jp/~ohai/index.en.html) - Ruby/SDL  
[http://rudl.sourceforge.net/](http://rudl.sourceforge.net/) - RUDL  
[http://rubygame.seul.org/](http://rubygame.seul.org/) - RubyGame

Both Ruby/SDL and RubyGame are still being updated, but I have not seen  
a release from RUDL in a while a consider it unusable (and poorly  
documented). I myself use Ruby/SDL, but that is only because when I  
began Rubygame did not exist. I believe Rubygame is much more  
“Ruby-esque” than Ruby/SDL and has slightly better documentation.  
Overall I’d say go for Rubygame, but Ruby/SDL is just as good.

[http://rubyforge.org/projects/rubysdl/](http://rubyforge.org/projects/rubysdl/) is the un-updated version of the  
Ruby/SDL link above.

---

<div class="post-metadata">

**Author:** ![Wim\_Vander\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/13edae/32.png) [@Wim\_Vander\_S](https://www.ruby-forum.com/u/Wim_Vander_S)\
**Post date:** [December 24, 2006, 1:30am UTC](https://www.ruby-forum.com/t/ruby-and-sdl/80320/5 "2006-12-24T01:30:26Z")

</div>

On 12/23/06, Austin Z. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ## -austin
> 
> Austin Z. \* removed\_email\_address@domain.invalid \* [http://www.halostatue.ca/](http://www.halostatue.ca/)  
> \* removed\_email\_address@domain.invalid \* [http://www.halostatue.ca/feed/](http://www.halostatue.ca/feed/)  
> \* removed\_email\_address@domain.invalid

RubySDL is a direct function translation into Ruby

RUDL ([http://rudl.sourceforge.net/](http://rudl.sourceforge.net/)) is a more Ruby-esque wrapper around  
SDL.

They are both very fuctional and stable last I checked.

Jason
