Thread: Ruby for game programming

  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    76

    Ruby for game programming

    I searched a lot in the web that is Ruby good for game programming? ,found out
    it's very good for game programming.

    I know , here on cboard many people know Ruby, do they think same?

    How powerful game you can make in Ruby?

    Ruby is son of c++,so does it do the same job as c++ in game programming?

    best regards,
    Chakra

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    Whoa, major misconception here.
    1) Ruby is not the son of C++. Ruby is perhaps the grand-nephew of C++ or something like that.
    2) Ruby is not good for game programming in the sense that C++ is. C++ is a high-performance language used for the speed-intensive parts of applications - most stuff of games, in fact. Ruby, on the other hand, is a highly dynamic language whose main interpreter is very slow. If used in games at all, it would be as a scripting language for mission design and stuff like that, but Lua and Python are way more popular there.
    3) Do many people here on CBoard know Ruby? I didn't ever get this impression.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Stop posting stupid questions about whatever computer language you might have heard about.

    Java...Assembly...now Ruby. What next? Will it be Perl or Python?

    If you want to know more, search the web. If you cant conduct simple research on what a language is about or what it can do then give up, because you obviously don't have enough about you to cope with real problems.

  4. #4
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Chappell Hill, Texas
    Posts
    2,332
    Quote Originally Posted by Fordy View Post
    Stop posting stupid questions about whatever computer language you might have heard about.

    Java...Assembly...now Ruby. What next? Will it be Perl or Python?

    If you want to know more, search the web. If you cant conduct simple research on what a language is about or what it can do then give up, because you obviously don't have enough about you to cope with real problems.
    Wow. Who peed in your oatmeal?

    The guy asked a question and gets his head bitten off. Maybe, just maybe, he asked the question here because this is a forum made up of people that are highly responsive and generally knowledgeable about these types of things. And generally, a little more polite.
    Mainframe assembler programmer by trade. C coder when I can.

  5. #5
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    Quote Originally Posted by CornedBee View Post
    3) Do many people here on CBoard know Ruby? I didn't ever get this impression.
    Me neither. But I do know Ruby to an extent. The language actually grew on me for some reason.

    In any case, Ruby for game programming? As said, absolutely not!
    It's not just a matter of performance. It's also an issue of the expressiveness and coding styles of the language that makes it difficult to manage one's code after the project grows to become more complex. For instance, I'm not all that happy with the fact I cannot define class members outside the class definition. A class can grow to become too hard to manage very quickly in a game-like project.

    The fact function overriding is not supported tends also to complicate code and project management at the scale of a game where one of the secrets is to optimize the creation of new names (in my modest opinion, naturally).
    But some may argue, probably right, that's because I got accustomed to C++ way of doing things. But there's many other issues. Just gave two examples. (EDIT: The biggest problem being probably the fact it's a dynamically typed language. I really don't look forward to have to debug a game by running it)

    Sure some games can be made in Ruby. Sure some people can say because of that you can make games in Ruby. But sure, you can only make this many games on Ruby without your head exploding because it can't handle the flood of information the language forces you to retain about your project. And this goes as wel for any large-scale project in Ruby.
    Last edited by Mario F.; 09-20-2008 at 07:55 AM.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  6. #6
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    Wow. Who peed in your oatmeal?

    The guy asked a question and gets his head bitten off. Maybe, just maybe, he asked the question here because this is a forum made up of people that are highly responsive and generally knowledgeable about these types of things. And generally, a little more polite.
    Actually I tend to agree with Fordy. People asking vague wide reaching questions with no point that have obvious answers or could be searched on Google tends to get bothersome. We have made every attempt to help people get better responses by demonstrating good questions and bad ones and yet people still do not heed the advice. What are we to do?

    And usually on a C/C++ board you would ask questions relating to C/C++. Call me dumb or something but that's how I thought it worked. All of us talk about other things but finding one language or two or three and then spamming the board about it is not going to get you any good answers.
    Last edited by VirtualAce; 09-20-2008 at 07:59 AM.

  7. #7
    Registered User
    Join Date
    Sep 2008
    Posts
    76
    I ask question here to end up my curiosity.And it's good to ask questions rather than believe
    in random thoughts.

    Well,I ask questions here because I know c++ programmers are knowledgeable and patient
    as compared to others.Because of you guys deal with many bugs and pitfalls and your mind gets
    stronger and stronger dramatically.

    As I said , this site is best for me so I put my questions here.It's fascinating to ask questions here.I am feeling good since I am member here.

    The good thing about the site is you don't have to earn points or duke stars to get answers.

    Although we are from different programming background but we are still human and all human
    are connected to each other electromagnetically.

    my questions are not that stupids , by the way.

    thanks for your time.

    best regards,
    Chakra

  8. #8
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    >> Although we are from different programming background but we are still human and all human are connected to each other electromagnetically.

    That's the most cosmic thing I've heard all week.

    >> my questions are not that stupids , by the way.

    Maybe not stupid so much as asinine. Just try to be relevent and avoid open-ended questions and you should be fine.
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  9. #9
    Registered User
    Join Date
    Sep 2008
    Posts
    76
    thanks for the suggestion my lord

  10. #10
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    I tend to agree with Todd based on the following: If one asks general programming questions to us, as C/C++ programmers, (s)he is asserting that we are very knowledgeable about programming in general.

    On the otherhand, Fordy is right in the sense that it is annoying when someone asks a question that you may not have an immediate answer to, but google generates you one in .42 seconds. And in 10 seconds, you have read an article that looks like it may hold the answer. And within 45 seconds, you have regurgitated what you read into a reply.

  11. #11
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    Agreed! Most of the more experienced users of this website use it as a way to just help people. Some are here to post questions, others to improve their own knowledge by helping people, etc. You'll find very few people who are here just to talk to people. If a question can be answered easily by a search engine, it helps the forum accomplish it's purpose for such people much more efficiently. It's hard to help others or learn something new for yourself when the problem should be solved by Google in the first place.

    The board is much more effective when it's used when you need PEOPLE, to help you debug something you can't debug, when you really don't know where to begin at a search engine, or when you need to bounce ideas off of people.

    (you'll find similar statements in the board's rules and policies that you all accepted when you signed up)

  12. #12
    Registered User
    Join Date
    Jul 2008
    Posts
    71
    Quote Originally Posted by sean View Post
    . You'll find very few people who are here just to talk to people.
    (Akon 'lonely' song playing in the background)

  13. #13
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    I like to just talk to people here. That is kind of why I am here. A lot of my posts are riddled with references to people I have known on the boards for a while, and I make a lot of subtle jokes that reflect my personality.

    Its not always easy to be personal with someone you will only ever talk to once. Particularly when that person may not even read what you said in reply to their quesiton (since that is rather common here too).

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. The value of learning a new programming language
    By h3ro in forum General Discussions
    Replies: 21
    Last Post: 06-13-2009, 01:48 AM
  2. Ruby programming language
    By t3chn0n3rd in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 02-11-2008, 10:25 PM
  3. Ruby
    By sean in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 12-27-2005, 10:11 AM
  4. Ruby
    By MethodMan in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 10-11-2002, 04:51 PM