IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Method Dispatch in Smalltalk
Smaltalk (if I get it right) uses hashing on actual function signature. For most cases. My head is still spinning.

Strickly speaking, you are correct. However, most modern Smalltalks will optimize that lookup quite heavily. A Cincom developer once described to me the mechanism they use to make method lookups (on the average) faster than the typical implementation of C++ virtual method dispatch. Fascinating stuff!
--
-- Jim Weirich jweirich@one.net [link|http://w3.one.net/~jweirich|http://w3.one.net/~jweirich]
---------------------------------------------------------------------
"Beware of bugs in the above code; I have only proved it correct,
not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)
New Yep - pretty amazing stuff
It totally depends on the implementation and there are a lot of really clever tricks. It might not seem like it - but ST actually (sometimes) gets you closer to the metal in a lot of nifty ways than something like C. Its very freaky.

For instance, the opencroquet guys are moving a huge amount of rendering into graphics hardware despite the fact that you're calling it from Smalltalk with ST data structures.




"Packed like lemmings into shiny metal boxes.
Contestants in a suicidal race."
    - Synchronicity II - The Police
     OO Design in C - (Ovid) - (12)
         Hmm...If I were doing ObjectOrienteed in C - (Simon_Jester)
         Take a look at the source-code to Ruby - (ben_tilly)
         Lots of ways - (tuberculosis) - (8)
             That reminds me of another thread here. - (Another Scott) - (1)
                 Re: That reminds me of another thread here. - (neelk)
             Hold on here - (Arkadiy) - (5)
                 Not too slow - (tuberculosis) - (4)
                     C++ also uses lookups... - (ChrisR) - (3)
                         No - (Arkadiy) - (2)
                             Method Dispatch in Smalltalk - (JimWeirich) - (1)
                                 Yep - pretty amazing stuff - (tuberculosis)
         Free Book - (systems)

Unintended consequences.
60 ms