🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: muc.lists.netbsd.tech.userlevel
3 messages
3 total messages Started by Valery Ushakov Wed, 14 Oct 2026 23:36
Re: CVS commit: othersrc/external/bsd/agcre
#9
Author: Valery Ushakov
Date: Wed, 14 Oct 2026 23:36
20 lines
1659 bytes
On Wed, Oct 14, 2026 at 22:25:21 +0000, Alistair G. Crooks wrote:

> Module Name:	othersrc
> Committed By:	agc
> Date:		Wed Oct 14 22:25:21 UTC 2026
> 
> Removed Files:
> 	othersrc/external/bsd/agcre: Makefile README namespace.mk
[...]
> Log Message:
> Remove this old code, it's been superceded - see pkgsrc/devel/libagcre
> and pkgsrc/textproc/agcre

Shall we perhaps make it (the new code) our usr.bin/grep?

-uwe

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: CVS commit: othersrc/external/bsd/agcre
#11
Author: Alistair Crooks
Date: Thu, 15 Oct 2026 15:38
45 lines
5457 bytes
--0000000000009d207f065de2d83a
Content-Type: text/plain; charset="UTF-8"

On Wed, 14 Oct 2026 at 16:36, Valery Ushakov <uwe@stderr.spb.ru> wrote:

> On Wed, Oct 14, 2026 at 22:25:21 +0000, Alistair G. Crooks wrote:
>
> > Module Name:  othersrc
> > Committed By: agc
> > Date:         Wed Oct 14 22:25:21 UTC 2026
> >
> > Removed Files:
> >       othersrc/external/bsd/agcre: Makefile README namespace.mk
> [...]
> > Log Message:
> > Remove this old code, it's been superceded - see pkgsrc/devel/libagcre
> > and pkgsrc/textproc/agcre
>
> Shall we perhaps make it (the new code) our usr.bin/grep?
>
> I've always resisted this in the past, as the Perl escapes are just the
ones that I use myself, they're not the complete set, and might make this
whole thing "non standard", FSVO standard. It's also why I gave it an
egotistical fluffery name, rather than calling it some form of grep :)

But, at the same time, I see egrep hasn't changed in 9 years since I wrote
the README, and so, right now, I definitely wouldn't expose any regular
expressions to the internet without making sure they couldn't be abused. We
also don't have any wchar_t expressions in base, and I can imagine people
getting confused by some things in the library, like the virtual
instructions it can dump, or the execution tracing.

I might try a short experiment to use the new code in a build.sh run, and
see what happens - that's where previous attempts (with tre) have failed,
mainly due to the distinction between basic and extended regexps, IIRC.

Best,
Al

--0000000000009d207f065de2d83a--


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: CVS commit: othersrc/external/bsd/agcre
#10
Author: Valery Ushakov
Date: Thu, 15 Oct 2026 15:52
35 lines
2795 bytes
On Thu, Oct 15, 2026 at 08:38:47 -0700, Alistair Crooks wrote:

> On Wed, 14 Oct 2026 at 16:36, Valery Ushakov <uwe@stderr.spb.ru> wrote:
>
> > Shall we perhaps make it (the new code) our usr.bin/grep?
> 
> I've always resisted this in the past, as the Perl escapes are just the
> ones that I use myself, they're not the complete set, and might make this
> whole thing "non standard", FSVO standard. It's also why I gave it an
> egotistical fluffery name, rather than calling it some form of grep :)
> 
> But, at the same time, I see egrep hasn't changed in 9 years since I wrote
> the README, and so, right now, I definitely wouldn't expose any regular
> expressions to the internet without making sure they couldn't be abused. We
> also don't have any wchar_t expressions in base, and I can imagine people
> getting confused by some things in the library, like the virtual
> instructions it can dump, or the execution tracing.
> 
> I might try a short experiment to use the new code in a build.sh run, and
> see what happens - that's where previous attempts (with tre) have failed,
> mainly due to the distinction between basic and extended regexps, IIRC.

Much appreciated.  The grep situation is currently very sad.  Out gpl2
grep is _very_ old and it's utf-8 performance sucks massively.  A
modern amd64 machine might hide that, but even on a 1GHz g4 grep -r
/usr/include is excruciatingly slow.  Unfortunately, the fixes for
that are in the gpl3 version only.

Thanks.

-uwe

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads