From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Abhijeet More Newsgroups: gmane.lisp.guile.user Subject: Re: Possible Memory Leak with stream-for-each Date: Sat, 24 Jul 2010 12:32:59 -0400 Message-ID: References: <87iq44yi1q.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1279989193 7086 80.91.229.12 (24 Jul 2010 16:33:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 24 Jul 2010 16:33:13 +0000 (UTC) Cc: guile-user@gnu.org To: =?ISO-8859-1?Q?Ludovic_Court=E8s?= Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Jul 24 18:33:11 2010 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ochew-0002Em-SH for guile-user@m.gmane.org; Sat, 24 Jul 2010 18:33:11 +0200 Original-Received: from localhost ([127.0.0.1]:45403 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ochew-0005KP-A8 for guile-user@m.gmane.org; Sat, 24 Jul 2010 12:33:10 -0400 Original-Received: from [140.186.70.92] (port=47262 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ocheq-0005K3-BU for guile-user@gnu.org; Sat, 24 Jul 2010 12:33:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ocheo-0005fh-VI for guile-user@gnu.org; Sat, 24 Jul 2010 12:33:04 -0400 Original-Received: from mail-qy0-f169.google.com ([209.85.216.169]:51240) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ocheo-0005fT-RO; Sat, 24 Jul 2010 12:33:02 -0400 Original-Received: by qyk9 with SMTP id 9so1037379qyk.0 for ; Sat, 24 Jul 2010 09:33:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=+UytBYmtOTdwn3RZtdJjXxRajjNWSkfPAMr1sl4P0G0=; b=wf44CLi1KUKoJTdTxam0MEIvOO9cbBXv1qGlVi8dIC4O34O3of0wngI38TByTEDwPp to6FluN63bSmAySE4gKGOMkAYDgUetBa7ljiiiNcoMb4faFwZorQqZu6kTJZykPcuOV5 D7m4TBSmeu7CT3GmiQYjXc+OHXkcHsQZfa+VM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Bwp+zeZsDE948oQUYyhLUw5HAqlcac3MD+PeunvmjwaMLtCpabZ3fl/vVKhml2i1gE abriZGRPFCsYFVGGhiVvhZplq48HQb2+hXNGOoBwAweWKC0ep27ax9uMAfqZxiiFyVGU 4+3vX8YYpiGy5ZQT5P1p8iBjVvJEmMV/BUmIY= Original-Received: by 10.224.45.77 with SMTP id d13mr3984237qaf.39.1279989180136; Sat, 24 Jul 2010 09:33:00 -0700 (PDT) Original-Received: by 10.229.228.210 with HTTP; Sat, 24 Jul 2010 09:32:59 -0700 (PDT) In-Reply-To: <87iq44yi1q.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:8004 Archived-At: On Sat, Jul 24, 2010 at 12:13 PM, Ludovic Court=E8s wrote: > Hi! > > The leak you describe seems to be that depicted under =93Why the space > leak occurs=94 at . > > Am I right? I don't think so. The leak described in SRFI-45 is due to a naive implementation of stream-filter on SICP-like streams (odd or even). SRFI-45 describes a way to implement streams so that the leak does not occur with the naive implementation of stream-filter. The leak I'm referring to happens with *stream-for-each*. *stream-filter* is not involved in any way. I doubt if that is the problem I'm describing - especially since the same code doesn't cause a leak in PLT Scheme/Racket. Thanks Abhijeet