Conceptually, Duck Typing is not about performance. Duck typing refers to not typing objects.
A snip from wikipedia In computer science, duck typing is a term for dynamic typing typical of some programming languages, such as Smalltalk or Visual FoxPro, where a variable's value itself determines what the variable can do. Thus an object having all the methods described in an interface can be made to implement that interface dynamically at runtime, even if the object's class does not include the interface in its implements clause. It also implies that an object is interchangeable with any other object that implements the same interface, regardless of whether the objects have a related inheritance hierarchy. Have a read: http://en.wikipedia.org/wiki/Duck_Typing Doug is referring to removing the type checking from the Functions and Arguments. From my understanding, the type checking of complex types involves a lot of overhead. Thus, removing those types reduces the overhead. While often lumped in the Duck Typing Category, it is not part of the same debate. DW On 9/21/06, Chris Phillips <[EMAIL PROTECTED]> wrote:
The controversial "duck typing is faster" topic..... I can't wait to see posted results on this. Maybe Jared could even post what he was doing to lead him to that conclusion. Regards, Chris P. On 9/21/06, Doug Hughes <[EMAIL PROTECTED]> wrote: > > > > > > > Hey everyone, I thought I'd mention that there's a new branch of reactor at http://svn.reactorframework.com/reactor/branches/duckies/reactor . This is a duck-typed version of Reactor. I've been using it for a week or so without any obvious problems. Jared claims it's significantly faster than the main branch, though I've had PC issues and can't confirm that. > > > > Please, test this out and write back to the list to give me your impressions. > > > > Doug > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- > Reactor for ColdFusion Mailing List > [email protected] > Archives at: http://www.mail-archive.com/reactor%40doughughes.net/ > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Chris Phillips www.dealerpeak.com Senior Application Developer -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Reactor for ColdFusion Mailing List [email protected] Archives at: http://www.mail-archive.com/reactor%40doughughes.net/ -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- "Come to the edge, he said. They said: We are afraid. Come to the edge, he said. They came. He pushed them and they flew." Guillaume Apollinaire quotes -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Reactor for ColdFusion Mailing List [email protected] Archives at: http://www.mail-archive.com/reactor%40doughughes.net/ -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
