From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.bugs Subject: bug#15533: optimizing away noticeable effects Date: Sun, 06 Oct 2013 02:39:00 -0400 Message-ID: <871u3yaoor.fsf@netris.org> References: <87bo33cybo.fsf@Kagami.home> <87ioxba2el.fsf@netris.org> <87eh7za1ko.fsf@netris.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1381041616 20752 80.91.229.3 (6 Oct 2013 06:40:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Oct 2013 06:40:16 +0000 (UTC) Cc: 15533@debbugs.gnu.org To: Ian Price Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sun Oct 06 08:40:19 2013 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VSi0n-00051K-KW for guile-bugs@m.gmane.org; Sun, 06 Oct 2013 08:40:17 +0200 Original-Received: from localhost ([::1]:54034 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSi0n-0005tt-5w for guile-bugs@m.gmane.org; Sun, 06 Oct 2013 02:40:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58074) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSi0f-0005tV-Ck for bug-guile@gnu.org; Sun, 06 Oct 2013 02:40:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VSi0a-0006kI-3l for bug-guile@gnu.org; Sun, 06 Oct 2013 02:40:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48842) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSi0a-0006id-1U for bug-guile@gnu.org; Sun, 06 Oct 2013 02:40:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VSi0Y-0002bc-Os for bug-guile@gnu.org; Sun, 06 Oct 2013 02:40:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mark H Weaver Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sun, 06 Oct 2013 06:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15533 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 15533-submit@debbugs.gnu.org id=B15533.13810415789984 (code B ref 15533); Sun, 06 Oct 2013 06:40:02 +0000 Original-Received: (at 15533) by debbugs.gnu.org; 6 Oct 2013 06:39:38 +0000 Original-Received: from localhost ([127.0.0.1]:57135 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VSi09-0002ay-BE for submit@debbugs.gnu.org; Sun, 06 Oct 2013 02:39:37 -0400 Original-Received: from world.peace.net ([96.39.62.75]:60185) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VSi05-0002am-3l for 15533@debbugs.gnu.org; Sun, 06 Oct 2013 02:39:33 -0400 Original-Received: from 209-6-91-212.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com ([209.6.91.212] helo=yeeloong) by world.peace.net with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1VShzy-000256-Dl; Sun, 06 Oct 2013 02:39:26 -0400 In-Reply-To: <87eh7za1ko.fsf@netris.org> (Mark H. Weaver's message of "Sat, 05 Oct 2013 16:45:59 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:7295 Archived-At: Mark H Weaver writes: > Mark H Weaver writes: > >> Ian Price writes: >> >>> scheme@(guile-user)> ,optimize (define (foo f arg) >>> (let* ((l '()) >>> (m (if (pair? arg) >>> (begin >>> (set! l (cdr arg)) >>> (car arg)) >>> arg))) >>> (lambda () (apply f m l)))) >>> $14 = (define (foo f arg) >>> (let ((m (if (pair? arg) >>> (begin (begin (cdr arg) (if #f #f)) (car arg)) >>> arg))) >>> (lambda () (f m)))) >> >> I can confirm that the same thing happens on the stable-2.0 branch. > > Further investigation has revealed that 'peval' incorrectly removes the > 'l' from the call to 'apply'. stis pointed out that 2.0.5 does not have this bug. I'm currently doing a git bisect to determine which commit introduced the bug. Mark