Re: Best multimethods/multiple dispatch implementations?

George Neuner <gneuner2@comcast.net>
Sun, 05 Oct 2008 00:33:09 -0400

          From comp.compilers

Related articles
[14 earlier articles]
Re: Best multimethods/multiple dispatch implementations? lerno@dragonascendant.com (=?ISO-8859-1?Q?Christoffer_Lern=F6?=) (2008-09-25)
Re: Best multimethods/multiple dispatch implementations? lerno@dragonascendant.com (=?ISO-8859-1?Q?Christoffer_Lern=F6?=) (2008-09-25)
Re: Best multimethods/multiple dispatch implementations? gneuner2@comcast.net (George Neuner) (2008-09-28)
Re: Best multimethods/multiple dispatch implementations? lerno@dragonascendant.com (=?ISO-8859-1?Q?Christoffer_Lern=F6?=) (2008-09-29)
Re: Best multimethods/multiple dispatch implementations? gneuner2@comcast.net (George Neuner) (2008-10-01)
Re: Best multimethods/multiple dispatch implementations? lerno@dragonascendant.com (=?ISO-8859-1?Q?Christoffer_Lern=F6?=) (2008-10-04)
Re: Best multimethods/multiple dispatch implementations? gneuner2@comcast.net (George Neuner) (2008-10-05)
Re: Best multimethods/multiple dispatch implementations? rajamukherji@gmail.com (Raja Mukherji) (2008-10-07)
| List of all articles for this month |

From: George Neuner <gneuner2@comcast.net>
Newsgroups: comp.compilers
Date: Sun, 05 Oct 2008 00:33:09 -0400
Organization: A noiseless patient Spider
References: 08-09-026 08-09-069 08-09-093 08-09-100 08-09-112 08-09-116 08-09-125 08-09-138 08-09-140 08-10-001 08-10-005
Keywords: OOP, performance
Posted-Date: 05 Oct 2008 13:32:15 EDT

On Sat, 4 Oct 2008 01:16:07 -0700 (PDT), Christoffer Lernv
<lerno@dragonascendant.com> wrote:


>I'd like to implement the core runtime in LLVM, C or C++ ...


>Right now I am a bit stuck, because it looks like the serious drawback
>to the tree-approach [to generic function dispatch] is that it effectively
>prevents any modification to function dispatch during runtime. You would
>not be able to add or remove functions for example.


Not without regenerating the code tree. LLVM supports JIT compilation
on the major supported architectures (though not on all of them IIRC).
And of course you can use the reflection APIs if you target JVM or
CLR. There are also embeddable C (though currently not C++) compilers
like libtcc and also embeddable assemblers.


George


Post a followup to this message

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