From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: multi-threaded Emacs Date: Sun, 30 Nov 2008 22:37:58 -0500 Message-ID: References: <87abbiody1.fsf@master.homenet> <873ahant5l.fsf@master.homenet> <87bpvx5tw1.fsf@master.homenet> <87oczw7sxj.fsf@master.homenet> <8763m47pwz.fsf@master.homenet> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1228102697 1784 80.91.229.12 (1 Dec 2008 03:38:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Dec 2008 03:38:17 +0000 (UTC) Cc: emacs-devel@gnu.org To: Giuseppe Scrivano Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 01 04:39:21 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L6zd3-0007ep-1y for ged-emacs-devel@m.gmane.org; Mon, 01 Dec 2008 04:39:21 +0100 Original-Received: from localhost ([127.0.0.1]:54315 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L6zbs-0003fo-O1 for ged-emacs-devel@m.gmane.org; Sun, 30 Nov 2008 22:38:08 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L6zbo-0003fZ-3s for emacs-devel@gnu.org; Sun, 30 Nov 2008 22:38:04 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L6zbn-0003fN-Fm for emacs-devel@gnu.org; Sun, 30 Nov 2008 22:38:03 -0500 Original-Received: from [199.232.76.173] (port=38744 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L6zbn-0003fK-9q for emacs-devel@gnu.org; Sun, 30 Nov 2008 22:38:03 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:29972 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L6zbl-00054o-E0; Sun, 30 Nov 2008 22:38:01 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtgEAKvqMknO+Jkl/2dsb2JhbACBbctIgn2BJA X-IronPort-AV: E=Sophos;i="4.33,692,1220241600"; d="scan'208";a="30458108" Original-Received: from 206-248-153-37.dsl.teksavvy.com (HELO pastel.home) ([206.248.153.37]) by ironport2-out.teksavvy.com with ESMTP; 30 Nov 2008 22:38:00 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 07F76848A; Sun, 30 Nov 2008 22:37:58 -0500 (EST) In-Reply-To: <8763m47pwz.fsf@master.homenet> (Giuseppe Scrivano's message of "Mon, 01 Dec 2008 00:30:20 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:106354 Archived-At: >>>> let-binding, of course. It's probably the only one that matters >>>> (besides the internal ones like current_buffer). >>> Isn't enough to have a separate `specpdl' for every thread? >> Not sure what you mean. My above text is talking about the provided >> behavior, not about the implementation that provides it. > Sorry, I wasn't clear. If we will store thread local data only on > `specpdl', and I think it is the proper way, thread local data will not > be persistent among calls to `run-in-thread'. You mean you want to use the code #2 rather than code #3 to implement dynamic scoping? That might be OK, but I think it's going to take more work than #3 and will require more care w.r.t performance impact since it tends to make `symbol-value' algorithmically slower. Stefan