From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.devel Subject: Re: Shrinking the C core Date: Mon, 28 Aug 2023 16:39:46 +0200 Message-ID: References: <87pm37we7i.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8339"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Richard Stallman , emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Aug 28 18:12:30 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 1qaeqs-0001sm-9Y for ged-emacs-devel@m.gmane-mx.org; Mon, 28 Aug 2023 18:12:30 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qaepi-0008HS-3H; Mon, 28 Aug 2023 12:11:18 -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 1qadPH-0008A4-Vg for emacs-devel@gnu.org; Mon, 28 Aug 2023 10:39:55 -0400 Original-Received: from mail-db5eur02olkn2094.outbound.protection.outlook.com ([40.92.50.94] helo=EUR02-DB5-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qadPF-0005nE-Jw; Mon, 28 Aug 2023 10:39:55 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EcD58y8v9jm/+bPDaXEaCBwWQnNeV1oZT8bqB8kMopk0b1RScsFDfALbFI0Hzc8c0UjtMlHd7R7oKhpZ1lgCbt90KVpOzJbOjAr8Y8ddLVLLEJQrv5r/h89E7GDpaPPiFWilTvvjTd3TKX9Nljf9mkRACJv5aZtUFOtLCp4r2GpyNqnDbpSOjaOsgGUI5CtEW5W4FDVswF9xdLKPJyUuImnbY5ysN6Mv/HDfmSOOXft2OKzt5zbMwdY28zFYFsuxGIvjggrF4n1d+45K5oa9V6lx+VpOA8KKcujCnkOo6dVyqr6caOcfjw71QF/jiOkSY1oJhoam4zYtAd64Pq1rNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=cJE+PrC4kVXsX1n7kExWaknFtf79dodDclERSh9CbL4=; b=hAkTmt8dPNLHHsynMP+miwWfZghHQuPsxKzmlgm/MnYFL9q7aWy/BFgoOuxrh6FNuSGdXIKetzhKzKigwbgPNZw4jkMNCWJ+aTmlvMOP5attgOcx8vJNAVQFDycKVCrCTJ2Ei9HnLz3ixNjskGJfSQp0eYxkKvjs8z+FQm/rS1r4brrbQ4/PTmVcSeWXMSO5St+8PNuROc6OTUHPaXpFIrXpHuTrKyCZBZ4dsAGb4ZpGfKiyT22NNkIeE11awwPAcWTZssR0xnlx5Y8McVhgVS0SLaAQEUlwUWmQzv4GV6RuSOAyYRop6Goe5Gda7xrbY6AS3wYEL/BEi57p0yN9aw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cJE+PrC4kVXsX1n7kExWaknFtf79dodDclERSh9CbL4=; b=vEdXWGEqqb3rKVloLwtOIr241syU4Krd+QCEsA/zynL9n3kOoQN3spGjgdhtAf3PkBI4g0Zy+DbsPV2HnhZmwBvStQ+N8GpgKVsNDwTfghCyaoNZxn+BLB3IcsE2uDrq6yJRtoldvV9VOqNt9LVFcm+LvjzG+HqBX+eLKnaknUoyvyEejm5az8gLi83YQ3DqadiCKD9wAIHtAfym1oD1IfexQQt4h2RFLtSBh7P4Uq0FHvRxdApzvfgAkl0zx6yvqCBIAKjhr3VhhZ39FFVriOckRf36YRO7lfjJezANcFn7grfZCgI2bu+0bKQTfuYRSyvgPOfVGZm+6rpHIjlCmw== Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) by AM0PR09MB4227.eurprd09.prod.outlook.com (2603:10a6:208:193::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.24; Mon, 28 Aug 2023 14:39:47 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::df56:b1b1:64b1:6122]) by AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::df56:b1b1:64b1:6122%7]) with mapi id 15.20.6699.034; Mon, 28 Aug 2023 14:39:47 +0000 In-Reply-To: <87pm37we7i.fsf@yahoo.com> (Po Lu's message of "Mon, 28 Aug 2023 20:20:33 +0800") X-TMN: [TuPQZBwe+w8LPZqe8+JwM51LVjtsNKklAyQmbDbMANw=] X-ClientProxiedBy: BE1P281CA0338.DEUP281.PROD.OUTLOOK.COM (2603:10a6:b10:7d::17) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <87fs43mdsd.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR09MB4977:EE_|AM0PR09MB4227:EE_ X-MS-Office365-Filtering-Correlation-Id: bdf0d079-699f-4a47-c904-08dba7d4a0a5 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qjRv301FhLo3iVEPkhHfj4vPvcAa4NpYfnKn3KaunScgXoB2GWAv5rdi/4Jrf7MAC9LOJ+D/KKb7t12vl3Ddo9Qcjbv+/zZDEp+fUSmwS/dSuJOpz6S8XvgPyJk5O/3pEp7aFdx5Gq6Z3CuBwcaUYlkdfLI89uNOah8WpWSBA56wsL0yFA3PxKUJaq1SFjXaEwP7NyKZDu+wCig2xKsY/SCSMzePDDJtEAklVljRsasQ7gcx2NrOJ7XYzdHEKe6fZaU8ypylDuKfsteiL4lOGGyIU1JEa0uhrNrwp2lAQ4gsVMjWqmV6q5yV4ihAvV4o7aJL4cVumTuMh/s9ebBfVNWnEtAWvcam2qHVpiCv3FGzmEj27OhZ8B+Agw62Wfj7Z8h148rDUqPBcMt2WpEtlpT02ng7aXK4qJ9WHpe96/JBrS67cO3wpDSr1zm0yNcJ0mddv7vrcL7TyZgwRuUJgQclX4IYFTLzLoidXZYWCnxkKHRMEu/QOgE7cjpA5gmY1M8PxFdqTq1zVURvORgsRTquE6kuI+5ueVeI6GqMjbHLGGICot34Ke92gShPcS+a X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?OQX8SF1ZyLTxx3Zz/XirKP/Yt6sXmfrrV4d6UwcBzfp1TBgCGk/bzR6CpW9D?= =?us-ascii?Q?nt1XO2GSrWdT1si84UR5FmzISfqjoSlwsuhhrkwr++OrY/rjkR5xENROjKn0?= =?us-ascii?Q?bewn3ETqRn8xNuYeOPJECt+XZey53Gs6LK17QvoZeysV9Xvi0DuPCG3MsSOt?= =?us-ascii?Q?FcbHVgEKXSU9oUkpnxjyytkZEMBSWnQWPT462WBOLGCn6qfLet4AJU03ERas?= =?us-ascii?Q?Y/8IZTlGshDwrPhjn0GH+RYc+MsoWPLgtXDENkVWYtBN3qgm0hPf6KF+OjQK?= =?us-ascii?Q?waSuFJpYFoAimQ5FV6CMkPSHF49/a1ngfCyrdbzfKJ61Ss8hCv/JeJ2fjHKI?= =?us-ascii?Q?6UkBHTQqdexzdNvGLi+t8ah5YJv681e7G2dJ2KzeHqHq/DGRtZOcyH9WWkhc?= =?us-ascii?Q?oViURKIJpz0bio3GDLNFNtkf9vA1BPqq72dwsl4x1TtL3UfqItw4gXc6ub5Y?= =?us-ascii?Q?ypa03Pw2+2MZz/y5E2RUs/b6qBTv3oKluy84OAyC3+420jiAyuRNhldTc6F6?= =?us-ascii?Q?03KdsRYxR3NJMRQU77JeS/ZyhmFIBjLf8YvuQkDdVmfjNn6orw36NfDCZzLP?= =?us-ascii?Q?nzEjA8PTawNspA8LIGNhIqs2qlkBwJ2fM3b7SJsDK3ZyI7cxbU7vCb4cR5Bh?= =?us-ascii?Q?nM X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-64da6.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: bdf0d079-699f-4a47-c904-08dba7d4a0a5 X-MS-Exchange-CrossTenant-AuthSource: AM9PR09MB4977.eurprd09.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Aug 2023 14:39:47.7574 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR09MB4227 Received-SPF: pass client-ip=40.92.50.94; envelope-from=arthur.miller@live.com; helo=EUR02-DB5-obe.outbound.protection.outlook.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_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 28 Aug 2023 12:11:16 -0400 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:309441 Archived-At: Po Lu writes: > Arthur Miller writes: > >> By the way, a single threaded shared state does not thread itself just >> because it is transplanted over a multithreaded implementation :). Of >> course. But getting access to such platform enables people to use >> threads, while the implementation itself is tranformed, as well as buys >> other benefits as discussed above. > > I'll reiterate this again: facilitating the execution of Lisp threads in > parallel -- a more or less complete job -- is 5% of the work required > for a concurrent Emacs. > > The tedious, insipid task of interlocking all that ``single threaded > shared state'' follows and constitutes the bulk of that work, which > someone must sign up for irrespective of the language it is written in. Perhaps you are attacking the task from the wrong angle? I think that sounds like a very tedius and error prone strategy. Why not refactor the interpreter so you can instantiate it with an empty state in a separate thread? I don't know; I am perhaps wrong, but isn't it more safe strategy to isolate the state in their own threads instead of trying to interloc bunch of stuff all over the place?