From: Frederick Giasson <fred@fgiasson.com>
To: emacs-orgmode@gnu.org
Subject: Re: ob-clojure: possible to display results as soon as something is written to STDOUT?
Date: Wed, 6 Apr 2016 08:10:23 -0400 [thread overview]
Message-ID: <5704FCAF.2060801@fgiasson.com> (raw)
In-Reply-To: <87vb3vdtxd.fsf@nicolasgoaziou.fr>
Hi Nicolas,
>> Here is a blog post that explains the changes I did. I still have one
>> improvement to do (but don't how it could be done or even if it can be
>> done) which is explained at the end of the post:
>>
>> http://fgiasson.com/blog/index.php/2016/04/05/using-clojure-in-org-mode-and-implementing-asynchronous-processing/
>>
>> Thanks for your help, it is now working the way I need it to.
> This looks interesting. Thank you for sharing your result.
>
> Org Babel would benefit from a generic asynchronous execution mechanism.
> See for example <http://permalink.gmane.org/gmane.emacs.orgmode/101757>.
Indeed, it would be interesting to generalize such a generic mechanism
directly in Babel, and not in each OB plugins.
However, I am not sure neither how generic such a solution could be, and
what would still be required to implement in each OB plugin. My (very
little) experience so far is the Python prototype that John wrote, and
then my analysis of the Clojure OB plugin. As I was explaining in this
blog post, things are quite different between the two. In Python, it
appears that one has to run a sub-process, in Clojure this is not
necessary since we benefit the nREPL that handle that.
So far, the best idea about how to present async process I think is what
John was proposing with the new window. Otherwise I still wonder about
having a real background process for this thing to run such that one can
continue to write things in the Org buffer while a code block is running
in background. But as I explained, I will have to seriously look into
Elisp in order to assess the full scope of such a task.
> So, if anyone feels like discussing the details of an implementation of
> such a thing, please chime in.
So far this is the only thing I have to say about that. In mean time I
will fix my other patch, and then I will submit another one for this
async feature (which will probably require much more review from your part).
Thanks,
Fred
next prev parent reply other threads:[~2016-04-06 12:10 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-29 17:44 ob-clojure: possible to display results as soon as something is written to STDOUT? Frederick Giasson
2016-03-30 10:10 ` Eric S Fraga
2016-03-30 12:04 ` Frederick Giasson
2016-03-30 12:30 ` John Kitchin
2016-03-30 12:58 ` Eric S Fraga
2016-03-30 14:07 ` Frederick Giasson
2016-03-30 14:41 ` John Kitchin
2016-03-30 14:52 ` Frederick Giasson
2016-03-30 16:58 ` John Kitchin
2016-03-30 17:06 ` Frederick Giasson
2016-04-05 13:43 ` Frederick Giasson
2016-04-06 8:26 ` Nicolas Goaziou
2016-04-06 12:10 ` Frederick Giasson [this message]
2016-04-06 12:44 ` Nicolas Goaziou
2016-04-06 12:57 ` Frederick Giasson
2016-04-06 13:08 ` Nicolas Goaziou
2016-04-06 13:07 ` Frederick Giasson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5704FCAF.2060801@fgiasson.com \
--to=fred@fgiasson.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).