* [TUHS] Re: [COFF] Code/comment Ratios Style
[not found] ` <CAEoi9W64=aKkQ5E2w8oE-01GMFNWKVb-1JDQYtz2Mu759=VKuQ@mail.gmail.com>
@ 2025-07-21 19:40 ` Larry McVoy
0 siblings, 0 replies; only message in thread
From: Larry McVoy @ 2025-07-21 19:40 UTC (permalink / raw)
To: TUHS main list
Dan is spot on, almost, see below.
On Mon, Jul 21, 2025 at 02:37:04PM -0400, Dan Cross wrote:
> On Mon, Jul 21, 2025 at 1:32???PM Douglas McIlroy
> <douglas.mcilroy@dartmouth.edu> wrote:
> > Larry McVoy wrote
> > > Well, we had begin and end blocks. And other than that, the whole thing
> > > is a wad that is called per line. That was definitely awk inspired.
> >
> > The way I have used m4, a program is executed just once from top to bottom.
> > [snip]
>
> I do not believe Larry is referring (directly) to M4 with this
> comment, but rather, referring to the language he used for the example
> he posted earlier, at:
> http://mcvoy.com/lm/bkdocs/dspec-changes-json-v.txt
>
> That language is, if I understand correctly, an invention of Larry's,
> that drew inspiration from awk, and that he saw as an improvement over
> M4 for the purpose of making bitkeeper emit JSON.
It's a general purpose output language for stuff contained in BitKeeper.
:WHATEVER: digs the current graph nodes n->whatever.
The json dspec is an example of that language being told to emit JSON,
but you can write dspecs for anything.
Think git log --dspec-file=/path/to/dspec
and now you can have any output format you like.
I sort of mislead people when I said it was like awk, it sort of is,
but each awk line is a revision in the graph you are looking at.
So the dspec runs on each revsision.
--
---
Larry McVoy Retired to fishing http://www.mcvoy.com/lm/boat
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-07-21 19:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <aH1e77SSISXGTAdM@minnie.tuhs.org>
[not found] ` <CAKH6PiVpcvghXspg9mU+uiahHxMx6BkR4dXqO7MpD5QMqsZcFQ@mail.gmail.com>
[not found] ` <20250721020638.GA15357@mcvoy.com>
[not found] ` <20250721021843.GB15357@mcvoy.com>
[not found] ` <CAKH6PiUfocnfq3LY_qTaRsWdn3CKOej=sN=EA5rMWb4vjxum+A@mail.gmail.com>
[not found] ` <20250721132852.GD15357@mcvoy.com>
[not found] ` <CAKH6PiXq7-foGSoyWTt3nC3=9qiRUCXmei_A6m2niHq=QNOADg@mail.gmail.com>
[not found] ` <CAEoi9W64=aKkQ5E2w8oE-01GMFNWKVb-1JDQYtz2Mu759=VKuQ@mail.gmail.com>
2025-07-21 19:40 ` [TUHS] Re: [COFF] Code/comment Ratios Style Larry McVoy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).