Best multimethods/multiple dispatch implementations?

=?ISO-8859-1?Q?Christoffer_Lern=F6?= <lerno@dragonascendant.com>
Fri, 5 Sep 2008 13:20:37 -0700 (PDT)

          From comp.compilers

Related articles
Best multimethods/multiple dispatch implementations? lerno@dragonascendant.com (=?ISO-8859-1?Q?Christoffer_Lern=F6?=) (2008-09-05)
Re: Best multimethods/multiple dispatch implementations? FSet.SLB@gmail.com (Scott Burson) (2008-09-05)
Re: Best multimethods/multiple dispatch implementations? mailbox@dmitry-kazakov.de (Dmitry A. Kazakov) (2008-09-06)
Re: Best multimethods/multiple dispatch implementations? lerno@dragonascendant.com (=?ISO-8859-1?Q?Christoffer_Lern=F6?=) (2008-09-08)
Re: Best multimethods/multiple dispatch implementations? sh006d3592@blueyonder.co.uk (Steve Horne) (2008-09-09)
Re: Best multimethods/multiple dispatch implementations? lerno@dragonascendant.com (=?ISO-8859-1?Q?Christoffer_Lern=F6?=) (2008-09-15)
Re: Best multimethods/multiple dispatch implementations? gneuner2@comcast.net (George Neuner) (2008-09-15)
[15 later articles]
| List of all articles for this month |

From: =?ISO-8859-1?Q?Christoffer_Lern=F6?= <lerno@dragonascendant.com>
Newsgroups: comp.compilers
Date: Fri, 5 Sep 2008 13:20:37 -0700 (PDT)
Organization: Compilers Central
Keywords: OOP, question
Posted-Date: 05 Sep 2008 17:18:18 EDT

I have been looking a bit at multiple dispatch.


So far I found info about the Cecil/Vortex project (http://
www.cs.washington.edu/research/projects/cecil/www/Papers/dispatching.html),
a bit about MultiJava (http://multijava.sourceforge.net/pubs.shtml), a
paper about multi-methods for C++ (http://www.research.att.com/~bs/
multimethods.pdf) and something about compressed multi-method
dispatch tables (http://hal.inria.fr/inria-00073721/en/)


I know Dylan and CLOS also has implementations, but I heard CLOS'
might be pretty slow.


So, two questions:


1. What is state-of-art when it comes to multiple dispatch? From what
I read so far it sounds that something like Self's PICs could also
speed up multiple dispatch. Are there any implementations using
something like that?


2. Is it feasible to base an OO-language on multiple dispatch (I was
thinking left-to-right to resolve ambiguous calls like CLOS) so that
someObject.someMethod() becomes syntactic sugar for the function
someMethod(someObject). This is how a lot of dynamically typed OO
already are built, but without single dispatch on the remaining
arguments, which allows for some simplifications (and more efficient
dispatch?)




/Christoffer


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.