Like to get the opinions of other Ruby experts on this. What
kind of potential trouble am I asking for by using this?
(Not that I'm a Ruby expert, but anyway...)
You'll run into a real slowdown of your application. AFAIK,
creating objects is one of the most expensive operations in any
OO language. Even when it's implemented in C, as is done with
Ruby.
Yeah, sure, go ahead, implement it in Ruby and slow it down by
a factor of three!... :}
Ouch. Sigh, any way I seem to slice it, AOP in pure Ruby sucks.
T.
···
On Mar 5, 3:39 pm, "Erik Veenstra" <erikv...@gmail.com> wrote:
> Like to get the opinions of other Ruby experts on this. What
> kind of potential trouble am I asking for by using this?
(Not that I'm a Ruby expert, but anyway...)
You'll run into a real slowdown of your application. AFAIK,
creating objects is one of the most expensive operations in any
OO language. Even when it's implemented in C, as is done with
Ruby.
Yeah, sure, go ahead, implement it in Ruby and slow it down by
a factor of three!... :}
OTOH, do you really want to AOP-ify all Ruby classes? Maybe you can
apply the advice to a limited subset of classes. The performance hit
might be acceptable in the end.
···
On Mar 6, 1:38 am, "Trans" <transf...@gmail.com> wrote:
Ouch. Sigh, any way I seem to slice it, AOP in pure Rubysucks.
On Mar 6, 6:10 pm, "Paolo Nusco Perrotta" <paolo.nusco.perro...@gmail.com> wrote:
On Mar 6, 1:38 am, "Trans" <transf...@gmail.com> wrote:
> Ouch. Sigh, any way I seem to slice it, AOP in pure Rubysucks.
OTOH, do you really want to AOP-ify all Ruby classes? Maybe you can
apply the advice to a limited subset of classes. The performance hit
might be acceptable in the end.