in reply to Re^6: Some thoughts on Moose Attributes
in thread Some thoughts on Moose Attributes
A new storage specifier might work, but the best way I've seen to implement this is to go all of the way to a full-fledged metaobject system. At the point where you can separate method dispatch from the normal global lookup system plus inheritance fallback, you allow for the possibility of type specialization and optimization, perhaps through a finalization system or (my preference) a tracing optimizer at runtime.
From there you can get to autounboxing-style optimizations. (Remember that research into Self and Smalltalk and Strongtalk shows that 90% of all dynamic language programs are statically analyzable.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Some thoughts on Moose Attributes
by BrowserUk (Patriarch) on May 02, 2011 at 13:03 UTC | |
by chromatic (Archbishop) on May 02, 2011 at 18:03 UTC |