From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Clinton Ebadi Newsgroups: gmane.lisp.guile.devel Subject: Re: [VM] Tail recursion and multiple values Date: Wed, 04 Mar 2009 17:11:30 -0500 Message-ID: <8763ipj5v1.fsf@unknownlamer.org> References: <871vtiiqma.fsf@gnu.org> <8763iuhb7k.fsf@gnu.org> <87y6vox0s9.fsf@gnu.org> <87y6vny4gr.fsf@gnu.org> <87ab825fxv.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1236204730 7710 80.91.229.12 (4 Mar 2009 22:12:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Mar 2009 22:12:10 +0000 (UTC) Cc: guile-devel@gnu.org To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Mar 04 23:13:26 2009 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LezL6-00032B-Ar for guile-devel@m.gmane.org; Wed, 04 Mar 2009 23:13:20 +0100 Original-Received: from localhost ([127.0.0.1]:44441 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LezJk-0001dd-CN for guile-devel@m.gmane.org; Wed, 04 Mar 2009 17:11:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LezJd-0001dG-Tk for guile-devel@gnu.org; Wed, 04 Mar 2009 17:11:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LezJc-0001cz-3M for guile-devel@gnu.org; Wed, 04 Mar 2009 17:11:48 -0500 Original-Received: from [199.232.76.173] (port=33566 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LezJb-0001cw-Tx for guile-devel@gnu.org; Wed, 04 Mar 2009 17:11:47 -0500 Original-Received: from deleuze.hcoop.net ([69.90.123.67]:54377) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LezJZ-0005g9-Pg; Wed, 04 Mar 2009 17:11:45 -0500 Original-Received: from cpe-024-211-230-216.nc.res.rr.com ([24.211.230.216] helo=rvannith) by deleuze.hcoop.net with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1LezJT-0001eU-Te; Wed, 04 Mar 2009 17:11:39 -0500 In-Reply-To: <87ab825fxv.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Wed, 04 Mar 2009 00:45:16 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:8220 Archived-At: ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Hello, > > Andy Wingo writes: > >> The compiler is almost to the point that it can replace the interpreter, >> semantically. What is needed is to read and compile toplevel definitions >> one at a time, so we can e.g. change the reader, or the other dynamic >> things that people expect. Then if that's the case, then we can just hit >> the user with the one-time cost, for the long-term benefit. >> >> This would also allow us to move closer to having a single codepath, >> which has its benefits, broader tail-recursion among them. > > Yes, that's a significant benefit. But I think we can only afford it > once the compiler is sufficiently fast. IMO Guile targets short-lived > programs (aka. "scripts") more than, say, Ikarus, which is why > "compilation" (be it actual compilation or bare memoization) time > matters. Usually the scripts are still mostly static on disk--you only have to compile automatically once per change to the source scheme file and so if the script is ever used more than once there should be benefits (mmap the .go and go!). --=20 ntk is currently using "telnet fyodor 25" to send email