From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Mikael Djurfeldt Newsgroups: gmane.lisp.guile.devel Subject: Re: expansion, memoization, and evaluation... Date: Wed, 04 Dec 2002 08:07:00 +0100 Sender: guile-devel-admin@gnu.org Message-ID: References: <87r8cyh5ec.fsf@raven.i.defaultvalue.org> <87heduh43b.fsf@raven.i.defaultvalue.org> <8765uah1fe.fsf@raven.i.defaultvalue.org> Reply-To: djurfeldt@nada.kth.se NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1038985721 27400 80.91.224.249 (4 Dec 2002 07:08:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 4 Dec 2002 07:08:41 +0000 (UTC) Cc: djurfeldt@nada.kth.se, Dirk Herrmann , guile-devel@gnu.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18JTeB-00077l-00 for ; Wed, 04 Dec 2002 08:08:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18JTdb-0001rk-00; Wed, 04 Dec 2002 02:08:03 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18JTct-0001BK-00 for guile-devel@gnu.org; Wed, 04 Dec 2002 02:07:19 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18JTco-00016H-00 for guile-devel@gnu.org; Wed, 04 Dec 2002 02:07:18 -0500 Original-Received: from kvast.blakulla.net ([213.212.20.77]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18JTcn-00014r-00 for guile-devel@gnu.org; Wed, 04 Dec 2002 02:07:14 -0500 Original-Received: from barbara.blakulla.net ([213.212.21.238] helo=linnaeus) by kvast.blakulla.net with esmtp (Exim 3.36 #1 (Debian)) id 18JTcg-0003UG-00; Wed, 04 Dec 2002 08:07:06 +0100 Original-Received: from mdj by linnaeus with local (Exim 3.36 #1 (Debian)) id 18JTca-0002iJ-00; Wed, 04 Dec 2002 08:07:00 +0100 Original-To: Rob Browning Original-Cc: djurfeldt@nada.kth.se In-Reply-To: <8765uah1fe.fsf@raven.i.defaultvalue.org> (Rob Browning's message of "Tue, 03 Dec 2002 22:07:33 -0600") User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu) Errors-To: guile-devel-admin@gnu.org X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.devel:1797 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:1797 Rob Browning writes: > Mikael Djurfeldt writes: > >> In the on-line (interpreter) case the types are retrieved from the >> arguments and the rewrite rules depend on knowing the bindings of >> variables in the source. Yes, this is equivalent to what the current >> goops source does, although the only optimization which is done >> currently is supplying a "next-method" efficiently. > > You may have already said this, but if the method is called later with > "different types", then does it have to notice that and recompute? No, that copy of the compiled code will never be called with anything but the types it's compiled for. > Any chance some alternate optimization might be easier when you're > doing offline compilation? Unfortunately I don't know enough about > what goops is already doing to comment very concretely yet, but I > can imagine that you might be able to get similar performance with > an alternate approach when you can control the object code you're > emitting. Hmm... What do you mean by "control the object code"? Surely, there is nothing about what I've said about goops which prevents the optimizations in the "alternate approach" from being done? Maybe there's a misunderstanding here: Goops gives source back to the compiler. The compiler then can continue to do whatever optimizations it chooses to, and also has full control over the object code it's emitting. Best regards, Mikael _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel