From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.lisp.guile.bugs Subject: bug#17147: Scalability front and back... Date: Tue, 13 May 2014 15:03:17 +0200 Message-ID: <87vbt9u8yy.fsf@fencepost.gnu.org> References: <87k3ban107.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1399986406 18297 80.91.229.3 (13 May 2014 13:06:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 May 2014 13:06:46 +0000 (UTC) To: 17147@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Tue May 13 15:06:39 2014 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 1WkCPj-0000D2-UY for guile-bugs@m.gmane.org; Tue, 13 May 2014 15:06:36 +0200 Original-Received: from localhost ([::1]:44452 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkCPj-00074R-5s for guile-bugs@m.gmane.org; Tue, 13 May 2014 09:06:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49103) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkCNI-0003xQ-09 for bug-guile@gnu.org; Tue, 13 May 2014 09:04:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkCNG-0001nY-SZ for bug-guile@gnu.org; Tue, 13 May 2014 09:04:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44432) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkCNG-0001nU-Nc for bug-guile@gnu.org; Tue, 13 May 2014 09:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WkCNG-0003lL-Ba for bug-guile@gnu.org; Tue, 13 May 2014 09:04:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87k3ban107.fsf@fencepost.gnu.org> Resent-From: David Kastrup Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Tue, 13 May 2014 13:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17147 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 17147-submit@debbugs.gnu.org id=B17147.139998621014414 (code B ref 17147); Tue, 13 May 2014 13:04:02 +0000 Original-Received: (at 17147) by debbugs.gnu.org; 13 May 2014 13:03:30 +0000 Original-Received: from localhost ([127.0.0.1]:33549 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WkCMj-0003kP-PD for submit@debbugs.gnu.org; Tue, 13 May 2014 09:03:30 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:36554 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WkCMh-0003kF-A7 for 17147@debbugs.gnu.org; Tue, 13 May 2014 09:03:28 -0400 Original-Received: from localhost ([127.0.0.1]:43860 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkCMg-00038y-Sk for 17147@debbugs.gnu.org; Tue, 13 May 2014 09:03:27 -0400 Original-Received: by lola (Postfix, from userid 1000) id DED6DE11E0; Tue, 13 May 2014 15:03:17 +0200 (CEST) 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:7459 Archived-At: --=-=-= Content-Type: text/plain The following code continues exploding in Guile 2.0.9 even after fixing the VM exploding under the stock "reduce-right" and after chickening out on syntax-case et al for "and" and using a procedural macro instead. --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=zorpo.scm (use-modules (srfi srfi-1)) (define (reduce-right f ridentity lst) "`reduce-right' is a variant of `fold-right', where the first call to F is on two elements from LST, rather than one element and a given initial value. If LST is empty, RIDENTITY is returned. If LST has just one element then that's the return value." (reduce f ridentity (reverse lst))) (define-macro (and . rest) (reduce-right (lambda (a b) `(if ,a ,b #f)) #t rest)) (primitive-eval (cons 'and (make-list 10000 #f))) --=-=-= Content-Type: text/plain Now I get Backtrace: In ice-9/psyntax.scm: 1259: 19 [# #f (if #f (if #f # #f) #f) #f] 1259: 18 [# #f (if #f (if #f # #f) #f) #f] 1259: 17 [# #f (if #f (if #f # #f) #f) #f] 1259: 16 [# #f (if #f (if #f # #f) #f) #f] 1259: 15 [# #f (if #f (if #f # #f) #f) #f] 1259: 14 [# #f (if #f (if #f # #f) #f) #f] 1259: 13 [# #f (if #f (if #f # #f) #f) #f] 1259: 12 [# #f (if #f (if #f # #f) #f) #f] 1259: 11 [# #f (if #f (if #f # #f) #f) #f] 1259: 10 [# #f (if #f (if #f # #f) #f) #f] 1259: 9 [# #f (if #f (if #f # #f) #f) #f] 1259: 8 [# #f (if #f (if #f # #f) #f) #f] 1257: 7 [# #f (if #f (if #f # #f) #f) #f] 1186: 6 [syntax-type (if #f (if #f (if #f # ...) ...) ...) () ...] 579: 5 [syntax-type if () ((top)) #f #f (hygiene guile-user) #t] 293: 4 [get-global-definition-hook if (hygiene guile-user)] In ice-9/boot-9.scm: 2697: 3 [# # ...] 2512: 2 [nested-ref-module # (guile-user)] 2294: 1 [module-ref-submodule # guile-user] 1925: 0 [# #] ice-9/boot-9.scm:1925:2: In procedure #: ice-9/boot-9.scm:1925:2: Throw to key `vm-error' with args `(vm-run "VM: Stack overflow" ())'. Using guile --no-auto-compile on the same file, I just get Backtrace: In ice-9/psyntax.scm: 1259: 19 Aborted (core dumped) That's the stable version of GUILE included with Ubuntu 14.04. -- David Kastrup --=-=-=--