Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

You will be successful in your work.


devel / comp.lang.awk / Re: The AWK book’s 60-line version of Make

SubjectAuthor
* The AWK book’s 60-line version of MakeBen Hoyt
`* Re: The AWK book’s 60-line version of MakeAndrew Schorr
 `- Re: The AWK book’s 60-line version of MakeBen Hoyt

1
The AWK book’s 60-line version of Make

<c3b0ea57-9d28-4df3-9bf1-50f56f9c5cd9n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.awk
X-Received: by 2002:a05:620a:40c6:b0:76d:8cc1:559d with SMTP id g6-20020a05620a40c600b0076d8cc1559dmr217317qko.15.1694385855191;
Sun, 10 Sep 2023 15:44:15 -0700 (PDT)
X-Received: by 2002:a05:6a00:b85:b0:68b:dbad:7ae7 with SMTP id
g5-20020a056a000b8500b0068bdbad7ae7mr3308956pfj.6.1694385854569; Sun, 10 Sep
2023 15:44:14 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.awk
Date: Sun, 10 Sep 2023 15:44:13 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2404:4404:2784:700:5fc5:b892:6ff1:b2aa;
posting-account=CuGGfgoAAACvmU_uLakQwRjGoS9g7HzV
NNTP-Posting-Host: 2404:4404:2784:700:5fc5:b892:6ff1:b2aa
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c3b0ea57-9d28-4df3-9bf1-50f56f9c5cd9n@googlegroups.com>
Subject: The_AWK_book’s_60-line_version_of_Make
From: benhoyt@gmail.com (Ben Hoyt)
Injection-Date: Sun, 10 Sep 2023 22:44:15 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1496
 by: Ben Hoyt - Sun, 10 Sep 2023 22:44 UTC

For your interest, I just published an article about the minimal version of Make (written in a page of AWK) that's included in the book "The AWK Programming Language":

https://benhoyt.com/writings/awk-make/

It's a neat program, and in the article I describe how it works, as well as porting it to a Python version for comparison.

The Make program is included in the second edition of the book, which is coming out next month!

-Ben

Re: The AWK book’s 60-line version of Make

<c1f1b498-e37a-4ccd-a22c-ef49833e8687n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.awk
X-Received: by 2002:a05:6214:4411:b0:655:d3f1:763f with SMTP id oj17-20020a056214441100b00655d3f1763fmr175404qvb.13.1694448507881;
Mon, 11 Sep 2023 09:08:27 -0700 (PDT)
X-Received: by 2002:a17:902:ecd0:b0:1c3:523b:5578 with SMTP id
a16-20020a170902ecd000b001c3523b5578mr3985086plh.11.1694448507223; Mon, 11
Sep 2023 09:08:27 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.awk
Date: Mon, 11 Sep 2023 09:08:26 -0700 (PDT)
In-Reply-To: <c3b0ea57-9d28-4df3-9bf1-50f56f9c5cd9n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=38.76.0.51; posting-account=n5ws7AoAAADMJDAWfsygCPkNAonhHPfT
NNTP-Posting-Host: 38.76.0.51
References: <c3b0ea57-9d28-4df3-9bf1-50f56f9c5cd9n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c1f1b498-e37a-4ccd-a22c-ef49833e8687n@googlegroups.com>
Subject: Re:_The_AWK_book’s_60-line_version_of_Make
From: aschorr@telemetry-investments.com (Andrew Schorr)
Injection-Date: Mon, 11 Sep 2023 16:08:27 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Andrew Schorr - Mon, 11 Sep 2023 16:08 UTC

On Sunday, September 10, 2023 at 6:44:16 PM UTC-4, Ben Hoyt wrote:
> For your interest, I just published an article about the minimal version of Make (written in a page of AWK) that's included in the book "The AWK Programming Language":
>
> https://benhoyt.com/writings/awk-make/

Nice. Just FYI, the gawk filefuncs extension does include a stat() function that would enable you to
eliminate the ages function and age map just as in Python. See "man 3am filefuncs" or the manual:

https://www.gnu.org/software/gawk/manual/html_node/Extension-Sample-File-Functions.html

And of course gawk also has true multi-dimensional arrays, so that could also make things prettier
and more concise.

Regards,
Andy

Re: The AWK book’s 60-line version of Make

<b088cf34-5365-4f9a-9b27-7fe9f2b6a1cen@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.awk
X-Received: by 2002:a05:620a:3c8f:b0:76f:1614:5774 with SMTP id tp15-20020a05620a3c8f00b0076f16145774mr146465qkn.8.1694451573803;
Mon, 11 Sep 2023 09:59:33 -0700 (PDT)
X-Received: by 2002:a05:6a00:3490:b0:68f:d9fa:8585 with SMTP id
cp16-20020a056a00349000b0068fd9fa8585mr406160pfb.5.1694451573252; Mon, 11 Sep
2023 09:59:33 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.awk
Date: Mon, 11 Sep 2023 09:59:32 -0700 (PDT)
In-Reply-To: <c1f1b498-e37a-4ccd-a22c-ef49833e8687n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2404:4404:2784:700:7929:e534:8860:55f9;
posting-account=CuGGfgoAAACvmU_uLakQwRjGoS9g7HzV
NNTP-Posting-Host: 2404:4404:2784:700:7929:e534:8860:55f9
References: <c3b0ea57-9d28-4df3-9bf1-50f56f9c5cd9n@googlegroups.com> <c1f1b498-e37a-4ccd-a22c-ef49833e8687n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b088cf34-5365-4f9a-9b27-7fe9f2b6a1cen@googlegroups.com>
Subject: Re:_The_AWK_book’s_60-line_version_of_Make
From: benhoyt@gmail.com (Ben Hoyt)
Injection-Date: Mon, 11 Sep 2023 16:59:33 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1730
 by: Ben Hoyt - Mon, 11 Sep 2023 16:59 UTC

> Nice. Just FYI, the gawk filefuncs extension does include a stat() function that would enable you to
> eliminate the ages function and age map just as in Python. See "man 3am filefuncs" or the manual:

Ah, excellent, thanks for the link. Yeah, that's much more direct (and more efficient!) than shelling out to "stat" as I did in my modified AWK version. (Though for the book I'm pretty sure Kernighan et al are trying to stick to standard AWK features.)

-Ben

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor