home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.dylan
- Path: sparky!uunet!usc!elroy.jpl.nasa.gov!ames!agate!stanford.edu!rock!concert!samba!sunSITE!ses
- From: ses@sunSITE.unc.edu (Simon Spero)
- Subject: Re: Fast generic function dispatching?
- Message-ID: <1993Jan13.021447.14221@samba.oit.unc.edu>
- Keywords: generic-functions dispatching
- Sender: usenet@samba.oit.unc.edu
- Nntp-Posting-Host: sunsite.unc.edu
- Organization: University of North Carolina, Chapel Hill
- References: <1993Jan12.210144.28757@nntpd.lkg.dec.com>
- Date: Wed, 13 Jan 1993 02:14:47 GMT
- Lines: 33
-
- In article <1993Jan12.210144.28757@nntpd.lkg.dec.com> mjg@ktbush.ogo.dec.com (Michael J. Grier) writes:
- >
- > Can someone either discuss, or post references to, techniques for
- >implementing fast generic function method dispatching? The techniques
- >implied by the Dylan manual sound like for every invocation of a generic
- >function you have to first filter through all the methods to find a list
- >of possible methods which match the parameters, and then sort them, keeping
- >the list around, in case a method decides it wants to invoke the next least
- >generic method.
-
- There are many techniques for reducing the cost of generic function dispatch;
- the main ones I can think of are: caching various combinations of arguments,
- type inference, and making several copies of a block of code, each specialised
- for a different type.
-
- I've got a few references on my desk: here at home I have
-
- TICLOS: An implementation of CLOS for the explorer family
- Patrick H Dussud, Lucid INC
- OOPSLA '89
-
- Fast Dispatch Mechanisms for Stock hardware
- John R Rose, Sun Microsystems
- OOPSLA '88
-
- The latter paper is a very good summary of issues and techniques
-
- Simon
- --
- Hackers Local 42- National Union of Computer Operatives, Chapel Hill section
- ------------------------------------------------------------------------------
- "Arise you users of compression, though the | WAIS/Z39.50 spoken here
- tarfiles hold you down" - The Internetworkale | DoD #612 | Tel: +1-919-962-9107
-