Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / Gosu with Ruby 1.9
- By DenisG Date 2009-02-01 20:27
Hello there! :D

Thanks for the marvellous work you have done with gosu, Julian! :)
Well okay, the question: does anyone have a gosu.so compiled that works on ruby 1.9.1 with threads? Can gosu do that at all?

Background:
I had to write a small simulation of magnetic fields and magnetoresistive sensors and I didn't feel like using Maple or Matlab or some other bloated crap, since they're way too slow and annoying to work with. So I wrote it in C. Simulations without GUI suck, so I added a small ruby/gosu GUI interacting with the simulation via pipes. It works perfectly on Linux, but not so much on Windows since threads with pipes don't really work too well on ruby <1.9 on Windows and requiring 'gosu' causes ruby to crash on ruby >=1.9. Misfortunate situation. :(
- By jlnr (dev) Date 2009-02-06 10:35
philomory is doing similar things here: http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?tid=43

My problem is that I've always used, as a developer and user, the One Click Ruby Installer, and that is still 1.8. Given that Ruby 1.9 contains RubyGems, there is probably no real need for a One-Click Installation anymore? Do you know if there is a One True 1.9 Installer that I can use to play around with it?
I'm even considering switching to 1.9 *only* if a dual system turns out not to work. 1.9 is just much better suited for gamedev.
- By philomory Date 2009-02-12 17:36
There *is* a one, true installer for Ruby 1.9 on Windows: ftp://ftp.ruby-lang.org/pub/ruby/binaries/mswin32/ruby-1.9.1-p0-i386-mswin32.zip

Note that I haven't actually tried this yet, but even if it doesn't work, it's still the one true installer linked from ruby-lang.org and marked 'recommended'.

Various linux distros may or may not have ruby 1.9 available through their package managers.

The situation for OS X is a little less clear-cut. Ruby-lang.org discusses installing via macports or fink, and then discusses installing from source, which is what I always do.

In the long-term, official Apple support for ruby 1.9 may very well come in the form of MacRuby being pre-installed with the OS... though unless they can work out binary compatibility with extensions built for YARV, they may well include a 'standard' 1.9 as well.
- By jlnr (dev) Date 2009-02-12 19:11
From what I read on the Wiki, it seems Gosu works without problems with Ruby 1.9 if built against the right headers/libs. I hope the same applies to Windows and OS X :) Thanks for the pointer to the official 1.9.1, will try that later.
- By DenisG Date 2009-02-13 17:11
Thanks for looking into it! :)
Up Topic Gosu / Gosu Exchange / Gosu with Ruby 1.9

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill