Article View: muc.lists.netbsd.tech.userlevel
Article #10Re: CVS commit: othersrc/external/bsd/agcre
From: Valery Ushakov
Date: Thu, 15 Oct 2026 15:52
Date: Thu, 15 Oct 2026 15:52
35 lines
2795 bytes
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
Technical Details
Message-ID:
<atD2uasuDAbRrSDE@snips.stderr.spb.ru>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mailReferences:
<CAN5gJXr2yF_-NEexbYnOk2QLO9QOuS03nCP4yxkzK_wovzudGA@mail.gmail.com> <>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail From: Valery Ushakov <uwe@stderr.spb.ru> Newsgroups: muc.lists.netbsd.tech.userlevel Subject: Re: CVS commit: othersrc/external/bsd/agcre Date: Thu, 15 Oct 2026 18:52:25 +0300 Organization: Newsgate at muc.de e.V. Sender: tech-userlevel-owner@NetBSD.org Approved: news-admin@muc.de Distribution: world Message-ID: <atD2uasuDAbRrSDE@snips.stderr.spb.ru> References: <CAN5gJXr2yF_-NEexbYnOk2QLO9QOuS03nCP4yxkzK_wovzudGA@mail.gmail.com> <> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="49156"; mail-complaints-to="news-admin@muc.de" Content-Disposition: inline In-Reply-To: <CAN5gJXr2yF_-NEexbYnOk2QLO9QOuS03nCP4yxkzK_wovzudGA@mail.gmail.com> Precedence: bulk X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes