From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: 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 21:06:48 +0200 Message-ID: References: <83r11ptksn.fsf@gnu.org> <83a68dti6w.fsf@gnu.org> <874jykzvx9.fsf@yahoo.com> <83fsi4sttn.fsf@gnu.org> <838rnws5c7.fsf@gnu.org> <87wnbde9jo.fsf@disroot.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="q4XMC0i4sQcL+SFF" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21961"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Aug 12 21:07:51 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 1oMa0b-0005WY-Pb for ged-emacs-devel@m.gmane-mx.org; Fri, 12 Aug 2022 21:07:49 +0200 Original-Received: from localhost ([::1]:53924 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oMa0a-0001Zr-QG for ged-emacs-devel@m.gmane-mx.org; Fri, 12 Aug 2022 15:07:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34934) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMZzh-0000gd-I8 for emacs-devel@gnu.org; Fri, 12 Aug 2022 15:06:53 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:43106) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMZzf-0006ha-Ha for emacs-devel@gnu.org; Fri, 12 Aug 2022 15:06:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=SWRoH16Vv9f3w11lVnWchN1tdWAjCZ5I0IxbZkImfoI=; b=m4j8JgNOjyfh2//b5QbQaOz+mc u5yWHKJvxSpcRukzQJKe1ZzVlZ1R2EvD1G8CBZ8mPOB92P7+3mUP17UGJKvYTp2fgEZ+1RzhANaUb siY8apPkQfuEqdLYAXNaWzSFE7745C2KOQz9VODrqVSi8dcwwfUbIlqqsR2CE21EJ4+Rzn3evb0zk ETY8ynb+jfkMKvC2wS2qo6uHxyYq4lZ5RAF6pcEA6yNddPyDqPUHGHxBfqe10yKaCTQOwU0dg/KaE iuTUwWKQgIJBl0rGH94yCpg7G2iePyskfDS/3YAxKA8mGvm8z3lj2J52Qa2h0l7nw//dbhE0caPMf O4JhFu4A==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1oMZzc-0008C5-EE for emacs-devel@gnu.org; Fri, 12 Aug 2022 21:06:48 +0200 Content-Disposition: inline In-Reply-To: <87wnbde9jo.fsf@disroot.org> Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de 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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:293392 Archived-At: --q4XMC0i4sQcL+SFF Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 12, 2022 at 10:00:43PM +0600, Akib Azmain Turja wrote: [...] > It's hard for any compiled language to beat C code, and I believe it's > *impossible* for any interpreted language to do that. And if it somehow > does that, I would believe that the result is *hard-coded* in it. [...] I think this is too simplistic. There are known (small) cases where (compiled) Common Lisp beats C code, or where LuaJit [1] does (don't forget: a JIT knows things about your program a compiler can't). At the other end of the scale (the very complex), where you end up writing a whole garbage collector in your C app, it will be pretty hard to beat one of the modern GCs you'll find in Schemes or Javascripts. So the answer to this is most probably "it depends" :) Cheers [1] https://wingolog.org/archives/2014/09/02/high-performance-packet-filter= ing-with-pflua --=20 t --q4XMC0i4sQcL+SFF Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCYvakwgAKCRAFyCz1etHa RrXoAJoDbAP4L9E4kC50rVo/Nx8OJsIdlACfda+cSr21mFpwH6sreRgU0x81F7o= =Jseo -----END PGP SIGNATURE----- --q4XMC0i4sQcL+SFF--