From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: Re: Enable truncation of exception output Date: Fri, 10 Mar 2017 10:17:24 +0100 Message-ID: <87mvcttrrv.fsf@pobox.com> References: <38205FE3-791F-4EE8-BD7F-07BC6C0511DE@bluewin.ch> <87r325tt66.fsf@pobox.com> <87innhbiu7.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1489137467 29855 195.159.176.226 (10 Mar 2017 09:17:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 10 Mar 2017 09:17:47 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: guile-devel@gnu.org To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Mar 10 10:17:43 2017 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cmGg8-0006xA-1r for guile-devel@m.gmane.org; Fri, 10 Mar 2017 10:17:40 +0100 Original-Received: from localhost ([::1]:38102 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmGgA-00013I-Tl for guile-devel@m.gmane.org; Fri, 10 Mar 2017 04:17:42 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36018) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmGg5-000131-SN for guile-devel@gnu.org; Fri, 10 Mar 2017 04:17:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cmGg1-0000v5-NN for guile-devel@gnu.org; Fri, 10 Mar 2017 04:17:37 -0500 Original-Received: from pb-sasl2.pobox.com ([64.147.108.67]:52386 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cmGg1-0000uz-IH; Fri, 10 Mar 2017 04:17:33 -0500 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id A9EED82848; Fri, 10 Mar 2017 04:17:32 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=sasl; bh=UeJx4b4Oe74J 8YcKwfj92ur2nO0=; b=FqpoDZ6eu6kgqTrMDiSmngHrMVlTebFwbhIDihitBAPT I68jFwWpoftFWdkyn99eMqjXA8sb81yC3zoMkZMyvjh/jlS7q7E/X/rEXiv0OBVK B0FV5A8HVkbnExgH9dqZ9TjiyUVYUvFPmuVO2SjLlkeQPRWoJrDFxI7mNb5+uLk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=sasl; b=wpPgCI JhR/1Xw6us2JP/eYlYUIicHE/SirXej7M3qXHRmKZt9oHPq6exbsM7Ex5y/6oA2f 7UPTXV+tOz7eUegBk7NN55XfCP8el4Q39Ar/iUt3BQZW5C577VyTw5PwuqdaFbnm WywpYzC2lndreV4HZnFjUtITlRp95GSZa29b0= Original-Received: from pb-sasl2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id A3C5E82847; Fri, 10 Mar 2017 04:17:32 -0500 (EST) Original-Received: from clucks (unknown [88.160.190.192]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-sasl2.pobox.com (Postfix) with ESMTPSA id B669F82846; Fri, 10 Mar 2017 04:17:31 -0500 (EST) In-Reply-To: <87innhbiu7.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Fri, 10 Mar 2017 10:07:44 +0100") X-Pobox-Relay-ID: 64083D78-0572-11E7-8066-85AB91A0D1B0-02397024!pb-sasl2.pobox.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 64.147.108.67 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.org gmane.lisp.guile.devel:19021 Archived-At: Hi :) On Fri 10 Mar 2017 10:07, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > I=E2=80=99d be in favor of something more conservative, notably because > =E2=80=98simple-format=E2=80=99 remains faster than =E2=80=98format=E2=80= =99: Ah indeed. simple-format does appear to be much faster. Tested using: (define-syntax-rule (do-times count exp) (let lp ((n 0)) (when (< n count= ) exp (lp (1+ n))))) ,time (string-length (call-with-output-string (lambda (p) (do-times #e1e4= (format p "foo"))))) and for simple-format too, and when adding a ~a. Clearly the answer here is to work on improving the performance of "format" :) > 1. Remove =E2=80=98set!=E2=80=99 in (ice-9 format), which has always be= en a bad idea. This is *not* conservative. We would certainly break users' code with this. I know there's -Wformat but still :) > 2. For exception printers, use some autoload magic, just like we do > for the debugger. This is hard for boot reasons -- you might get an exception before you are able to load modules. Of course this doesn't happen in the normal case but it would make Guile hacking a bit harder. Still, perhaps it is possible. Andy