3 ms·
> but it seems to me that you can use mod_ruby just like mod_php. If two apps are using the same Ruby instance, then they are sharing String, Array, Integer,
by jamesbritt 19y ago
> but it seems to me that you can use mod_ruby just like mod_php.
If two apps are using the same Ruby instance, then they are sharing String, Array, Integer, etc. And ObjectSpace. So one app can alter any class (say, undefine or redefine to_s on something) and the other app will share those changes.
mod_ruby runs all apps in the same Ruby process.
If the Web sites are pretty basic and not using any metaprogramming magic, then maybe there will be no problem. If they are creating classes with the same name, but different behavior, then maybe not so good.
- Zak 19y agoThat could be just a bit problematic. PHP doesn't have Ruby's metaprogramming features, but it does have globals, classes and the like. How does it deal with this issue?