From mboxrd@z Thu Jan 1 00:00:00 1970 From: Frederick Giasson Subject: Re: [PATCH] new :async feature for org-babel-clojure Date: Thu, 21 Apr 2016 08:34:29 -0400 Message-ID: <0bf9b99d-139f-b54d-f3b5-e5e1f1344e4b@fgiasson.com> References: <56FABD8E.2000705@fgiasson.com> <87twjfcbt6.fsf@nicolasgoaziou.fr> <570538F9.8030307@fgiasson.com> <87a8kohrgi.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57985) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1atDoQ-0008IQ-2h for emacs-orgmode@gnu.org; Thu, 21 Apr 2016 08:34:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1atDoM-0007xx-0b for emacs-orgmode@gnu.org; Thu, 21 Apr 2016 08:34:26 -0400 Received: from s052.panelboxmanager.com ([72.55.186.33]:59472) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1atDoL-0007xB-Sk for emacs-orgmode@gnu.org; Thu, 21 Apr 2016 08:34:21 -0400 Received: from mailnull by s052.panelboxmanager.com with sa-checked (Exim 4.86_1) (envelope-from ) id 1atDoI-0035Dr-QG for emacs-orgmode@gnu.org; Thu, 21 Apr 2016 08:34:18 -0400 Received: from modemcable161.56-23-96.mc.videotron.ca ([96.23.56.161]:65243 helo=[192.168.0.13]) by s052.panelboxmanager.com with esmtpsa (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.86_1) (envelope-from ) id 1atDoI-0035Df-Jq for emacs-orgmode@gnu.org; Thu, 21 Apr 2016 08:34:18 -0400 In-Reply-To: <87a8kohrgi.fsf@nicolasgoaziou.fr> 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: emacs-orgmode@gnu.org Hi Nicolas, > As for 3 and 4, I think a more general mechanism for asynchrnous > eval'ing would be preferable. Besides, AFAIU, because of > > ; Wait until the nREPL code finished to be processed > (while (not (member "done" status)) > (nrepl-dict-put response "status" (remove "need-input" status)) > (accept-process-output nil 0.01) > (redisplay)) > > `org-babel-execute:clojure' is still somewhat synchronous, isn't it? Yes, and this is what I was mentioning initially (here, I think, and on my blogpost about it). I just don't know how all this processing could be handled in a different thread. That way it would free the current threads and we could continue to work with the current instance while the processing is happening because as I mentioned, everything is still stuck during the processing. Right now, async is really more about "feedback" than "asynchronous". However it has never been clear is it was possible or not, and if so, how :) Any pointers on how this could be done in emacs? Thanks, Fred > > > Regards, >