From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Emacs design and architecture Date: Mon, 18 Sep 2023 13:46:58 +0300 Message-ID: <7bc7579d-748a-8676-66b7-cf657015260d@gutov.dev> References: <83h6nwlmt4.fsf@gnu.org> <456d12ac-ecf4-3de4-56bb-a2440580777f@gutov.dev> <83a5tokmsv.fsf@gnu.org> <83sf7fki5g.fsf@gnu.org> <43d642a8-d1b4-05ed-41e0-6e52d22df2d4@gutov.dev> <83edizjn0v.fsf@gnu.org> <0518f65b-1dd1-6923-8497-da4d3aeac631@gutov.dev> <1cff05f8-df80-b776-5175-dd27a6e59799@gutov.dev> <87wmwqiax9.fsf@whxvd.name> <87a5tmz319.fsf@yahoo.com> <699f1578-6174-fd89-de67-c226d7412235@gutov.dev> <87wmwpxpto.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35909"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: Immanuel Litzroth , Sebastian Miele , =?UTF-8?Q?Gerd_M=c3=b6llmann?= , Eli Zaretskii , yuri.v.khan@gmail.com, owinebar@gmail.com, rms@gnu.org, emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 18 12:48:10 2023 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 1qiBnV-00094a-P2 for ged-emacs-devel@m.gmane-mx.org; Mon, 18 Sep 2023 12:48:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qiBms-0000NO-SC; Mon, 18 Sep 2023 06:47:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qiBmY-00008n-6q for emacs-devel@gnu.org; Mon, 18 Sep 2023 06:47:14 -0400 Original-Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qiBmW-0006wh-94; Mon, 18 Sep 2023 06:47:09 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id C4F573200915; Mon, 18 Sep 2023 06:47:04 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 18 Sep 2023 06:47:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm3; t= 1695034024; x=1695120424; bh=jQsYwHUG2vIjgGgDbZMc9hb5/tsmw4m+v6J Ir/Y6RX4=; b=Py20yyLyX+It5kf98R6m3HJmGZSesVi1oUSCDY+llwBrl3bmGXq lIb1BBVUUVcPIZ7C8cEcvHmzEJOra8euLwFG5kZZQtp3HHFXXgBj3F0pOAXYaPeu Jl212K4fL3m8+z89B9hm2qq9V/vINX7T5uWCaOmdvzZkSaHCwcIjDhgIOmLY+99l Cg2bXBzomZEjTCYCFCWRa/ylbKaqz5qoWRt6Ziji3jXLLpllN+LEmmxFYS7d7Rwi iDMgwD3AbiknxQ8eAxM7hpC/fRQeFkx5+w6xdO8cyGrn6+9ZdwV/5RNg8HM2htnb 4sV+MburC2Idp2cH9W2mMEABMHPKPy7rRog== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1695034024; x=1695120424; bh=jQsYwHUG2vIjgGgDbZMc9hb5/tsmw4m+v6J Ir/Y6RX4=; b=iUZwq9Q+URk1ASNV9tObJMLjO22jCm1kau41x2VsCUl4+h+w+wI DCkH1vczlbR2akgjwRS7vSg9DPek7IqBIZVBMPeWij/GEPFuKno5I8nrASXUE7JU IqM9HtKxt1IOf6t51yEgQ8i7A+ezBiJ1fufSORYwIYJ6zgA4TFnkoePhpXJKwqqd d+QRFnBLxeXOo6GCyZ9R52113f7EDq9ZCilixXXdhiWmtwCnv7l19MaXgd/lgF2l Qr+00717SK8ZEq3HHNcG8fGbxzaf1ziw7nZOjQD4qjjcpR+kSXxdt07HUbA7XLdl zsVeZ7tSwxx233w8E1wZIz9P2YLCLDu+xSw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudejkedgfedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepiefgteevheevveffheeltdeukeeiieekueefgedugfefgefhudelgfefveel vdevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 18 Sep 2023 06:47:01 -0400 (EDT) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=64.147.123.24; envelope-from=dmitry@gutov.dev; helo=wout1-smtp.messagingengine.com X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 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, NICE_REPLY_A=-1.473, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-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.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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:310692 Archived-At: On 18/09/2023 03:11, Po Lu wrote: > Dmitry Gutov writes: > >> On 17/09/2023 09:43, Po Lu wrote: >>> Immanuel Litzroth writes: >>> >>>> I don't understand this remark. When you talk about "the language >>>> used >>>> to implement emacs" are you talking about C or elisp? >>> C, of course. >>> >>>> What is the LibreOffice extension language that is "almost the >>>> same"? >>>> Can you provide a link? >>> LibreOffice is written in C++. And it is programmable, by virtue of >>> its >>> nature as a computer program. >> Scriptable programs have their specific challenges, so it's helpful to >> look at architectures suited to that. > Given that we don't "script" the Emacs display process itself, there is > truly no distinction between a "scriptable" display engine and others. We do: just as others have noted, redisplay calls back into Lisp. Which allows us to implement jit-lock with language-specific logic written in Lisp. It has for a long time been the method by which we manage to do syntax highlighting with adequate performance even in large files.