From: "贾枭" Date: 2010-02-07T20:52:47+09:00 Subject: Re: Honest opinion needed... Limiting the use of dynamic features of ruby will lead to better performance since ruby 1.9 uses YARV. But something like multi-threading or resource-consuming will possibly bother you. Above all, you should think over that whether a fully-featured scripting language is really needed. I think building small domain-specific languages for different aspects in your game will reduce the complexity of development and will lead to better performance. 2010/2/7 Schala Zeal : > I've been trying to find a scripting language to integrate into a game > I'm developing in C and my choices are pretty much either Ruby or Lua. > > See, game developers tell me Lua is the way to go for performance and > flexibility, but the C embedding API feels so low-level that it's > intimidating. > > Ruby, on the other hand, has a much friendlier C embedding API and > doesn't look to need the developer jumping through hoops. However, some > of my friends develop their games on a program called RPGMaker and they > say the newer versions are awful mainly because of Ruby being the new > scripting language and on top of that, Ruby's been criticized for the > processing power. > > I looked into Ruby 1.9 to find it adopted a more efficient third-party > interpreter and that code runs 15% faster... or something. Reading about > that restored my hope that I could use Ruby with no reprecussions. On a > hunch, I checked the latest RPGMaker's release date which was Dec 27, > 2007. > > A lot of concerns plague me about 1.9. I suppose the most important > would be does 1.9 redeem Ruby's processing efficiency? Version 1.9 is > fairly new, so I'm guessing RPGMaker had to be using 1.8 or lower, which > is the old engine. > > The bottom line is would there be any negative impact if I were to embed > a Ruby 1.9.1 scripting engine in my game, in contrast to Lua? > -- > Posted via http://www.ruby-forum.com/. > >