From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Concurrency via isolated process/thread Date: Sun, 09 Jul 2023 14:14:58 +0300 Message-ID: <83y1jp9w0d.fsf@gnu.org> References: <871qhnr4ty.fsf@localhost> <87h6qhnalc.fsf@yahoo.com> <87ilax71wo.fsf@localhost> <831qhli14t.fsf@gnu.org> <87wmzdxewc.fsf@localhost> <83r0plgjeo.fsf@gnu.org> <87o7kpxapo.fsf@localhost> <83mt09gcaf.fsf@gnu.org> <87wmzbc3af.fsf@localhost> <87edljhmjq.fsf@yahoo.com> <87fs5zbuwn.fsf@localhost> <871qhjgrku.fsf@yahoo.com> <831qhieumz.fsf@gnu.org> <87lefqg7yl.fsf@yahoo.com> <83h6qed8kw.fsf@gnu.org> <87h6qefwj0.fsf@yahoo.com> <83bkgmcx0q.fsf@gnu.org> <87a5w5gbs4.fsf@yahoo.com> <83bkglbmai.fsf@gnu.org> <87o7kleeub.fsf@yahoo.com> <835y6tbkr2.fsf@gnu.org> <87jzv9e8se.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3442"; mail-complaints-to="usenet@ciao.gmane.io" Cc: yantar92@posteo.net, emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jul 09 13:15:44 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 1qISOG-0000gN-Ec for ged-emacs-devel@m.gmane-mx.org; Sun, 09 Jul 2023 13:15:44 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qISNS-0000on-L8; Sun, 09 Jul 2023 07:14:54 -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 1qISNQ-0000oL-QQ for emacs-devel@gnu.org; Sun, 09 Jul 2023 07:14:52 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qISNQ-0007kg-Hv; Sun, 09 Jul 2023 07:14:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=J7sKdlQ+pCPow9iPKwZKmW7HYZ4Lcy1bQuJK6NN7Mrc=; b=rFv3HJKsJYss 9/mM1c2WPrXuxfkqfXVWHKgfD+uwJ6Pt70DhY3FU6mmYguuVrIiBU0JeOuQLGsINv+Qm4TtIzxsK+ pRG6JCvjisa0WtuKukPm8PPPWA0wy4A74o7XeRdyx4Vl1IhJ7gtsV5p1jG0K7JROSlAGu/tORIEUh q2KxnDtzGCbP4IV8QYk2DGfBVUSqoBFLUtxNy3vpj2qBmixqSv6m1qMsYkjKI/MEdmy5oJJCXXMAQ 2Q0WTi2ylgtiRUCmXL3+cuMYWrlcjMiHt+f9aEwXjJXljuSD6fOefj8+ELdDMTut46OrQ2ttjMO0O gbf+RTPKxnThYwuY7CvVCQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qISNP-0003nf-Aj; Sun, 09 Jul 2023 07:14:52 -0400 In-Reply-To: <87jzv9e8se.fsf@yahoo.com> (message from Po Lu on Sun, 09 Jul 2023 17:25:21 +0800) 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:307659 Archived-At: > From: Po Lu > Cc: yantar92@posteo.net, emacs-devel@gnu.org > Date: Sun, 09 Jul 2023 17:25:21 +0800 > > > Emacs doesn't have a UI thread, as you know. > > Emacs's equivalent is the main thread, which is the only thread that can > safely call redisplay. Which makes it impossible to display indications that are unrelated to buffer text displayed in some window. We use the "normal" buffer/window/frame/redisplay machinery for showing such indications (a good example is progress report), but the downsides of this are: . we cannot show the indications asynchronously, although they have absolutely no relation to any other buffer or window, and . they look badly when compared to modern GUI facilities