[Nitro] Interesting web framework article
transfire at gmail.com
transfire at gmail.com
Mon Mar 5 20:36:01 EST 2007
On Mar 5, 5:14 pm, Jos Backus <j... at catnook.com> wrote:
> Fwiw, I tried getting people insterested in the idea of being able to restrict
> class changes. So one could make it so that changes to String would only be
> visible within, say, Nitro. But it didn't go anywhere. Sadly, I think Python
> gets this right, as it makes scaling more difficult.
>
> Seehttp://www.ruby-forum.com/topic/94327#newfor the thread.
Whiel ther are wasy to do this sort of thing, it's not a built-in part
of Ruby so it's hacky. In fact Facets has a lib that comes damn close
to allowing this scoping control and I've meaning to finish extending
it to do so, BUT that's a far cry from something we'd want to use in
everyday production code. It remains to be seen how efficient and
reliable it would be. And of course there the other issue of the extra
syntax invloved. Ideally Ruby would have a way to limit an extension
to the current file. But that's not something one can code in pure
Ruby however.
Short of that I think the best we can do here is try to get
ActiveSupport and Facets as compatiable as reasonablly possible.
However ther may be one other option. I beleive _why developed
something recently that might allow dynamic process swapping. In other
words it's like having more than one ruby interpretor running at the
same time (hence with differnt extensions) and flipping between them
on the fly in the same program. At least, that's how it seemed to me.
I have no idea what's involved in oding it though.
T.
More information about the Nitro-general
mailing list