From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nala Ginrut Newsgroups: gmane.lisp.guile.bugs Subject: bug#13188: Whats' the proper senario of par-map? (Was Re: bug#13188: par-map causes VM stack overflow) Date: Thu, 28 Mar 2013 10:55:34 +0800 Organization: HFG Message-ID: <1364439334.2730.41.camel__23214.3164765604$1364439438$gmane$org@Renee-desktop.suse> References: <1355559152.27310.5.camel@Renee-desktop.suse> <87y5d8rclr.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1364439410 5088 80.91.229.3 (28 Mar 2013 02:56:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Mar 2013 02:56:50 +0000 (UTC) Cc: 13188-done@debbugs.gnu.org To: Ludovic =?UTF-8?Q?Court=C3=A8s?= , guile-devel@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Thu Mar 28 03:57:15 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 1UL31V-0000vR-TP for guile-bugs@m.gmane.org; Thu, 28 Mar 2013 03:57:06 +0100 Original-Received: from localhost ([::1]:34708 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UL317-0003pG-VJ for guile-bugs@m.gmane.org; Wed, 27 Mar 2013 22:56:41 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54872) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UL313-0003p0-KP for bug-guile@gnu.org; Wed, 27 Mar 2013 22:56:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UL311-0007mB-92 for bug-guile@gnu.org; Wed, 27 Mar 2013 22:56:37 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44509) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UL311-0007m7-64 for bug-guile@gnu.org; Wed, 27 Mar 2013 22:56:35 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UL33O-0005hs-6F for bug-guile@gnu.org; Wed, 27 Mar 2013 22:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nala Ginrut Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Thu, 28 Mar 2013 02:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13188 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 13188-done@debbugs.gnu.org id=D13188.136443949021867 (code D ref 13188); Thu, 28 Mar 2013 02:59:02 +0000 Original-Received: (at 13188-done) by debbugs.gnu.org; 28 Mar 2013 02:58:10 +0000 Original-Received: from localhost ([127.0.0.1]:48618 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UL32X-0005gd-9K for submit@debbugs.gnu.org; Wed, 27 Mar 2013 22:58:09 -0400 Original-Received: from mail-da0-f49.google.com ([209.85.210.49]:43344) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UL32V-0005gT-8c for 13188-done@debbugs.gnu.org; Wed, 27 Mar 2013 22:58:08 -0400 Original-Received: by mail-da0-f49.google.com with SMTP id t11so4271997daj.8 for <13188-done@debbugs.gnu.org>; Wed, 27 Mar 2013 19:55:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:subject:from:to:cc:date:in-reply-to :references:organization:content-type:x-mailer:mime-version :content-transfer-encoding; bh=/lysIWY6rOENsivLwZP/28gKKwNvOxpWt9visQk++y0=; b=Q7bfowKPsRvn4+grzcCx1iLcyT5yqba/IHH/rUmJdKNShto2OPbty+wWk0Btqxb0VI W7cc8c74UjpjcQa0GFAtmNni3mKYTNdQjUQgvKNRqaYIZoUo9mqOTmNArfCMF9fG2k1d M3ezeV930yDnT0VXbE7d0u1JKJna2tcATE1vI+TDUu8dUD0xunthNfJtJbsLKrmsUyFX 2fNxiP25qIaYFYxWTdITAof9yljTQgpG7NsgdN0fGTalnXH7ERk1nDz/LARqyLlymCU4 zbgI1LVLypKAzj/OORBNIs0XdsfM4SNh/TANRgmPrzJspdphLo+dT8RBJh/EO5LQiqA6 xnOA== X-Received: by 10.66.72.37 with SMTP id a5mr33169205pav.193.1364439338367; Wed, 27 Mar 2013 19:55:38 -0700 (PDT) Original-Received: from [147.2.147.112] ([61.14.130.226]) by mx.google.com with ESMTPS id hs8sm23615696pbc.27.2013.03.27.19.55.36 (version=SSLv3 cipher=RC4-SHA bits=128/128); Wed, 27 Mar 2013 19:55:37 -0700 (PDT) In-Reply-To: <87y5d8rclr.fsf@gnu.org> X-Mailer: Evolution 3.4.4 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.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:7018 Archived-At: On Wed, 2013-03-27 at 18:12 +0100, Ludovic Courtès wrote: > Hi, > > Nala Ginrut skribis: > > > scheme@(guile-user)> (par-map 1+ (iota 10000)) > > While executing meta-command: > > ERROR: Throw to key `vm-error' with args `(vm-run "VM: Stack > > overflow" ())'. > > Commit 8a177d3 fixes this. I added a paragraph in the documentation > that explains what happens: delimited continuations to the rescue once > again! ;-) > > Comments welcome. > oh~I love delimited continuations! But I'm still puzzled with the performance of par-map: --------------------cut------------------- scheme@(guile-user)> ,time (define a (map (lambda (x) (expt x 5)) (iota 10000))) ;; 0.008019s real time, 0.007979s run time. 0.000000s spent in GC. scheme@(guile-user)> ,time (define a (par-map (lambda (x) (expt x 5)) (iota 10000))) ;; 6.596471s real time, 6.579375s run time. 1.513880s spent in GC. --------------------end------------------- So my question is, what's the proper scenario to use par-map? > Ludo’.