[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Happy birthday, Guile! - grid printing
From: |
Linus Björnstam |
Subject: |
Re: Happy birthday, Guile! - grid printing |
Date: |
Mon, 17 Feb 2020 17:21:40 +0100 |
User-agent: |
Cyrus-JMAP/3.1.7-802-g7a41c81-fmstable-20200203v1 |
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 than
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 probably be
slower though, since it uses call/cc to be able to handle streaming data. And
it is user extensible which format strings never (?) are
It is probably my all time favourite SRFI, up there with irregex. Both by the
same author, no less :)
--
Linus Björnstam
On Mon, 17 Feb 2020, at 15:58, Zelphir Kaltstahl wrote:
> Hey Linus!
>
> Huh, interesting! This does more than my little tool. I don't understand
> all of it right now, but perhaps it can be used to make grids too.
>
> Thanks for the hint. I did not know of its existence!
>
> On 2/17/20 9:01 AM, Linus Björnstam 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 (under a
> > non-standard module name iirc).
> >
> > https://srfi.schemers.org/srfi-166/srfi-166.html#Columnar-Formatting
> >
>
- Re: Lenses in Guile?, (continued)
- Re: Happy birthday, Guile!, Mike Gran, 2020/02/16
- Re: Happy birthday, Guile!, Ricardo Wurmus, 2020/02/16
- Re: Happy birthday, Guile!, Jeremy Korwin-Zmijowski, 2020/02/16
- potluck; Re: Happy birthday, Guile!, Arne Babenhauserheide, 2020/02/16
- Re: Happy birthday, Guile! - grid printing, Zelphir Kaltstahl, 2020/02/16