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: Sat, 16 Sep 2023 20:30:28 +0300 Message-ID: References: <838r99mh40.fsf@gnu.org> <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> <87a5tmp5cv.fsf@thaodan.de> <8b144985-85f2-79e7-d932-2070336b13aa@gutov.dev> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8020"; 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: =?UTF-8?Q?Bj=c3=b6rn_Bidar?= , Po Lu , Sebastian Miele , Eli Zaretskii , yuri.v.khan@gmail.com, owinebar@gmail.com, rms@gnu.org, emacs-devel@gnu.org To: =?UTF-8?Q?Gerd_M=c3=b6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Sep 16 19:31:42 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 1qhZ8v-0001rJ-DM for ged-emacs-devel@m.gmane-mx.org; Sat, 16 Sep 2023 19:31:42 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qhZ83-0006Zs-4H; Sat, 16 Sep 2023 13:30:47 -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 1qhZ7u-0006XW-TA for emacs-devel@gnu.org; Sat, 16 Sep 2023 13:30:38 -0400 Original-Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qhZ7s-00043e-Ik; Sat, 16 Sep 2023 13:30:38 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 7CA313200893; Sat, 16 Sep 2023 13:30:33 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sat, 16 Sep 2023 13:30:34 -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= 1694885433; x=1694971833; bh=GiJQOzwpj2ULwsDSaf6x1WCFE5j+qfyIFvz Ishhie5Q=; b=VGqHDlENCJ3/wEZ0iyRLwu29GA9kfDbIM7lr0koI2QlI2+xuYK7 ClQC8TMmENOnbOheYOeeTpVUYAEcweq3akMECQHsr2hU1Ai2Ep5MXr8drhZ20+xQ 7i7yroNd6lgd2PqbCYVmGQGMc8Rv9B/hSm7EweRytpEJTT4bU9rajoJyXeGefIFv 8puPGTBBZ/nd8qO+NlictiYC8AaJO3C98icWu8AZ2+2MtXIJnM8G1lBv51b63Fnh jjdXZbRljfc7rsMnF+EWtprZ80w0mfZ1XWMQjxERA0RIOKc7UTLvWRdx+B0fgf0U Uny/ReL3rdPNp6d1Bp9GWnQagI/JE1UBytA== 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= 1694885433; x=1694971833; bh=GiJQOzwpj2ULwsDSaf6x1WCFE5j+qfyIFvz Ishhie5Q=; b=k/RXnkRP5wHBD0Gtbj/HnBRgorBQrBxBNLFGH2Dit0AI0Sf+vNk 0M5c9tO97NpLDzROXMP46xqfc6BM3qrXCndTp7VROBx/1Is07nZwLCyi8Y5Gu/2u EtwqMP5dnnMaWgjYWlpgw8DS1TS1QRIm/EN9wRoz//cp/Wx/uZ8zTMT2wvJA2zIg 3IjzgaS7XdXs4ELOX6NS4rYMDiVbthqjmPxPOg5AK3r83UZzHNaZkpJM05Zgvkn3 OCj+XfP0uQwsom5Tu6PQPhz59sLV+fTRqMuIb8IYjjtKN5V9UZ7doRb6ZP2I5H6V WpA2EiacQnR5dFjwgxTOVAcWg1VSmGcsSCA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudejgedguddufecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfevfhfhjggtgfesthekredttdefjeenucfhrhhomhepffhm ihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrg htthgvrhhnpefhffehleejffegffeugefhkeektdffgfehjedvgeejtedtudehueffgffg feejheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe gumhhithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 16 Sep 2023 13:30:30 -0400 (EDT) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=64.147.123.21; envelope-from=dmitry@gutov.dev; helo=wout5-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, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, 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:310637 Archived-At: On 16/09/2023 20:07, Gerd Möllmann wrote: > Dmitry Gutov writes: > >> On 16/09/2023 17:20, Björn Bidar wrote: >>> These more extensive modes require more advanced features similar as >>> when turning Emacs into a "word processor". >>> In my opinion Emacs being single threaded is the biggest hurdle in that, >>> gui lockup is the biggest no no in regular gui apps. >> JavaScript is single-threaded. >> >> They have a certain solution for parallelism in specific workloads, >> though (called Web Workers). > In Emacs, GC can run Lisp I'm told (finalizers), regexp matching can > definitely run Lisp (bug#58042), and the devil knows what else 🙁. I > personally have no idea how it would be possible to untangle this for a > multi-threaded Lisp. Each Web Worker (in JS) uses a separate address space, without sharing references, exchanging information through "messages" (which are copied, not shared). So this would be like parallel Lisp interpreters with separate obarrays, memory spaces, etc.