From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alejandro Forero Cuervo Newsgroups: gmane.lisp.guile.user Subject: bug with call-with/cc and lambda? Date: Mon, 8 Apr 2002 14:11:16 -0500 Sender: guile-user-admin@gnu.org Message-ID: <20020408141116.A6050@bachue.com> References: <200204062333.g36NXwl21935@mr-ed.jpl.nasa.gov> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="NzB8fVQJ5HfG6fxh" X-Trace: main.gmane.org 1018293387 24339 127.0.0.1 (8 Apr 2002 19:16:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 8 Apr 2002 19:16:27 +0000 (UTC) Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16uect-0006KS-00 for ; Mon, 08 Apr 2002 21:16:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16uebb-0007bw-00; Mon, 08 Apr 2002 15:15:07 -0400 Original-Received: from cr216725843.cable.net.co ([216.72.58.43] helo=bachue.com) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16ueYe-0007S8-00 for ; Mon, 08 Apr 2002 15:12:05 -0400 Original-Received: by bachue.com (Postfix, from userid 500) id 1472E14B9C; Mon, 8 Apr 2002 14:11:17 -0500 (COT) Original-To: guile-user@gnu.org Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200204062333.g36NXwl21935@mr-ed.jpl.nasa.gov>; from mwette@grover.jpl.nasa.gov on Sat, Apr 06, 2002 at 03:33:58PM -0800 Errors-To: guile-user-admin@gnu.org X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.user:152 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:152 --NzB8fVQJ5HfG6fxh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hey. I've been playing with a few Scheme interpreters and I noticed the following issue in Guile. When I do (define (f x) (call-with-current-continuation f)) (call-with-current-continuation f) I get the expexted behaviour: Guile just hangs (starts to use a lot of processor power). However, when I do the following very similar construction, Guile hangs but also starts to consume a lot of memory, giving me the idea that something that could be tail-recursive somewhere isn't: (define (f x) (call-with-current-continuation (lambda (x) (f x)))) (call-with-current-continuation f) Shouldn't this use constant memory? Thanks. :) Alejo. http://bachue.com/alejo -- The mere formulation of a problem is far more essential than its solution. -- Albert Einstein. $0='!/sfldbi!yjoV0msfQ!sfiupob!utvK'x44;print map{("\e[7m \e[0m",chr ord (chop$0)-1)[$_].("\n")[++$i%77]}split//,unpack'B*',pack'H*',($F='F'x19). "F0F3E0607879CC1E0F0F339F3FF399C666733333CCF87F99E6133999999E67CFFCCF3". "219CC1CCC033E7E660198CCE4E66798303873CCE60F3387$F"#Don't you love Perl? --NzB8fVQJ5HfG6fxh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8setUkEv0SM2OU1kRAsPdAJ0Zfzq8ipsQ4LibpUx4z+HB0rIkyQCghJ1c +zP+1xuQFTx0TYpREjcONoo= =ffQS -----END PGP SIGNATURE----- --NzB8fVQJ5HfG6fxh-- _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user