From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: ob-async Date: Sun, 26 Feb 2017 16:46:15 +0100 Message-ID: <877f4dt0oo.fsf@nicolasgoaziou.fr> References: <87efyswrem.fsf@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36839) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ci11g-00034N-9N for emacs-orgmode@gnu.org; Sun, 26 Feb 2017 10:46:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ci11f-0000LY-01 for emacs-orgmode@gnu.org; Sun, 26 Feb 2017 10:46:20 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:39821) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ci11e-0000Kr-R4 for emacs-orgmode@gnu.org; Sun, 26 Feb 2017 10:46:18 -0500 In-Reply-To: <87efyswrem.fsf@linaro.org> ("Alex =?utf-8?Q?Benn=C3=A9e=22's?= message of "Mon, 20 Feb 2017 20:14:57 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Alex =?utf-8?Q?Benn=C3=A9e?= Cc: Org-mode , John Kitchin , Ken Mankoff , andrew.stahlman@gmail.com Hello, Alex Benn=C3=A9e writes: > Ken Mankoff writes: > >> An RSS feed I follow mentioned ob-async here: >> https://github.com/astahlman/ob-async >> >> I haven't seen it mentioned on the list yet. Perhaps others would be >> interested in asynchronous Babel processing. I've seen the feature >> requested often on this list. > > This is not the first attempt to my knowledge. I know of: > > - my hacky attempt https://github.com/stsquad/async-org-babel > - John Kitchen's python specific version http://kitchingroup.cheme.cmu.= edu/blog/2015/11/20/Asynchronously-running-python-blocks-in-org-mode/ > - this matlab version http://emacs.stackexchange.com/questions/21301/as= ync-execution-in-org-babel > > So I think there have been enough proof of concepts of using async.el > and inserting results at a later date. I think what would be really > useful is some feedback from the org-mode maintainers about the various > approaches and if something generic could be included with org-mode > itself. > > Any thoughts? I never used any of these, so please take this with a grain of salt. AFAIU, these solutions are too limited at the moment. They suffer from the same problem as current ":cache" parameter, i.e., they seem unable to cope with blocks that refer and execute other blocks.=20 IMO, for anything serious, we need to implement something that is able to capture the "closure" of a block. In this case, all blocks belonging to that closure would be marked as read-only during the process, so as to avoid race conditions. We also need to be able to retrieve all the results from all the blocks involved. Regards, --=20 Nicolas Goaziou