Ruby as scripting language in Game Development

A place for Ogre users to discuss non-Ogre subjects with friends from the community.
Post Reply
sgt.dreamer
Gnoblar
Posts: 12
Joined: Mon Jun 12, 2006 6:16 pm

Ruby as scripting language in Game Development

Post by sgt.dreamer »

Because there are so few discussions about that out in the web, i want to start one here.

The question is:
1. What do you think about ruby in comparsion with other scripting languages?
2. What do you think about ruby in Game development as scripting language for engines?

/Discuss :)
User avatar
Kojack
OGRE Moderator
OGRE Moderator
Posts: 7157
Joined: Sun Jan 25, 2004 7:35 am
Location: Brisbane, Australia
x 538

Re: Ruby as scripting language in Game Development

Post by Kojack »

In general I've found Ruby to be a pretty cool language, although some of the language annoys me. I use it for xml stuff like automatic vcproj modifying.
But for games, I'd never use it. I've tried several times to find docs on embedding and couldn't find anything. I googled just now and found a guide, but the fact that I have to go to some external site for a guide rather than the actual ruby home page shows this really isn't it's intended use.

Then there's the speed, it's not exactly a fast language.

I'd choose Falcon over Ruby for games, it's just as powerful but is nearly as fast as Lua and is designed specifically as an easily embedded language.
Or for maximum speed I'd go for LuaJIT.

Some of the annoyances I mentioned before:
- Capitalisation has meaning. Give a variable a Capital letter at the start and it becomes a constant.
- Special symbols needed with names. All globals must start with $, instance variables must start with @ and class variables must start with @@.

Otherwise it's pretty good.
Post Reply