From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?UTF-8?Q?Linus_Bj=C3=B6rnstam?= Newsgroups: gmane.lisp.guile.user Subject: Re: Happy birthday, Guile! - grid printing Date: Mon, 17 Feb 2020 17:21:40 +0100 Message-ID: References: <874kvq1syo.fsf@gnu.org> <15bb182f-c2b0-4b4c-be7d-c29ba13d4b30@www.fastmail.com> <5c951787-8492-eda0-9d57-a18b5d98cbc4@posteo.de> Mime-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="15391"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.1.7-802-g7a41c81-fmstable-20200203v1 Cc: guile-user@gnu.org To: "Zelphir Kaltstahl" Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Mon Feb 17 17:22:19 2020 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j3jA2-0003rm-N0 for guile-user@m.gmane-mx.org; Mon, 17 Feb 2020 17:22:18 +0100 Original-Received: from localhost ([::1]:48174 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3jA1-0007fH-PV for guile-user@m.gmane-mx.org; Mon, 17 Feb 2020 11:22:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55613) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3j9q-0007bi-IT for guile-user@gnu.org; Mon, 17 Feb 2020 11:22:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j3j9p-0004Ur-Gt for guile-user@gnu.org; Mon, 17 Feb 2020 11:22:06 -0500 Original-Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:38135) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j3j9p-0004U0-0G for guile-user@gnu.org; Mon, 17 Feb 2020 11:22:05 -0500 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 62FC444F; Mon, 17 Feb 2020 11:22:02 -0500 (EST) Original-Received: from imap1 ([10.202.2.51]) by compute1.internal (MEProxy); Mon, 17 Feb 2020 11:22:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.se; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type:content-transfer-encoding; s=fm2; bh=D6K5n w1K3gCf6i3jWmjcM6OLd+Ry+jBiTFLRL4pcALE=; b=HI4u+2qmiVrxteEMExygF dD6zijurQhbTfppJF/3KPPJm88E7yXh/FUH0hf5up397cEJiE0h/qpYB12u3VvkR YsNOvTvejEhAr2hNoLE83tn6CVqMCrAf5dR10oUplcMEMabIGWU6wO/Mber0xSCg d71WL7q2PBr7bJd54LmvRRg1USsdVLKCCFTWaqq879Y+aX4kpSuO5SfmyJPiA9bS DuA311hY3UCl42zidY5B4Idppv2IBXoaY17xJbql5mliHWq/87HRnXOD+XYwxGRG 38KnZRHX0YlXj4UAuk3TfWVNkxK/oNP1j9Ooba7gM9qDgnrvKnFHKdRyQv8JMjmS Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=D6K5nw1K3gCf6i3jWmjcM6OLd+Ry+jBiTFLRL4pcA LE=; b=eQs1CfNZeg12xVP3CrshLB9bS0kwyssXfBN3e/8ej/wkbNYFfavXtyaN7 THfvfRuzZFolh2NxA+Rlop8I9H34XhhpMtbacDoW1udUrb8dpUWMp7CJwR1i//ml +62NPHQHjkuvjnXageulMjCPivb3YUevj33gTKAghJmvixJWd5FOMXg+SK26ZnCE /W8jR9t1MCEs3a+Ydh//Ec+qaeCIk4rH8vK2UJ31Hjgfuqj+glDiCb8pwKlec/cs Jc1rxIhx2r8bgL6luMtXPKlgXLYbgXJ8kl3KNnbeWEzb8e85v80hN34wL0JHBS8m ASDrhL7m+01sCa1PQ9ys6/G1wf2wg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrjeeigdekkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtgfesthhqredtreerjeenucfhrhhomhepnfhinhhu shgpuehjnphrnhhsthgrmhcuoehlihhnuhhsrdhinhhtvghrnhgvthesfhgrshhtmhgrih hlrdhsvgeqnecuffhomhgrihhnpehstghhvghmvghrshdrohhrghenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlihhnuhhsrdhinhhtvghrnh gvthesfhgrshhtmhgrihhlrdhsvg X-ME-Proxy: Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id 9E6F9C200A4; Mon, 17 Feb 2020 11:22:01 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: <5c951787-8492-eda0-9d57-a18b5d98cbc4@posteo.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 64.147.123.24 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:16202 Archived-At: SRFI 166/159 is like a Swiss army knife of formatting. (ice-9 format) on= steroids if you will, running through molasses (it is about 3x slower t= han format). It does columnar formatting, which with a bit of coercion could be made = to cover your library (from what I gather from the tests). It will proba= bly be slower though, since it uses call/cc to be able to handle streami= ng data. And it is user extensible which format strings never (?) are=20= It is probably my all time favourite SRFI, up there with irregex. Both b= y the same author, no less :) --=20 Linus Bj=C3=B6rnstam On Mon, 17 Feb 2020, at 15:58, Zelphir Kaltstahl wrote: > Hey Linus! >=20 > Huh, interesting! This does more than my little tool. I don't understa= nd > all of it right now, but perhaps it can be used to make grids too. >=20 > Thanks for the hint. I did not know of its existence! >=20 > On 2/17/20 9:01 AM, Linus Bj=C3=B6rnstam wrote: > > Hi Zelphir! > > > > You should check out SRFI 166 or 159. It has columnar printing built= in. I ported it to guile and one implementation is available in guix (u= nder a non-standard module name iirc). > > > > https://srfi.schemers.org/srfi-166/srfi-166.html#Columnar-Formatting= > > >