From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Emacs design and architecture Date: Sun, 17 Sep 2023 07:50:36 +0800 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 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35389"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Dmitry Gutov , =?utf-8?Q?Bj=C3=B6rn?= Bidar , Sebastian Miele , Eli Zaretskii , yuri.v.khan@gmail.com, owinebar@gmail.com, rms@gnu.org, emacs-devel@gnu.org To: Gerd =?utf-8?Q?M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Sep 17 01:51:43 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 1qhf4g-00092c-VX for ged-emacs-devel@m.gmane-mx.org; Sun, 17 Sep 2023 01:51:43 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qhf42-0004xP-NB; Sat, 16 Sep 2023 19:51:02 -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 1qhf40-0004wv-R4 for emacs-devel@gnu.org; Sat, 16 Sep 2023 19:51:00 -0400 Original-Received: from sonic309-21.consmr.mail.ne1.yahoo.com ([66.163.184.147]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qhf3y-0001B7-4G for emacs-devel@gnu.org; Sat, 16 Sep 2023 19:51:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1694908256; bh=KNixY91RP4UGXNffkLgsT6b8zRVtCsKxvQWsXRkXu5I=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=NuQWw1NaAHhU5d3SamriK0nf0ODDgZvz8iCL6xb0a2foSKtRDXu4SBOAtf0lIfug0CKii07UwF2EwwZCSe4KdEmCvyeYZOl9XA3WaCRPx5JaLw2ytL6dqjor6TIqUF8v5rc3NGD2S5gEstNaM2wNCHg35r2a9ZDIxsf7GUq1IFTT8i4P5ET3iV00XH6S/NOkE0FMglJTPDTsZYwglzkDIClzk8LLqZerVVjEkQdSyuf5jvwehubgcpV/2h+rDxFTxiCjI77kISJsWzpyEuU0uWzFdN2cj4ymL7aWHLCBcTWUqF7XnEHSH6eVDZXoc52g3MGfKk6Gg48/RedD21UMPw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1694908256; bh=nmSIE9N1Kq93hXIW52k5JOBUToWjZXwwHP7MbgybpXY=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=bUV4PsLySCW2QrZL+WwY4Z4Sb1K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B.utgXvJlUVZo6_gSfYdnGGXzufA0JR7gFpA_q_LIRNkLrP6aIvWZR8nKd54wW2fadDcaiS_MNDl bz6aqrZnylP5D6DMCtQ.oskIddoragsqFRGakz5kiR X-Sonic-MF: X-Sonic-ID: 7817654a-2be3-454f-89b4-03189fb4976e Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ne1.yahoo.com with HTTP; Sat, 16 Sep 2023 23:50:56 +0000 Original-Received: by hermes--production-sg3-55c667b499-gg78d (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 9c04f69854259182bef3a07fa53636e1; Sat, 16 Sep 2023 23:50:53 +0000 (UTC) In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llmann?= =?utf-8?Q?=22's?= message of "Sat, 16 Sep 2023 19:07:56 +0200") X-Mailer: WebService/1.1.21797 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.184.147; envelope-from=luangruo@yahoo.com; helo=sonic309-21.consmr.mail.ne1.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.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:310644 Archived-At: Gerd M=C3=B6llmann writes: > Dmitry Gutov writes: > >> On 16/09/2023 17:20, Bj=C3=B6rn 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. Presumably, finalizers must become thread safe, and Lisp run during regexp matching will run within whichever thread calls string-match. I don't see any unsurmountable impediments here.