From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.devel Subject: Re: stack overflow Date: Thu, 14 Feb 2008 12:25:20 +0100 Message-ID: <87ejbfg4pr.fsf@gnu.org> References: <47B2A8DF.9070004@tammer.net> <87tzkd8bvz.fsf@gnu.org> <87ejbh8ben.fsf@gnu.org> <47B2D88F.1040505@tammer.net> <87ir0tvx6e.fsf@inria.fr> <87wsp83807.fsf@ossau.uklinux.net> <871w7fore8.fsf@gnu.org> <66e540fe0802140226k3cd96c46x286ac753bbb2b8b7@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1202988360 9858 80.91.229.12 (14 Feb 2008 11:26:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Feb 2008 11:26:00 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Feb 14 12:26:23 2008 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JPcEB-0005DA-Db for guile-devel@m.gmane.org; Thu, 14 Feb 2008 12:26:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JPcDh-0003D5-Hh for guile-devel@m.gmane.org; Thu, 14 Feb 2008 06:25:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JPcDe-0003D0-N5 for guile-devel@gnu.org; Thu, 14 Feb 2008 06:25:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JPcDc-0003CQ-7v for guile-devel@gnu.org; Thu, 14 Feb 2008 06:25:33 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JPcDb-0003CN-VL for guile-devel@gnu.org; Thu, 14 Feb 2008 06:25:32 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JPcDb-0004BF-EB for guile-devel@gnu.org; Thu, 14 Feb 2008 06:25:31 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JPcDW-0008OG-5u for guile-devel@gnu.org; Thu, 14 Feb 2008 11:25:26 +0000 Original-Received: from 193.50.110.102 ([193.50.110.102]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Feb 2008 11:25:26 +0000 Original-Received: from ludo by 193.50.110.102 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Feb 2008 11:25:26 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 27 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 193.50.110.102 X-Revolutionary-Date: 26 =?iso-8859-1?Q?Pluvi=F4se?= an 216 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEB1F5364 X-PGP-Key: http://www.laas.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 821D 815D 902A 7EAB 5CEE D120 7FBA 3D4F EB1F 5364 X-OS: i686-pc-linux-gnu User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:f08axQr+e8XEtKoyKdGOv+vOZDE= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:7005 Archived-At: Hi, "Mikael Djurfeldt" writes: > I think you should measure the effect on performance. Even if the hit > isn't dramatic, remember that many a little makes a mickle... Indeed... > Speaking as a user, I would prefer a solution where the evaluator > measures stack size the same way as currently (i.e. without the need > to do extra work at every return). It is possible to estimate the > average sizes of evaluator stack frames during startup and use this as > a conversion factor in the debug-options interface (scm_debug_opts) so > that the user setting is approximately consistent between platforms. Hmm, I don't see how we could reliably estimate this, and I'm afraid it would add non-determinism (e.g., estimate that varies with the phase of moon, dubious estimates, loads of users suddenly reporting stack overflows because Fedora Core now ships with a bleeding-edge compiler noone else uses, etc.). That said, I agree that an overhead-free solution similar to the current one is preferable. Thanks, Ludovic.