From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: Threads in emacs implementation Date: Fri, 17 Jun 2005 09:56:31 +0900 Message-ID: References: <6dbd4d0005060619227dd41364@mail.gmail.com> <87vf4oaft8.fsf@zemdatav.stor.no-ip.org> <4nd5quav0o.fsf@lifelogs.com> <4nll5btxv7.fsf@lifelogs.com> <4nvf4eqnec.fsf@lifelogs.com> Reply-To: snogglethorpe@gmail.com, miles@gnu.org NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1118970049 11641 80.91.229.2 (17 Jun 2005 01:00:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 17 Jun 2005 01:00:49 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 17 03:00:41 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dj5Dr-0002rQ-MG for ged-emacs-devel@m.gmane.org; Fri, 17 Jun 2005 03:00:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dj5Bm-00087U-VW for ged-emacs-devel@m.gmane.org; Thu, 16 Jun 2005 20:58:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dj5BF-0007zp-33 for emacs-devel@gnu.org; Thu, 16 Jun 2005 20:57:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dj5B4-0007t2-8c for emacs-devel@gnu.org; Thu, 16 Jun 2005 20:57:47 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dj5B4-0007sk-4f for emacs-devel@gnu.org; Thu, 16 Jun 2005 20:57:46 -0400 Original-Received: from [64.233.184.195] (helo=wproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Dj5Bi-00057n-0Q for emacs-devel@gnu.org; Thu, 16 Jun 2005 20:58:26 -0400 Original-Received: by wproxy.gmail.com with SMTP id 40so128991wri for ; Thu, 16 Jun 2005 17:56:31 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=PflwehT2b63c1XI/AvhlF/kJMYfrooeaMOBawlW/DM44VLn8+1KQP1vo8lslA0RQ5b0epbJbbSxnuLxtk0EB3LtaR2Abav9Yo1WiteXT0DXLTcMVZRwdfjpZzVEVj7RBFshoCyHCs6YnBapdV+A1kX5PbTiqvp21R/M/mTp0MPE= Original-Received: by 10.54.20.59 with SMTP id 59mr22759wrt; Thu, 16 Jun 2005 17:56:31 -0700 (PDT) Original-Received: by 10.54.19.31 with HTTP; Thu, 16 Jun 2005 17:56:31 -0700 (PDT) Original-To: Ted Zlatanov In-Reply-To: <4nvf4eqnec.fsf@lifelogs.com> Content-Disposition: inline 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:38984 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38984 On 6/17/05, Ted Zlatanov wrote: > > This is not really true for typical elisp programs -- global variables > > (especially buffer-local global variables) are used extremely often, > > and in almost every case must be "truly global" (visible in all > > threads). >=20 > At the time of the fork, the thread will pick up all globals. I was > talking about important globals that are modified after the fork. At > least my experience has been that after you initialize Emacs, it's > rare to modify globally important variables unless you are > specifically customizing Emacs. No, it's _extremely_ common. A huge amount of the actively maintained state in Emacs is stored in global variables (often buffer-local of course, but still "global" as far as threads are concerned). -Miles --=20 Do not taunt Happy Fun Ball.