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: Thu, 06 Jul 2023 08:27:49 +0800 Message-ID: <87leftnat6.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> <871qhmo5nv.fsf@yahoo.com> <87bkgq8p5t.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="20840"; 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 Thu Jul 06 02:28:57 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 1qHCrh-0005CW-Ld for ged-emacs-devel@m.gmane-mx.org; Thu, 06 Jul 2023 02:28:57 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qHCqr-0007q5-4o; Wed, 05 Jul 2023 20:28:05 -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 1qHCqo-0007pr-J3 for emacs-devel@gnu.org; Wed, 05 Jul 2023 20:28:02 -0400 Original-Received: from sonic317-33.consmr.mail.ne1.yahoo.com ([66.163.184.44]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qHCqm-0008Fg-RS for emacs-devel@gnu.org; Wed, 05 Jul 2023 20:28:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1688603278; bh=m4gcrcC/uBXAN1IVodgwjWs4rWjFIFha7R8kdwbJ8s0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=Uh5jN/WVmnc2Ia+Nh8cgh6PqdT36nzNhVhO2bO1xGoUkxPoQgRjsZ8N4zL0pENKlrtQsQzDRM78ypWXr+qh+RSbzQsdra+Ss9bicyxqlSINBWmE1bbtQ+GEVP1rIl/tLK0bJB/pGzCGHJmOzm/0xfrDrujzNWOx+CN8NDjfPzU+BXSsiT5JxYNy08g5rRgciOW/DDDEwTkAOWNRgrQi6TlaeQwgLhZUIhYaIfIWnWkFoy11lJReGV9Kyqx6boH39cSTrF5zSP/IMCaR+nzCntAawPN21uX6Dom1WWQHqW8sVlAD0wqaf60oF1O8T9y6LEfvEJC7g8uvcMpfWOECHHA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1688603278; bh=fkHF+xx2HNoVvXTim8rug5gIFNeVFQP+IpPJxEEcH5/=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=R35WOWa+Xmuj42BFIW2HrEtDYBssdpyyaHlYOrlc4HI191QQahAdCVswN26GaMb4Rde+SckndV6CFGzG/huDIWRWhbLWRRoYC75JRmDt2odqBwXD9U89iJOItEvm6gU/Fd4l0vQeXDINjS929ULIfQ3Cav3EPN685qrKboG9QhwTvxwOainRqwX7pg2q8MEMLGSW+S2M8wfwiqxI3xa5EQhct2XXh+Knv8nQmV3VlRlR+C+h1F2JbOjpx5LRftduLBSUuHx+s9Eyq05BKmgr0AArMOODF4RgmD/DfWrIK8ETWpzPaxw0k1OeC8+Odfbst2yV66knkPYsam2rpDq1BA== X-YMail-OSG: ACr7paEVM1nxu.E9.5T4dWyjCM9mZWh6LA570mGMidaFjpXleEo25mGlAfib2p2 bVYgkyrodwAGwriVBBWkFfesYmZsiX87r_F3KwJ79v6eVoDaOgwb5syKeozScNN8LfHHV7I46j8e WZYWFw00Ef.QEY_yLqJYMArrgqkjv5H8eXgLt4pcPldBOdbytF3QAz0t6P6rHgQ2Ifqll2sg7rK6 0RC1pjYaM6utZKb5MgVi8iENEFT8fW96UC8S_7Wl3XwH.GbH4vU3KOb48x7BSJIhKxx0XYBcX3Sv NFYTosKjS7CuIPD2M4Q37RzvsBkV1gdNYPwiCXgbLgY4x6pegBGo0PMJpivEOvPWcP7xQOWaop3b HQeJouqg4P3ZR8wBDk7ALliir4sEVgNa5KpWzNfo33pMIDED7aAworbG54ey5bSIihcISqvVAvyl oCG5dNhtRRbvXYf21FTiAHhjte347uA9UFzRhNnReC3kCJQShQ6NykGFnKMiTqvhmsQHhJIGOTP3 FONdvGc7fa3AbITjv.uVP7Ft0TQrar7uSbaGddYuxY04hdOueKdza7Fa_xMrHRKSNhkqQAcDghPG s0iHhahx4DZ.fjFWRBVVJ4LLRPbsNjMnK1LBIct7nEpUOwnDcnZR1X.AJRXh8.17ICFrcG.pKgXu x9gRqrEX_t.x0hqWProtkDox5pEi82Kfi6Qt.qhkSI7yJCeKe8z6.XCdcm60Ud9a3WkbcLRyKOXI xjqCQp.UQHfSXcqYoWApEmb4s_IeK7DwY.9zFKNgm12Wex12vBaK6q1fIwym1HYTuAgUWs6vpDfL Kazu_QwudIY753O0aiI0hO3Jh66tjyqi_Cb7Pb9XbO X-Sonic-MF: X-Sonic-ID: 06d502df-d6cc-4988-aff7-b971fded95ac Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.ne1.yahoo.com with HTTP; Thu, 6 Jul 2023 00:27:58 +0000 Original-Received: by hermes--production-sg3-67fd64777-bps25 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 0d177d3eb59e0d8c8565bfa22e20dbff; Thu, 06 Jul 2023 00:27:53 +0000 (UTC) In-Reply-To: <87bkgq8p5t.fsf@localhost> (Ihor Radchenko's message of "Wed, 05 Jul 2023 13:26:54 +0000") X-Mailer: WebService/1.1.21638 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.184.44; envelope-from=luangruo@yahoo.com; helo=sonic317-33.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=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:307482 Archived-At: Ihor Radchenko writes: > I am only aware of text-based communication. Is there anything else? It doesn't have to be text, no, it could be binary data as well, on top of which any RPC mechanism could be built. > AFAIU, one of the big blockers of this is single-threaded GC. Emacs > cannot free/allocate memory asynchronously. Or do I miss something? Garbage collection can be made to suspend all other threads and ``pin'' string blocks that are referenced from other threads as a temporary measure. It's hardly the reason that makes Emacs difficult to interlock.