From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Elisp containers Date: Fri, 07 Sep 2018 14:08:59 -0400 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1536343659 5576 195.159.176.226 (7 Sep 2018 18:07:39 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 7 Sep 2018 18:07:39 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 07 20:07:34 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fyLAM-0001MG-Jy for ged-emacs-devel@m.gmane.org; Fri, 07 Sep 2018 20:07:34 +0200 Original-Received: from localhost ([::1]:39783 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fyLCS-0005fi-FA for ged-emacs-devel@m.gmane.org; Fri, 07 Sep 2018 14:09:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53679) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fyLBq-0005fc-Ic for emacs-devel@gnu.org; Fri, 07 Sep 2018 14:09:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fyLBl-0004GG-I5 for emacs-devel@gnu.org; Fri, 07 Sep 2018 14:09:06 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:42160) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fyLBl-0004EZ-9l for emacs-devel@gnu.org; Fri, 07 Sep 2018 14:09:01 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id w87I8xuM004979; Fri, 7 Sep 2018 14:08:59 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 361BCAE1F5; Fri, 7 Sep 2018 14:08:59 -0400 (EDT) In-Reply-To: (John Wiegley's message of "Fri, 07 Sep 2018 10:54:18 -0700") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6369=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6369> : inlines <6864> : streams <1797779> : uri <2705227> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:229437 Archived-At: > SM> This would be like running Elisp in a separate process, except that it's > SM> not a separate process, so communication between two containers can be > SM> very efficient (e.g. you can send a buffer from one container to the other > SM> as efficiently as you can send an integer). > So the motivation is just efficiency? Yes, I'm thinking of cases where there's fine-grained communication: pass a buffer to the other container which does a quick change then returns the buffer, etc... > I think it costs <50ms to spawn an Emacs child process using async.el > to load and query something in it. Yes, maybe it's good enough, indeed. Has anyone tried to use async for elisp--local-variables? Same for Gnus and/or EWW? Stefan