News for hackers. Stuff that matters.
Re:"DCI" in Ruby is completely broken by FooBarWidget on Wednesday January 02, 2013 @12:20PM (#4997752)
It's because MRI's implementation is simple. They haven't bothered caching per class because it takes more code. However JRuby caches per class.
Re:"DCI" in Ruby is completely broken by enebo on Wednesday January 02, 2013 @12:30PM (#4997826)
If you have to go and look up the method again (even ifcached) because the callsite cache is invalid then you already lost. Constantly invalidating the callsites is the real problem with this pattern.