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.bugs Subject: bug#29669: repl-print - requet for iprovement Date: Thu, 05 Jul 2018 09:49:04 +0200 Message-ID: <87po02jf67.fsf@igalia.com> References: <20171211213615.7bca6fc8@capac> <87r2kmrkg2.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 1530776984 19632 195.159.176.226 (5 Jul 2018 07:49:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 5 Jul 2018 07:49:44 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) Cc: 29669@debbugs.gnu.org To: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Thu Jul 05 09:49:40 2018 Return-path: Envelope-to: guile-bugs@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 1faz1H-0004wJ-N3 for guile-bugs@m.gmane.org; Thu, 05 Jul 2018 09:49:40 +0200 Original-Received: from localhost ([::1]:50860 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1faz3O-0003vx-Fu for guile-bugs@m.gmane.org; Thu, 05 Jul 2018 03:51:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56442) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1faz1e-0002aP-VD for bug-guile@gnu.org; Thu, 05 Jul 2018 03:50:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1faz1e-00036B-29 for bug-guile@gnu.org; Thu, 05 Jul 2018 03:50:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39296) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1faz1d-00035f-Ut for bug-guile@gnu.org; Thu, 05 Jul 2018 03:50:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1faz1d-0008Fd-M8 for bug-guile@gnu.org; Thu, 05 Jul 2018 03:50:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andy Wingo Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Thu, 05 Jul 2018 07:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29669 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 29669-submit@debbugs.gnu.org id=B29669.153077696031660 (code B ref 29669); Thu, 05 Jul 2018 07:50:01 +0000 Original-Received: (at 29669) by debbugs.gnu.org; 5 Jul 2018 07:49:20 +0000 Original-Received: from localhost ([127.0.0.1]:47193 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1faz0x-0008Ea-Pw for submit@debbugs.gnu.org; Thu, 05 Jul 2018 03:49:20 -0400 Original-Received: from pb-sasl1.pobox.com ([64.147.108.66]:52033 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1faz0v-0008ER-5p for 29669@debbugs.gnu.org; Thu, 05 Jul 2018 03:49:18 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl1.pobox.com (Postfix) with ESMTP id 305B4D8C29; Thu, 5 Jul 2018 03:49:16 -0400 (EDT) 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=o5dVJH/LJk1a hO/tvUOjvA7Knuo=; b=tSk8RuLIk5/XkZZca6MPYHf1T0KnYYaNXBeFigrOvzP3 LFIEYB2FQmLxIjV43hNNiw2Pjj9nyWi4ZwIrLessbYSRyTExRb7baGmioA/U5c0k JkKD27NK+oHaAZaIUl6rQOPT9Nvl5B/HzkvmdOfUPVpgE0rnNadzFxQycsGTFPg= Original-Received: from pb-sasl1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl1.pobox.com (Postfix) with ESMTP id 15A44D8C25; Thu, 5 Jul 2018 03:49:16 -0400 (EDT) Original-Received: from sparrow (unknown [88.160.190.192]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-sasl1.pobox.com (Postfix) with ESMTPSA id 03207D8C24; Thu, 5 Jul 2018 03:49:14 -0400 (EDT) In-Reply-To: <87r2kmrkg2.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Sun, 01 Jul 2018 18:26:37 +0200") X-Pobox-Relay-ID: EA117C96-8027-11E8-8EA3-46F7D6707B88-02397024!pb-sasl1.pobox.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.lisp.guile.bugs:9088 Archived-At: On Sun 01 Jul 2018 18:26, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Hello, > > David Pirotte skribis: > >> From d920d22efe3e77d23004122e21cec420c402f531 Mon Sep 17 00:00:00 2001 >> From: David Pirotte >> Date: Mon, 11 Dec 2017 21:28:24 -0200 >> Subject: [PATCH] Updating repl-print to use truncated-print >> >> * module/system/repl/common.scm (repl-print): Use (truncated-print val), >> not (write val). With this update, repl-print becomes 'friendly' wrt >> large (huge) lists, arrays, srfi-4 butevoectors ... > > Note that it=E2=80=99s already possible to do this: > > scheme@(guile-user)> ,use (ice-9 pretty-print) > scheme@(guile-user)> ,o print (lambda (repl obj) (truncated-print obj) (n= ewline)) > scheme@(guile-user)> (iota 500) > $20 =3D (0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24= 25 26 27 # =E2=80=A6) > > So the question becomes: should we change the default? > > I have a slight preference for keeping the default as it is to avoid > surprises, but no strong opinion. > > Andy, Mark, others, WDYT? Hoo, I don't know. If we were to do this it should be controllable by REPL options, I think; we'd need the ability to go back and forth. But if we have the option I think it could make sense for it to be on by default, like what GDB does. Thing is, truncated-print does its job only OK, not great, so it's a hard sell to standardize on it. You probably do want multi-line prints sometimes... Andy