From: Na Na Date: 2012-12-24T23:01:11+09:00 Subject: Re: Ruby game server woes Thanks for your reply, it has been more food for thought. To answer your question: > Did you actually try to add a C extension? No, I have not yet. I have tried inline c, but only for something *very* basic. However, I have used c/c++ before, but it was years ago. So I'm familiar with pointers and needing to do memory management, and types, etc. So hopefully it will just be a case of re-familiarising myself with forgotten details. I have had a look through someone else's c extension to see what's involved, and I can see it's a lot of work to do that. But hopefully it's worth the extra hassle for the development time I've saved overall by using ruby for other parts (and there are indeed other things ruby has let me develop very quickly!). Is this why you write in ruby? Speed of development, and then c extensions when you need quicker computations? Are there issues with c extensions in terms of multiple platforms? Or is it a case that ruby c extensions typically will compile well for mac, linux, and windows without platform-specific code? Finally, if you know - is it possible to write a c extension that itself uses multiple threads to speed up computations if it's a task that can be done in parallel? Thanks for taking the time to reply. -- Posted via http://www.ruby-forum.com/.