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: Sun, 09 Jul 2023 17:56:19 +0800 Message-ID: <87cz11e7cs.fsf@yahoo.com> References: <871qhnr4ty.fsf@localhost> <877crdjiwn.fsf@yahoo.com> <874jmh6v4s.fsf@localhost> <83y1jtgmbw.fsf@gnu.org> <87zg49xfke.fsf@localhost> <83sfa1gjns.fsf@gnu.org> <87r0plxbep.fsf@localhost> <83ilawhpi6.fsf@gnu.org> <87zg48apwr.fsf@localhost> <83edljg8ub.fsf@gnu.org> <87o7knbxr7.fsf@localhost> <838rbrg4mg.fsf@gnu.org> <87ilavbvdr.fsf@localhost> <834jmffvhy.fsf@gnu.org> <878rbrbmwr.fsf@localhost> <83fs5zecpo.fsf@gnu.org> <87351zbi72.fsf@localhost> <83351yevde.fsf@gnu.org> <87cz12ad2w.fsf@localhost> <83a5w6cwdr.fsf@gnu.org> <87pm518m0g.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="9030"; 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 Sun Jul 09 11:57:41 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 1qIRAj-00028o-SW for ged-emacs-devel@m.gmane-mx.org; Sun, 09 Jul 2023 11:57:41 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qIR9g-0003Yg-CE; Sun, 09 Jul 2023 05:56:36 -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 1qIR9e-0003YI-CC for emacs-devel@gnu.org; Sun, 09 Jul 2023 05:56:34 -0400 Original-Received: from sonic303-20.consmr.mail.ne1.yahoo.com ([66.163.188.146]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qIR9c-0004mN-Uf for emacs-devel@gnu.org; Sun, 09 Jul 2023 05:56:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1688896590; bh=eQ9ucYu5sL07z4JM6wYyk3NvIP1PvMmcr1MCR7ZMS58=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=OYF4X833NypAfUEve+oLdQiAPUqxFIkDSDfQN3FXvjn1ciE69YLhsy/lO5Pee6zzVZCPM66CBqkTjlXu82Y8FeKOHapPWReHBqwkfGIywCkSvi7QdyvUXp9Drb5b2AVA6XQ14FqABg6TZW8LanocUth0EdtRPzSW1RsssfbHYc9p6bP0d4aifdYDGWUR8Z5Rz+pyVwjJaf5YSFQEWLW5p+y3iOpnyoAt52vKilhSydxCu0AEnQ3vw3jlpKruN97mGh84GyeVjOrfulKspxZtgm9icjM7p6pvY65ZIgdwDMJ1m/R0lcXEICIkh1DqENeueHdT8wgSKmEe3FobyBC6KA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1688896590; bh=MKig765S4O2QHdjc3gBqX2kMv+fU/ErYOuTrU55pgwF=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=RPItiWUHzNIkVusOejIkCQWK8SfJka/TEKY5wcXFCCLVQaPVcI24/iy6PwHGhMcY4wB0EaOWyNYz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oDvnnqSur9dLHUgDYAnShf8wlgsGnJ2BJCRDHD_vsnDbW GZJ8ORBdxPRO_ymPC6_BP6mUmSHr.YQbf8qZzby0Fy X-Sonic-MF: X-Sonic-ID: e636c8ba-ebc9-4dc9-a813-ebb639346eb7 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.ne1.yahoo.com with HTTP; Sun, 9 Jul 2023 09:56:30 +0000 Original-Received: by hermes--production-sg3-67fd64777-szq9p (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 8ae17d683e57c63438614e6b27d18886; Sun, 09 Jul 2023 09:56:24 +0000 (UTC) In-Reply-To: <87pm518m0g.fsf@localhost> (Ihor Radchenko's message of "Sun, 09 Jul 2023 09:36:15 +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.188.146; envelope-from=luangruo@yahoo.com; helo=sonic303-20.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:307654 Archived-At: Ihor Radchenko writes: > Am I missing something, does the gap remain intact when the just move > point? AFAIU, the gap only needs to move when we do edits. > > I was thinking about thread-local variables just to move around and read > buffer. Asynchronous writing is probably a poor idea anyway - the very > idea of a gap does not work well when we need to write in multiple > far-away places in buffer. Thread-local state is NOT cheap! We should not jump at every opportunity to add new thread-local state.