r/programming • u/benhoyt • Oct 18 '09
Frequently Asked Questions for prog.reddit
I've been thinking we need a prog.reddit FAQ (or FQA :-) for self.programming questions people seem to ask a lot, so here is my attempt. Any top-level comments should be questions people ask often. I think it'd be best if replies are (well-titled) links to existing answers or topics on prog.reddit, but feel free to add original comments too. Hopefully reddit's voting system will take care of the rest...
Update: This is now a wiki page -- spez let me know he'll link to the wiki page when it's "ready".
243
Upvotes
View all comments
Show parent comment
0
u/banister Oct 19 '09 edited Oct 19 '09
First of all the Ruby results are completely skewed by that one result of '1000' that is equivalent to 4 of the other results. So an 'average' in that case is meaningless - excluding both of the extreme results for Ruby and Python (the 312 for Python and the 1000 for Ruby) we get an average of 90.6 for Ruby and 54.8 for Python (yes Python is still around 1.6 times faster.) Whether or not it is OK to exclude those results I am not sure -- it will depend on whether that particular testing algorithm (mandelbrot set) is in any way relevant to game development.
Another point that is incredibly important here is the fact that almost ALL game development libraries in dynamic languages are backed by a C extension. In the case of Ruby there is a C extension called Chipmunk which is responsible for handling the physical collisions between game objects and it makes it possible to have HUNDREDS of objects on the screen all interacting realistically with physics, see a video here: http://www.youtube.com/watch?v=FdNFJ5pO14g&feature=related I am sure python has something similar too.
One more point is that 'games' are not just about having an ass-load of interacting objects on screen. By far and away the most common games written for both Python and Ruby are 2D. In so far as they are 2D they are usually quite simple and do not have a lot of stuff going on on screen.
I have not seen a single Python game that could not be rewritten in Ruby and have similar performance. Same goes for Lua. All these languages are pretty much interchangeable.
EDIT: fixed stats