From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Why tree-sitter instead of Semantic? (was Re: CC Mode with font-lock-maximum-decoration 2) Date: Fri, 12 Aug 2022 15:50:51 +0300 Message-ID: <838rntocb8.fsf@gnu.org> References: <83o7wuva9o.fsf@gnu.org> <83mtceupbx.fsf@gnu.org> <83lerxvfnu.fsf@gnu.org> <838rnxvdcq.fsf@gnu.org> <83r11ptksn.fsf@gnu.org> <83a68dti6w.fsf@gnu.org> <874jykzvx9.fsf@yahoo.com> <83fsi4sttn.fsf@gnu.org> <838rnws5c7.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19409"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, acm@muc.de, emacs-devel@gnu.org, monnier@iro.umontreal.ca, casouri@gmail.com To: Lynn Winebarger Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Aug 12 14:51:39 2022 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 1oMU8Z-0004qK-5D for ged-emacs-devel@m.gmane-mx.org; Fri, 12 Aug 2022 14:51:39 +0200 Original-Received: from localhost ([::1]:44528 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oMU8Y-0005ub-01 for ged-emacs-devel@m.gmane-mx.org; Fri, 12 Aug 2022 08:51:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48026) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMU7s-0005F2-7t for emacs-devel@gnu.org; Fri, 12 Aug 2022 08:50:56 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:44376) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMU7r-00063z-4t; Fri, 12 Aug 2022 08:50:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=vtXVHV3gNwq8QqhzdcTINDQTdp61DKX+YRHnToh/c7s=; b=ZYx8HJ8fADlO fdOwrnpcDmi2Sw+vDmP5mUj0TJ8hh+xrLzm2PL4zVpiwv7IY3wBCfDKestTtxUZpcdfUuPiw4+FED kzWNDw/1G1hzFefNNQN9GxtjgjUsEt7pf+L3NVCGtz29p41mITVE6S/J99nCSZlwEFJpxuXmEKAWE DW6oAXhuyR1Lo9VsyS25L3QoUk4srzPYf51fL4V9gtTVUqURucZjx/1AJPyEIfdgfUByQQUPRJ4qF 15AEMwoBHybTb8YwP2IrcFHbCcqA5FZtrIjs4WrJ53U1OupjCr0phwbevUunpKVgxzMf4c9GLh9a1 cVSAShwIOPFGb3NJyi0lYA==; Original-Received: from [87.69.77.57] (port=2248 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMU7q-0003Aa-KK; Fri, 12 Aug 2022 08:50:54 -0400 In-Reply-To: (message from Lynn Winebarger on Fri, 12 Aug 2022 08:37:25 -0400) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:293384 Archived-At: > From: Lynn Winebarger > Date: Fri, 12 Aug 2022 08:37:25 -0400 > Cc: luangruo@yahoo.com, acm@muc.de, emacs-devel@gnu.org, > monnier@iro.umontreal.ca, Yuan Fu > > > I don't have this information. Maybe someone else does. But in > > general, it is a very small wonder that a parser written in optimized > > C is much faster than anything written in Emacs Lisp, given that Lisp > > is an interpreted language that has no special support for writing > > parsers. > > That can be cured over time, now that the bulk of the core of emacs > uses lexical scoping. I very much doubt that. ELisp code cannot match the speed of optimized C code. > That does require changes to the byte code VM, but it's doable. Then you are no longer talking about Emacs as we know it.