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: Shrinking the C core Date: Mon, 28 Aug 2023 23:17:05 +0800 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="34791"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Richard Stallman , emacs-devel@gnu.org To: Arthur Miller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Aug 28 17:18:13 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 1qae0L-0008lX-1i for ged-emacs-devel@m.gmane-mx.org; Mon, 28 Aug 2023 17:18:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qadzc-00017x-6A; Mon, 28 Aug 2023 11:17:28 -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 1qadza-00017c-Ji for emacs-devel@gnu.org; Mon, 28 Aug 2023 11:17:26 -0400 Original-Received: from sonic305-21.consmr.mail.ne1.yahoo.com ([66.163.185.147]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qadzY-0006Mx-GP for emacs-devel@gnu.org; Mon, 28 Aug 2023 11:17:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1693235842; bh=m++LHWzHDy1CX59Zu5WLeE+iAzluusum1wwznXXjDcs=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=gAQPJG1Xz+qOj6KNrfFZsQVdPEHkr8TD7fRSzXEA3BOKifi0xp/085nzLL0AA5BtT87MMqxRO0mS3WD5rYw4cVo1lkT7b5u6ULHZFFpO8U1JcLz14vmQrqQUIMEfKHr/z2mtfJNY0KxbpWscMTPfjGkmyJW+kV4DbIqLWMxOiMqxWK2t39z0jDULiVzvmIrzY4oUbblGYVY8MqDuVi54XdbFEbL7YLW7AJMJC9fHtTK/u9xmbtsccAL596M/BMZh+/6yQFNNoUpMWGoZ9dBXirSJumr/8OREGD2dxQGrD/FIsYpyv381sVZ8tNb3QOed+8O4C234pOsETIRhpCstew== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1693235842; bh=YZeruVS0DjpwCa3HGbATioM9IcfofOsyRfoy6aje42T=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=g9quTVHCP3McrZcQ5Vqw7j7nbh6Bv17fRqH17WPrNVsmoPes9mIKepStiiBLyUPC2HtIhcAbAG2MN87lTKyY550Y8O+hF+dZJ3As8heeSPnNXprBjV3ovSVxbprB/miZwCbWJfjjBiDvUHRma16UgfUXspXAEKqcun3LJnbqRsD8KaeoHdbi/npsrzCnya6HDAE8Y2n2pJz7GN6Qb89cVGw7EciIqA1GfmV4zemqgIzMXzyeidPRNBRW7w152BTU86iddIeLzsIFSfCaJrZpdOkYa8AD9fFy9LSS802kOy0WRc6vZ35G07onNpMD4xYHcDd7k11XmrFZBsgoPUvz0g== X-YMail-OSG: TdUq4JYVM1nBLGaakU0PP3bxP8Yr_9FchAtOVQN77IInJ7kiJVodQ0OLSDb5Ag8 dCCnD2dlVwAqwoysfEVh4iHEYKzdAZ_czQ5Iur0jss7TBRuKLYpVtfay_aVp7RNz3e7cKb3L7rWO xuz7EKXZxe81_lGREBHJkSXuTTAebY07ldYPyzpGlU0ALiBY7AhLdnXNQqudPGLnG.5sne3aQ1f7 RABCgZM0e3JJ3OYELmCrr86om5vp6.DJZMGNIfEHkCYqRNgRtBgMqdpCiMdgj3MRi484NwrXeug2 qKavGvk4xfgPhXA6i9hzvOmN8kAbf33A2l0oYRNvRzuu_.6Q9USIYuZ586efvfzMqnv0yPRIrM1h zyJwZotd8XRYpM9JHQWAWh104pD4.eIudle9ro8WJX0aCfUbd6M9rCMO4wFoS.6NTgyOH.A4mFCn MH_7_3egKJ0ygM7Y_aswnL3_GDCLhlt.9e6cmDV0IMJXtsTuwEqsMp_wCgskgtBAaQAICDZCe3gl uddq0dglbN.XmhfPPnPrLSZT936yv3j04VphHycvVTvUvt1N2Cc3L7qWNF02eBNvpFknFvvnd5IL p9DGP1pOOQzdTU1CMiD0UUuJV7FBVls_MT9f62YUiPw0qbZ8oSMilEOFsEX.6dueyN1CYUW1jA98 IeBLb28TkO0OqO3bsuPubuK_UpKbV6tMcxbD6x07e7Io1UmIxhAQTWvMyV69FV0RGdFjwHNW_nFC RdcfhsDWDXyZxk9R7gSciUnCt62GFtVI4z33mL8onreBrSmjw1wKrXxVmyA3Lh.rnibLg0fn_LMV 8zalnlFbshVDQLv5TZtFHU4hcUbQYl65OUNT6R9BiZ X-Sonic-MF: X-Sonic-ID: 2e7f7df3-47f4-4d1f-9295-3443eda0e348 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.ne1.yahoo.com with HTTP; Mon, 28 Aug 2023 15:17:22 +0000 Original-Received: by hermes--production-sg3-69654d8bd-tsbjv (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 4c44f04956c3834c5d53bd2413d9997e; Mon, 28 Aug 2023 15:17:18 +0000 (UTC) In-Reply-To: (Arthur Miller's message of "Mon, 28 Aug 2023 16:39:46 +0200") X-Mailer: WebService/1.1.21763 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.185.147; envelope-from=luangruo@yahoo.com; helo=sonic305-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=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:309439 Archived-At: Arthur Miller writes: > 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? How is that distinct from running Emacs within a subprocess?