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:32:31 +0800 Message-ID: <87h6qhnalc.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> <831qhmjwk0.fsf@gnu.org> <875y6y8nlr.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="4366"; 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:33:47 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 1qHCwN-0000t9-2I for ged-emacs-devel@m.gmane-mx.org; Thu, 06 Jul 2023 02:33:47 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qHCvR-0001FN-E4; Wed, 05 Jul 2023 20:32: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 1qHCvQ-0001F1-3N for emacs-devel@gnu.org; Wed, 05 Jul 2023 20:32:48 -0400 Original-Received: from sonic305-22.consmr.mail.ne1.yahoo.com ([66.163.185.148]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qHCvK-0007YG-Qd for emacs-devel@gnu.org; Wed, 05 Jul 2023 20:32:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1688603560; bh=Kpq7IdBMiQsQrPJqPGtH/YkZhiz9EKJqPdPY0c9km2U=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=tiuY/jZTHtCMO+804ErEQQWpi2o1zYEwZNN823+L7xEMnHDSI6A8uRtRi5st/69ypjpYsr85z3r7xivTmBtMjYb6NoplxAVd3VO9hZ5B3ffNHNpNBvQs9pPTm3p6ErpZhZEi4TcPQzIcnTZ0I/2siwCZnS8rUmzHzi4llEHJ9R/yiwHJaEuYjfs1qMAVB1UgmGEvxVyHDW4160Kg8VTjZu0MLAlCjtA73Ftj667A39C8l69JQ1mfvNDbHKP6eMOveKnGlWm3uzxRxbobXlEzH+aHNl+/V2jCQFA/LSZtJH6a0Oxq4HTgFqoTnliMjm8orTzVZTZWTht7FiAVJpOS7g== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1688603560; bh=HvoCkbjrcYMItKQxPvaEktGwoQhSzIV8zyTxPNeumND=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=ty+YM17B5gXq/XLJ0vOR/WmnDBaz8h8mzRi1Y+JWtXrsUc7zjkedzoTeW9fdpZJ7gAfw/DMYQm09dpU1nTvv49AEBaIIgVw6ltK81426aMEd3ODY4UkkA8/Ic2YDOrwob1C10Wn5wErAv5cU69jHQvP1EduIN0eHph6JanBXMCixfc9ea2P4+Fon27ddFgSm47qL1wQPnUcgzDJhR8aZpqp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mail.ne1.yahoo.com by sonic305.consmr.mail.ne1.yahoo.com with HTTP; Thu, 6 Jul 2023 00:32:40 +0000 Original-Received: by hermes--production-sg3-67fd64777-xdrjm (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID b75fcdbb65006ebd452114d223085dbb; Thu, 06 Jul 2023 00:32:35 +0000 (UTC) In-Reply-To: <875y6y8nlr.fsf@localhost> (Ihor Radchenko's message of "Wed, 05 Jul 2023 14:00:32 +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.185.148; envelope-from=luangruo@yahoo.com; helo=sonic305-22.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:307483 Archived-At: Ihor Radchenko writes: > Emm. I meant memory allocation. AFAIK, just like GC allocating heap > cannot be asynchronous. The garbage collector and object allocation can be interlocked, as with everything else... > This too, although isn't is already solved by mutexes? ... which you proceed to admit here, and is the crux of the problem. Getting rid of the Lisp interpreter state that is still not thread-local (BLV redirects come to mind) is only a minor challenge, compared to the painstaking and careful work that will be required to interlock access to the rest of the global state and objects like buffers.