From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: Re: cc-mode fontification feels random Date: Thu, 10 Jun 2021 23:56:35 +0200 Message-ID: <20210610215635.7722al3nhufvhx2t@Ergus> References: <62e438b5-d27f-1d3c-69c6-11fe29a76d74@dancol.org> <83fsxsdxhu.fsf@gnu.org> <83pmwudgw3.fsf@gnu.org> <20210610151647.qtt7pqbjhdtp6coe@Ergus> <87wnr191iw.fsf@telefonica.net> <20210610190622.7xhpi3umdmuiyiw5@Ergus> <834ke5bju6.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12829"; mail-complaints-to="usenet@ciao.gmane.io" Cc: ofv@wanadoo.es, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jun 10 23:57:24 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 1lrSfz-00038z-KU for ged-emacs-devel@m.gmane-mx.org; Thu, 10 Jun 2021 23:57:23 +0200 Original-Received: from localhost ([::1]:46588 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lrSfy-00010w-LN for ged-emacs-devel@m.gmane-mx.org; Thu, 10 Jun 2021 17:57:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43588) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lrSfT-0000F5-4F for emacs-devel@gnu.org; Thu, 10 Jun 2021 17:56:51 -0400 Original-Received: from sonic315-14.consmr.mail.bf2.yahoo.com ([74.6.134.124]:40494) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lrSfQ-0006nn-DS for emacs-devel@gnu.org; Thu, 10 Jun 2021 17:56:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1623362206; bh=pxXrebTssE1ju/Er8YueFIEmdO2f8Ca+cSIhszJ8WY0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=ar8nPJ1qUG+21GAeDB7p15imyG3SjQFa0b0rr0TxSuJsh1d5TrEL5ti8fWZDtjJvLlyrFLXwAnHaXFue31XG24biUSKGtgDqcuLjropzMy3v1uCpFe1mqk+7bO1RwhQ9lAB+7Q0Vf/tmngaFKrLtfm7C3dj6IxbEk1GVLQnOWIu8GzR0Pt263WE4N7uxznqSaBWdnfi3TzEMtOnJf/oMMOE55Rd9TyLsLaSDMIOq29t+N4eZQ38aqeiq6yxaWKt++Bip6+qiJHT8z3LmMKCVYKUhS/zIDg+5bfAqVAVeIryP1beMalVfhJF4CsiNkPE4s0YhP5jPtgANZnVmzyY4Ug== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1623362206; bh=z3t+8ZQkUzaYuXtfouWhE8LJFtk/0hAAVQxLhSZ3eDw=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=Cy40pzoH0uj6ULcCKbZr3xmj9/x3X/SRw3n0lAMthA3XmjH4+iFWREWA0+qET/j9zmIkKEntdv+23VNw1q11OG9i+SfhBV0KBunOZ7+Hpby5Sa1BZ3GklwN0gJBU51uKkypRrl/Z+PbdoxEccOITXwyODRwSRAVUchERetnr3zm4tcd9UWuVvydzj/gPaQ27Isd/d1vKRPijyvfwdiprhSrXyNmXIam1pYsjiMBoeFIkfbzi9x9jg96RrBpgI5Ad31htoVgxlrb/ARKZ1gbCeK+NgCdocednU+eSbeMGrnv6/e3ouLiN9TR3I51OzWAdklji31o1mBC38IRqJttmbw== X-YMail-OSG: hum1jPwVM1mWKJZQHjOg9tNq8vcWkBuhwF8Ni4Y7Lc89KsH74bgNnKYKEtfIDzr 9I1I13Ajm3d31Wj4m2AxRwHC8fM8JkdsLcvQ5y9Xjdnqf_77hVtitQPwRIhn95DKJ32Pa.FFSqJj 75_BZcNLSEnb5JmrS8LquDCqqwVCeW1tkHHtSSgApkXf6gfl71jrNIA54ha_YKmWPg31EU7uwozs Fr9ho5iTnzb.nclyohDy3ah80OsC3ZNCICY3e6grotfKKxJpdC19SDnL2R.EgcuBs5XOeXtI0Zao MW61GKAdQfcOCtSYHQ9qUAhCKVI7nCSdHmpRdbP55GmtdTA.lPD0qwB8K9aOnhwL__ky440FDMsx MuHAABbvIdsKOAhvsxxIiQON.VSAsQhCL4CYA6ibay4NrV4uaHuqpmY0hsjjr9lQPyLUX2L5H58d S5FKAhVGipZq3MWOdydXOKfFho4Ek5_glQqX.YzT9HcfMBZxd5i2wGFBxJq0yW7zZ3o26EAF.new qKLX_NM2.ZEGrgLv6lNOiOD1sURnFzzM0PY8pjndsKQ_i9xOEq7lJC3qWC1o80fWCaVERLuOyffk oanZdipnYN_ViD69H1UmhR04A3OarwMfVdywFFeszqrT6TFeB2fj53_CpjFDV5MuxMd5wyGd1kYJ gp7TsJwnN3aaMNFIcXjfHxpyJG76TF__4sdrXjgDqlF9M6gosPdPdfL2Ux.61eUqAAGitq1g.RCn H5tULWHhLJsbvBwkc3mF4MOWEGcdL8.rQxz9wFLiEmehWYOTB.cxxecVMWSBZonICUH682MJm5gP Kvh1JhC2BOiMCtP7ptifKWXK8mAmhC5N.043rN8jxY X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.bf2.yahoo.com with HTTP; Thu, 10 Jun 2021 21:56:46 +0000 Original-Received: by kubenode545.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 955ba3d4f639109a74d18d06e3fcd5bf; Thu, 10 Jun 2021 21:56:40 +0000 (UTC) Content-Disposition: inline In-Reply-To: <834ke5bju6.fsf@gnu.org> X-Mailer: WebService/1.1.18368 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Received-SPF: pass client-ip=74.6.134.124; envelope-from=spacibba@aol.com; helo=sonic315-14.consmr.mail.bf2.yahoo.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable 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:270675 Archived-At: On Thu, Jun 10, 2021 at 10:28:17PM +0300, Eli Zaretskii wrote: >> Date: Thu, 10 Jun 2021 21:06:22 +0200 >> From: Ergus >> Cc: emacs-devel@gnu.org >> >> >Before going this route, we need to check if native-comp is enough of an >> >improvement and, if it isn't, try to improve it. >> > >> > >> I work very extensively with jit compilers and similar and with >> different architectures (ARM, ePIC, Intel). > >Our native-compilation feature is not really JIT. Once a Lisp file >was native-compiled, it is loaded from a file and used without any JIT >step. > Yes, I know, but it relies on the libgccjit. Doing the compilation at once or dynamically will generate similar native code any way. In any case the optimizations it can generate are very limited due to the limited information about types, alignment, the complexity of data structures and lisp types are dynamic. Following the Andrea's blog he actually describes some of the ideas he has to optimize the compiler. But that's still very limited and will require a lot of work and probably some small modifications in the Elisp syntax to make it optimal... something that will require many years and a lot of discussions.