Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

If it's worth hacking on well, it's worth hacking on for money.


devel / comp.lang.lisp / Re: Print/format DSL library

SubjectAuthor
* Print/format DSL libraryStefan Monnier
`* Re: Print/format DSL librarySpiros Bousbouras
 +- Re: Print/format DSL libraryStefan Monnier
 `- Re: Print/format DSL libraryLawrence D'Oliveiro

1
Print/format DSL library

<jwv7cj9pu1z.fsf-monnier+comp.lang.lisp@gnu.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18005&group=comp.lang.lisp#18005

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: monnier@iro.umontreal.ca (Stefan Monnier)
Newsgroups: comp.lang.lisp
Subject: Print/format DSL library
Date: Mon, 12 Feb 2024 10:48:19 -0500
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <jwv7cj9pu1z.fsf-monnier+comp.lang.lisp@gnu.org>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="340a930e5811f4a16451a8ab23e8f287";
logging-data="1688974"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18GfClP21vulq8klBbxZNmdqbL9NszJ0dw="
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:XCMmRcEeNvlyEO/KXcPKMTG4yTE=
sha1:6riXvZc9Xu0d35yTn+RIHkNrA4o=
 by: Stefan Monnier - Mon, 12 Feb 2024 15:48 UTC

Hi,

I remember bumping into a library several years ago (must have been
Common Lisp or Schemem, IIRC) which provided a sexp-based DSL for the
job usually performed by the "format string" in things like C's `printf`
or Lisp's `format`. But I can't remember anything like the name of the
library or the name(s?) of its author(s?).

It also came with a nice introduction explaining the rationale for the
design and how it is just so much better than those standard approaches.

Does that ring a bell?

Stefan

Re: Print/format DSL library

<egdznZcnP3hoQ8Yp+@bongo-ra.co>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18006&group=comp.lang.lisp#18006

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!news.niel.me!pasdenom.info!paganini.bofh.team!not-for-mail
From: spibou@gmail.com (Spiros Bousbouras)
Newsgroups: comp.lang.lisp
Subject: Re: Print/format DSL library
Date: Mon, 12 Feb 2024 16:46:53 -0000 (UTC)
Organization: To protect and to server
Message-ID: <egdznZcnP3hoQ8Yp+@bongo-ra.co>
References: <jwv7cj9pu1z.fsf-monnier+comp.lang.lisp@gnu.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 12 Feb 2024 16:46:53 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="3945320"; posting-host="9H7U5kayiTdk7VIdYU44Rw.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
Cancel-Lock: sha256:N7IJ0wnqrUlB8iaJuF1AGFRCyiCYBbwO73Hx7YdRd7s=
X-Server-Commands: nowebcancel
X-Organisation: Weyland-Yutani
X-Notice: Filtered by postfilter v. 0.9.3
 by: Spiros Bousbouras - Mon, 12 Feb 2024 16:46 UTC

On Mon, 12 Feb 2024 10:48:19 -0500
Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> Hi,
>
> I remember bumping into a library several years ago (must have been
> Common Lisp or Schemem, IIRC) which provided a sexp-based DSL for the
> job usually performed by the "format string" in things like C's `printf`
> or Lisp's `format`. But I can't remember anything like the name of the
> library or the name(s?) of its author(s?).
>
> It also came with a nice introduction explaining the rationale for the
> design and how it is just so much better than those standard approaches.
>
> Does that ring a bell?

4 An Improved Formatted I/O Facility
from http://www.cs.yale.edu/homes/dvm/papers/ytdoc.pdf perhaps ?
Parent page is http://www.cs.yale.edu/homes/dvm/index.html .

Re: Print/format DSL library

<jwvv86tobn1.fsf-monnier+comp.lang.lisp@gnu.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18007&group=comp.lang.lisp#18007

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: monnier@iro.umontreal.ca (Stefan Monnier)
Newsgroups: comp.lang.lisp
Subject: Re: Print/format DSL library
Date: Mon, 12 Feb 2024 12:33:25 -0500
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <jwvv86tobn1.fsf-monnier+comp.lang.lisp@gnu.org>
References: <jwv7cj9pu1z.fsf-monnier+comp.lang.lisp@gnu.org>
<egdznZcnP3hoQ8Yp+@bongo-ra.co>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="340a930e5811f4a16451a8ab23e8f287";
logging-data="1732796"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/UEyuMlQIK9/3+WoOEPmW44DKvBFVL5aM="
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:+3PdOhNKLn+pJhlRbEOvs240DxU=
sha1:y9k8d9d5d/iYb4oP6hmR9CCptvs=
 by: Stefan Monnier - Mon, 12 Feb 2024 17:33 UTC

> 4 An Improved Formatted I/O Facility
> from http://www.cs.yale.edu/homes/dvm/papers/ytdoc.pdf perhaps ?
> Parent page is http://www.cs.yale.edu/homes/dvm/index.html .

Thanks. That's not the one I remember (or my memory is really ppor),
but it's going in a similar direction, indeed.
And it's a nice read :-)

Stefan

Re: Print/format DSL library

<uqe5d1$1nl53$8@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18009&group=comp.lang.lisp#18009

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!news.chmurka.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.lisp
Subject: Re: Print/format DSL library
Date: Mon, 12 Feb 2024 22:17:05 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <uqe5d1$1nl53$8@dont-email.me>
References: <jwv7cj9pu1z.fsf-monnier+comp.lang.lisp@gnu.org>
<egdznZcnP3hoQ8Yp+@bongo-ra.co>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 12 Feb 2024 22:17:05 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="4893208a1e1db25dfdb2200d963d48cb";
logging-data="1823907"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+rmhNn+fx2lY0zhJ9EvSkR"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:Y7NIdJ7jjm1Q/m0A+edRcJMsies=
 by: Lawrence D'Oliv - Mon, 12 Feb 2024 22:17 UTC

On Mon, 12 Feb 2024 16:46:53 -0000 (UTC), Spiros Bousbouras wrote:

> 4 An Improved Formatted I/O Facility
> from http://www.cs.yale.edu/homes/dvm/papers/ytdoc.pdf perhaps ?
> Parent page is http://www.cs.yale.edu/homes/dvm/index.html .

Unfortunately, that suffers from the same drawback as C++ I/O streams, in
that you cannot get a format string from localizable resources that can
reorder items to match the grammatical requirements of different
languages.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor