Gabor Greif | 4 Jan 13:18
Picon

Chinese Dispatch for Multimethods

Hi Bjarne,

I have just noticed your paper "Open Multi-Methods for C++"
<http://www.research.att.com/~bs/multimethods.pdf>.

Therein you hint a possible implementation variant using the
chinese remainder theorem. Incidentally, I had this idea
more than 10 years ago and finally came around to put it
in words for the 2002 Dylan Hackers' Conference in Berlin.

There I held a short talk. Thereafter I wrote up
something that resembles a paper and checked it in the
Dylan repository. Here it is, you might be interested
in skimming it and comparing it with your approach:

<http://www.opendylan.org/cgi-bin/viewcvs.cgi/trunk/www/papers/ChineseDispatch.lout?rev=8014&view=markup>

Back then I was an active developer of the d2c Dylan compiler,
but only as a hobbyist. The paper has never been finished,
thus never published. It is in a very rough state (figures
that are taken from example documents, etc.), please excuse
me of sending you such a rubbish...

I can also make it to a pdf if you are interested.

All in all I am very happy that the multi-dispatch idea
is being actively pursued again, as I am thinking that
it solves one of the ugliest problems in programming. We
(the Dylan community) use multi-methods excessively
and it is a very natural way of associating behaviour
to a tuple of objects with different class membership.

Keep up the good work!

Cheers,

	Gabor
--

-- 
Gd-hackers mailing list
Gd-hackers <at> gwydiondylan.org
https://www.opendylan.org/mailman/listinfo/gd-hackers


Gmane