From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.tangents Subject: Re: Shrinking the C core Date: Thu, 14 Sep 2023 16:20:32 +0300 Message-ID: <83r0n0lwm7.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3136"; mail-complaints-to="usenet@ciao.gmane.io" Cc: arthur.miller@live.com, emacs-tangents@gnu.org To: Gerd =?utf-8?Q?M=C3=B6llmann?= Original-X-From: emacs-tangents-bounces+get-emacs-tangents=m.gmane-mx.org@gnu.org Thu Sep 14 15:21:12 2023 Return-path: Envelope-to: get-emacs-tangents@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 1qgmHP-0000a4-94 for get-emacs-tangents@m.gmane-mx.org; Thu, 14 Sep 2023 15:21:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgmH3-0006F1-M2; Thu, 14 Sep 2023 09:20:49 -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 1qgmH0-0006Ce-4H for emacs-tangents@gnu.org; Thu, 14 Sep 2023 09:20:46 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qgmGy-00019Y-5o; Thu, 14 Sep 2023 09:20:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=S765r/9DzJ0Wqqdzl46rRCTOoJtkQXHSpdA9PZ2v63U=; b=Ay8SO9iURp8uu3sS2rnI aCSBLOwUUmAewrLT68b20227+X0AZFuIWAO9JuD0IEJOiTuXdkTjxwxJZNtvo5yByIQVGxFHEwTRH FSCIxAjdh9i006zg83U5aSYOQZ5p/KzTQL+U+yrt3cAGGDBf4qeDVpyjY+8QYMJOtcufcAZOPpQZM rSaqv+W0nYIBcN/0hg1jPa7rYLEJMnaLn6FgnqrYkdQ3cXsirvk2gw9hI+aZ5U/lOXTJ5hV09JqWH SPX3GtdMZyOlu8A4dmW22a5W/HE1ye1hjZCNHWfxjtWLChTU/XdLv00DnIJnoiJCHiv8MjoLA7TRY u5w2+SXKEBJ90g==; In-Reply-To: (message from Gerd =?utf-8?Q?M?= =?utf-8?Q?=C3=B6llmann?= on Thu, 14 Sep 2023 15:03:00 +0200) X-BeenThere: emacs-tangents@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Emacs news and miscellaneous discussions outside the scope of other Emacs mailing lists List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-tangents-bounces+get-emacs-tangents=m.gmane-mx.org@gnu.org Original-Sender: emacs-tangents-bounces+get-emacs-tangents=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.tangents:1086 Archived-At: > From: Gerd Möllmann > Cc: emacs-tangents@gnu.org > Date: Thu, 14 Sep 2023 15:03:00 +0200 > > I think the biggest problem with uncooperative multi-threading in Emacs > is that Emacs has so much global state. As a consequence, it's unsafe > to let two threads use anything in the C code in parallel. Indeed, that's the main problem. Just adding threads to Lisp is easy. > Maybe one could think of using some Python-like GIL, but that's kind > of pointless, isn't it? We already have that with the Lisp threads that we have in Emacs.