From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Rob Browning Newsgroups: gmane.lisp.guile.devel Subject: Re: new-model.text, please comment Date: Thu, 12 Sep 2002 18:28:30 -0500 Sender: guile-devel-admin@gnu.org Message-ID: <87elby23fl.fsf@raven.i.defaultvalue.org> References: <871y80tn9r.fsf@zagadka.ping.de> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1031873345 8810 127.0.0.1 (12 Sep 2002 23:29:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 12 Sep 2002 23:29:05 +0000 (UTC) Cc: 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 17pdOR-0002Ho-00 for ; Fri, 13 Sep 2002 01:29:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17pdOY-0007eS-00; Thu, 12 Sep 2002 19:29:10 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17pdNx-0007e1-00 for guile-devel@gnu.org; Thu, 12 Sep 2002 19:28:33 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17pdNv-0007dp-00 for guile-devel@gnu.org; Thu, 12 Sep 2002 19:28:33 -0400 Original-Received: from [66.64.4.228] (helo=defaultvalue.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17pdNv-0007dl-00 for guile-devel@gnu.org; Thu, 12 Sep 2002 19:28:31 -0400 Original-Received: from raven.i.defaultvalue.org (raven.i.defaultvalue.org [192.168.1.7]) by defaultvalue.org (Postfix) with ESMTP id EA65D17EA; Thu, 12 Sep 2002 18:28:30 -0500 (CDT) Original-Received: by raven.i.defaultvalue.org (Postfix, from userid 1000) id C03FC2BC1; Thu, 12 Sep 2002 18:28:30 -0500 (CDT) Original-To: Marius Vollmer In-Reply-To: <871y80tn9r.fsf@zagadka.ping.de> (Marius Vollmer's message of "11 Sep 2002 20:05:36 +0200") Original-Lines: 50 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) 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:1336 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:1336 Marius Vollmer writes: > I have written down my thoughts about an evaluation model that allows > an optimizing ahead-of-time compiler. It's in CVS: > > guile/workbook/compilation/new-model.text > > Please have a look and comment on it. I've read it through once, though I need to do so again, before commenting much, but one part wasn't completely clear to me: > The compiler is free to reuse top-level frames for several top-level > forms, even when executing a form will change the name/module mapping > used in the next. You must explicitely tell the compiler that it must > construct a new top-level frame. You can do this with the > > (:module-barrier) XXX - need better name > > compiler directive. The directive guarantees that code prior to it is > fully executed before top-level frames for forms after it are > constructed. The directive must be a top-level form. Could you provide a bit of elaboration here. More specifically, what does "fully executed" mean? (I tend to start thinking of "define-macro" when I hear that, though I guess any top-level form, macro or not could be relevant.) For example, does the above mean that given the following code: (foo ...) (do-something-that-changes-the-current-module!) (bar ...) the results would be undefined because the compiler is within its rights to presume that do-something *doesn't* change the current module unless a without a :module-barrier call like so: (foo ...) (do-something-that-changes-the-current-module!) (:module-barrier) (bar ...) This seems to be implied by the later examples of use-modules, etc., but I just wanted to make sure I understood what you were stating. -- Rob Browning rlb @defaultvalue.org, @linuxdevel.com, and @debian.org Previously @cs.utexas.edu GPG=1C58 8B2C FB5E 3F64 EA5C 64AE 78FE E5FE F0CB A0AD _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel