From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Omar Polo Newsgroups: gmane.emacs.devel Subject: Re: master 544db1e: Faster grep pattern for identifiers Date: Thu, 16 Sep 2021 09:28:24 +0200 Message-ID: <87pmt9q8ln.fsf@omarpolo.com> References: <83h7elbzo3.fsf@gnu.org> <7b0409e3-fc88-b34e-9365-25356bb85859@yandex.ru> <83bl4tbxyu.fsf@gnu.org> <12215e07-af4e-2db7-1869-16ac92feb806@yandex.ru> <8335q5bt9b.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39525"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.6.6; emacs 28.0.50 Cc: mattiase@acm.org, emacs-devel@gnu.org, Dmitry Gutov To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Sep 16 09:33:41 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mQlts-000A6E-AV for ged-emacs-devel@m.gmane-mx.org; Thu, 16 Sep 2021 09:33:40 +0200 Original-Received: from localhost ([::1]:38512 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQltq-0007S2-TG for ged-emacs-devel@m.gmane-mx.org; Thu, 16 Sep 2021 03:33:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34572) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQlsW-0006dN-Dq for emacs-devel@gnu.org; Thu, 16 Sep 2021 03:32:16 -0400 Original-Received: from mail.omarpolo.com ([144.91.116.244]:57316) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQlsT-0003HE-BB; Thu, 16 Sep 2021 03:32:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=omarpolo.com; s=20200327; t=1631777526; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=n0jU+iWSr/glyhvaDVDpeeaoyS8QxFxWu+H6CLe5LAk=; b=SZk7DptUTPYxI6yMgJsEjS1pfbaG86EfRmRVY3K7SCp13HdsTisu/SXiNRq+b5HOmb7mvk iPfWscrR2bOH0cjMu4MMznM0HkOP0qjOBwPZkEJHl7ijlSz+fJsEtsstETgAZfUwr3qZIW M97jJJVvZhNUlM8HkTSPJ+QVGYg6k0k= Original-Received: from localhost (host-79-50-237-28.retail.telecomitalia.it [79.50.237.28]) by mail.omarpolo.com (OpenSMTPD) with ESMTPSA id c946b382 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 16 Sep 2021 09:32:06 +0200 (CEST) Original-Received: from venera (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id bed95280; Thu, 16 Sep 2021 09:32:04 +0200 (CEST) In-reply-to: <8335q5bt9b.fsf@gnu.org> Received-SPF: pass client-ip=144.91.116.244; envelope-from=op@omarpolo.com; helo=mail.omarpolo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:274795 Archived-At: Eli Zaretskii writes: >> Cc: mattiase@acm.org, emacs-devel@gnu.org >> From: Dmitry Gutov >> Date: Wed, 15 Sep 2021 21:06:09 +0300 >>=20 >> On 15.09.2021 19:33, Eli Zaretskii wrote: >> > And what about the "alternative Grep's"? >>=20 >> The author of the commit uses one such Grep. >>=20 >> I also tested with ripgrep, to similar success. > > So they all have, miraculously, the same notion of what is a word, > regardless of the programming language and the script/character set? > Amazing. It seems to be available on OpenBSD' grep > -w The expression is searched for as a word (as if surrounded by > =E2=80=98[[:<:]]=E2=80=99 and =E2=80=98[[:>:]]=E2=80=99; see re_f= ormat(7)). it also seems to be available on NetBSD and FreeBSD judging from the manpages. don't know about other grep implementations and honestly haven't tested the code (yet). Cheers,