From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.devel Subject: Re: Are there plans for a multi-threaded Emacs? Date: Tue, 02 Dec 2003 19:53:41 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <87oevbes4h.fsf@emacswiki.org> <20031117040607.C6C5D79B72@server2.messagingengine.com> <87ekvpx18d.fsf@emptyhost.emptydomain.de> <4nad6cikxy.fsf@holmes.bwh.harvard.edu> <33AB7A8C-24D6-11D8-9D12-000A95D9C74C@fugue.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1070394719 25729 80.91.224.253 (2 Dec 2003 19:51:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 2 Dec 2003 19:51:59 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Dec 02 20:51:54 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ARGYr-00034p-00 for ; Tue, 02 Dec 2003 20:51:53 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1ARGYr-0001ya-01 for ; Tue, 02 Dec 2003 20:51:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ARHRL-00037k-9y for emacs-devel@quimby.gnus.org; Tue, 02 Dec 2003 15:48:11 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ARGcp-0002OW-D7 for emacs-devel@gnu.org; Tue, 02 Dec 2003 14:55:59 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ARGcG-0002Im-8U for emacs-devel@gnu.org; Tue, 02 Dec 2003 14:55:55 -0500 Original-Received: from [217.13.230.178] (helo=yxa.extundo.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1ARGcF-0002IG-Gl for emacs-devel@gnu.org; Tue, 02 Dec 2003 14:55:23 -0500 Original-Received: from latte (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.12.10/8.12.10) with ESMTP id hB2Irqrh009423 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO); Tue, 2 Dec 2003 19:53:53 +0100 Original-To: Stefan Monnier Mail-Copies-To: nobody X-Payment: hashcash 1.2 0:031202:monnier@IRO.UMontreal.CA:226a43dd90d38e9b X-Hashcash: 0:031202:monnier@IRO.UMontreal.CA:226a43dd90d38e9b X-Payment: hashcash 1.2 0:031202:emacs-devel@gnu.org:19751f30e01a0cf9 X-Hashcash: 0:031202:emacs-devel@gnu.org:19751f30e01a0cf9 In-Reply-To: (Stefan Monnier's message of "02 Dec 2003 12:27:22 -0500") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:18293 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:18293 Stefan Monnier writes: >>> What is it about Emacs that makes it worth a major rewrite in order >>> to make it multithreaded? >> Gnus. > > Wouldn't Gnus be happy enough with cooperative multithreading ? I believe so too. > I keep thinking that we should provide a way to specify background tasks > that we can run while idle. It can already be done in elisp, but it's > rather painful. Yes. Like David Kastrup indicated, Gnus can already do several things in the background, but it is far from what you would expect from a normal multi-threaded mail reader. Blocking the GUI to wait for data from the network is poor engineering.