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 04:31:36 +0100 Sender: guile-devel-admin@gnu.org Message-ID: References: <87r8cyh5ec.fsf@raven.i.defaultvalue.org> <87heduh43b.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 1038972695 22661 80.91.224.249 (4 Dec 2002 03:31:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 4 Dec 2002 03:31:35 +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 18JQG4-0005t4-00 for ; Wed, 04 Dec 2002 04:31:32 +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 18JQGa-0004jB-00; Tue, 03 Dec 2002 22:32:04 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18JQGF-00043o-00 for guile-devel@gnu.org; Tue, 03 Dec 2002 22:31:43 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18JQGD-00043Y-00 for guile-devel@gnu.org; Tue, 03 Dec 2002 22:31:42 -0500 Original-Received: from kvast.blakulla.net ([213.212.20.77]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18JQGC-00043U-00 for guile-devel@gnu.org; Tue, 03 Dec 2002 22:31:41 -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 18JQG9-0003Eb-00; Wed, 04 Dec 2002 04:31:37 +0100 Original-Received: from mdj by linnaeus with local (Exim 3.36 #1 (Debian)) id 18JQG8-0002cs-00; Wed, 04 Dec 2002 04:31:36 +0100 Original-To: Rob Browning Original-Cc: djurfeldt@nada.kth.se In-Reply-To: <87heduh43b.fsf@raven.i.defaultvalue.org> (Rob Browning's message of "Tue, 03 Dec 2002 21:10:00 -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:1792 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:1792 The important goops optimizations are made based on type information. 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. In the off-line case the types would need to be supplied by flow-analysis in the compiler. This means that just as the optimizer needs to be folded into evaluation in the on-line case, the optimizer needs to be folded into compilation in the off-line case. That is, the compiler needs to supply the optimizer with something equivalent to what compile-method now gets from procedure-environment. Does this answer your questions? Best regards, Mikael _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel