From: Michael Granger Date: 2008-02-16T07:34:15+09:00 Subject: Re: How to put a Ruby website online without rails On Jan 7, 2008, at 7:16 AM, Michal Suchanek wrote: > I suggest you stay away from mod_ruby because it is not as clean as it > should. The 1.8 interpreter cannot be reset, and as Apache reuses > processes some stuff may leak from one script into another. This statement is completely fallacious. If you exercise just the minimum of programming discipline, you can easily write mod_ruby applications that run for months without any appreciable leakage. You certainly must take precautions against using global variables and poorly-namespaced classes, and mod_ruby is probably not suitable for running in an untrusted or shared environment without additional partitioning, but that doesn't describe the majority of situations. I've been running several mod_ruby applications for a year and a half where I work that require restarts only for new code or bugfixes. They've gotten over 3 million dynamic hits since they were first deployed, which isn't exactly as much of a stress-test as some other sites, but enough to demonstrate the error in your generalizations. > Using with > the multithreaded Apache also won't be a big win as multiple Ruby > threads cannot run concurrently. In addition to being specious, this means nothing in the context of your point. > You probably can't even create > multiple threads running ruby safely (as opposed to creating multiple > ruby threads inside one native thread of execution as is done in the > interpreter). Please, if you must post advice against using a particular piece of software, please provide concrete evidence of its unsuitability. Conjecture is mildly interesting in some situations, but when you impugn someone else's hard work you should at least have the courtesy to give examples, hard facts, or at the very least stick to points which you don't have to qualify with "probably". I'd be happy to provide further details if anyone's interested. I'm just getting tired of the FUD and hastily-posted conjecture about what constitutes appropriate technology for building web applications. -- Michael Granger Rubymage, Architect, Believer The FaerieMUD Consortium