From: Travis D Warlick Jr Date: 2007-07-08T19:31:11+09:00 Subject: Re: CPU/Memory limiting TongKe Xue wrote: > I'm working on a massive simulation project (like worldforge). I need to > be able to allow users to script objects in the world. I am thinking of > ussing Ruby as my scripting language of choice. However: > > (1) I need to be able to limit the memory usage of the object. > (2) I need to be able to limit the CPU cycle usage of the object. Try using Process#setrlimit. That being said, and aside from the fact that I love Ruby -- I don't recommend it for this type of "massive" endeavor. Always try to choose the best language for your application, not simply "the best language" because there isn't one. As for what I would recommend: Not a scripting language. For massive projects, use a compiled language on the back-end and then you may integrate it with Ruby on the front-end. ************************************* * Travis D Warlick, Jr * Lead Developer * Operis Systems, LLC *************************************