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: Concurrency via isolated process/thread Date: Wed, 05 Jul 2023 21:21:24 +0800 Message-ID: <871qhmo5nv.fsf@yahoo.com> References: <871qhnr4ty.fsf@localhost> <83v8ezk3cj.fsf@gnu.org> <87v8ezpov0.fsf@localhost> <83r0pnk2az.fsf@gnu.org> <87pm57pns8.fsf@localhost> <87lefvp55t.fsf@yahoo.com> <87sfa28ura.fsf@localhost> <87cz16o8vz.fsf@yahoo.com> <87jzve8r4m.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29404"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jul 05 15:21:59 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 1qH2SF-0007SQ-2r for ged-emacs-devel@m.gmane-mx.org; Wed, 05 Jul 2023 15:21:59 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qH2Rx-00031g-9f; Wed, 05 Jul 2023 09:21:41 -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 1qH2Rw-000307-J3 for emacs-devel@gnu.org; Wed, 05 Jul 2023 09:21:40 -0400 Original-Received: from sonic310-23.consmr.mail.ne1.yahoo.com ([66.163.186.204]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qH2Ru-0007kd-PT for emacs-devel@gnu.org; Wed, 05 Jul 2023 09:21:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1688563297; bh=YNa1F6iVjFXdhf4o3jH66Lh2N8S4E5Rl3C3nfJTBYRI=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=pKRsx3jwZpg2Uh8wUWqBdh0aVRnK3UPMhEBxBqXTPtXfUdndNChmYwmFaYr8bdbK/6GXDJajZOKwsHdKRLNajwUO3EDWxfmAZp1vyvUlA15fUlGHeGhWB1a1a6FYMnvZbVIYfjeRYovsP+3XFDU55EJR9bmqNY+EKGN0UXSIDVulu956wEuREfuUgnLKuYOAmSurw6s5WLvCOMCoZJKFo+tUX93abIkhgI24BM1qsaIlvs7FGyOlPwod2yQjsoqscENrOVi+YXjEDIzw5Wk1VQbxS3KR6SkFBeNc5dmYynxrxwFtW6BtiFgxfRgdnmJR1npfTzKKbXn5btUndeUQXw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1688563297; bh=2mB+X8DVK9TUAADZIAyLaOsCYkL9kMv6/4gVAtma/oB=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=occkBi/ZXtrbu20AJMwpqlzG56O7qhSoDvygJuO8by85PVsBE35RKdjgMhq4t6Lypl173d9dH+vjN/Miiv7zc5U3VAqgg3q37LkolAyBLJxcKi+bQ/GeXyW6KQCIhvIqpdWHKaS5l5+XWMBkyn6X4BkvdEGWSvUzdqg4dBd2WSQUipDJ7biYBiJhyKmJlVAhhPHt16m0ViX9a0tadT+R9VzEm60JBYZs0FYMJPVKBNAl2Xkyuqc5NXdgBrE6sgDgLT+Ex24aYQDtf/xnQuNUj1AnuSpxEZ052y9Q3f+mgyu3DonAJNUX+GkBr656n/Nne6LVXXYTmThKcaXx2hejUQ== X-YMail-OSG: zTs2J_cVM1nhLzmD1gWRGKqFnc2RUd0ytDNu24tfD.bi7n9nvEDuFhtxO106grO .Zs1M3YxI0XXqiYrRDg5GTbyBY_WOB3XBffyRbE0RSH.6gjkGr1BHtSB7VJaJv0MNAo.Y4tg6Q0I Rchg4B4lkS40RsvmtGNm8D6LOjgVBoYRgjyYO9kFxo5R5onzvWTq4zh6c8wGyBLItJ5B0QZh919g dJrIqgbIF4L8zpU3xuhmgiHHvqqX0CZBPJu9lzfumxESKzbx0hJkMYoe4P1ESA1O7Jp4l18TcnLJ CNr58URYkwafUZwaZdGI6eKm2dXji0G1EMVHtA7Yr8xIjETAsjrBoKXdSSXMXtNIRKIhQm3l.4lI PnCfTGbfJHL5KXXXAH2lTT.n_s_Hk22f8V4GIGA7v3lMPp.7EvaIypV.BO64LCj1EGBjlWp._J1r IfbOYMtF0h6_i00Fbnwd0M9Krz2P.fZFGD_uC7XYWPQrv2D25ZKFBS.mvV5H7c7n8GVipCbIb6AM 125MkKU0ocq39FVQyw8BEb.mYGzsat6DW0tERKs_ingyNVyIZR7nbPHuoMB5meHd_6EOnhF_d6ET rfOri_IO75Jimf2R3.oQWIzU_CCW_6RU_thCF5NJlMA5Oc7NYcNyWvPEka1k764tPbW7WGXlNWZk 4WyCYK1dlIzppDITKB4fYDv6vJazxHskQtUID8SUmTQ7STuQXvTCbB_jVIv6njiv5I9cetFvTcXT a2Q2ou6zIX7f.Si.wmdcmzPsdKCNvOhYQEqFKJcnf1iAAuefLAO515CH0pV7Lw_wVuUyCU._XifU eMAHU_07UvOkiCttvhA52BAebC0nnZCkrtqcZyBWE_ X-Sonic-MF: X-Sonic-ID: a9ba780b-45ff-480e-aacc-1eae62c8a776 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.ne1.yahoo.com with HTTP; Wed, 5 Jul 2023 13:21:37 +0000 Original-Received: by hermes--production-sg3-67fd64777-kvs8m (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID da80d1cc4a38e042439f6114cac09522; Wed, 05 Jul 2023 13:21:29 +0000 (UTC) In-Reply-To: <87jzve8r4m.fsf@localhost> (Ihor Radchenko's message of "Wed, 05 Jul 2023 12:44:25 +0000") X-Mailer: WebService/1.1.21612 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.186.204; envelope-from=luangruo@yahoo.com; helo=sonic310-23.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, T_SCC_BODY_TEXT_LINE=-0.01 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:307467 Archived-At: Ihor Radchenko writes: > I imagine that the child Emacs will have a very limited obarray. > If a symbol is not found in that process-local obarray, a query to > parent Emacs process will be sent to retrieve the symbol slot values. How will you retrieve the value of a symbol that does not exist in the child process? And what about the negative performance implications of contacting another process to retrieve a symbol's value? The object will have to be copied from the parent, and the parent may also be busy. Anyway, we already have sufficient mechanisms for communicating with subprocesses. If Emacs is to take any more advantage of SMP systems, it must be properly interlocked, with multiple processors sharing the same memory. This lesson was learned decades ago with another program: vmunix.