From: Grant Rettke <gcr@wisdomandwonder.com>
To: Lawrence Bottorff <borgauf@gmail.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: What is Babel's relationship with a Lisp REPL? State or stateless?
Date: Fri, 20 Feb 2015 10:41:33 -0600 [thread overview]
Message-ID: <CAAjq1mcDfA3nd9+VMxbKcANzjMQnuxFF=BgA8X+_iRu-YySnag@mail.gmail.com> (raw)
In-Reply-To: <CAFAhFSX5ZkMUi1SM3FLU25v2=qxgUMn=1QFwbNDjrBeW+GL-_A@mail.gmail.com>
Does this answer your question?
http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-lisp.html#sec-3-2
I usually set up Scheme and R to keep a single buffer around with
Racket or R running in them. I do work in there outside of org just
like I do inside of org; figure stuff out and rely on the single
memory state. That is the typical development workflow.
On Fri, Feb 20, 2015 at 6:54 AM, Lawrence Bottorff <borgauf@gmail.com> wrote:
> If I'm creating an org file in a buffer which has source blocks for, say,
> Lisp, then I can "run" these blocks of Lisp code and Babel will fill in the
> "answer" just below in my buffer. Good. As advertised. But what is really
> happening to this code? Does Babel invoke a Lisp REPL once, do the code,
> print out the results my buffer and go away? Or is this invoked REPL somehow
> persistent, able to remember what has happened before?
>
> With regular Lisp and SLIME, you have a buffer where you write your code
> next to a running REPL that handles the code when you ask it to. It keeps
> "state" and your program grows. But this arrangement is not really literate
> programming. Maybe good comments are possible, but it's not orgmode literate
> programming.
>
> But then again, if Babel doesn't support REPL "state," then what am I
> gaining? Please enlighten me. . . .
>
>
> LB
--
Grant Rettke
gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson
prev parent reply other threads:[~2015-02-20 16:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-20 12:54 What is Babel's relationship with a Lisp REPL? State or stateless? Lawrence Bottorff
2015-02-20 14:13 ` John Kitchin
2015-02-20 16:41 ` Grant Rettke [this message]
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='CAAjq1mcDfA3nd9+VMxbKcANzjMQnuxFF=BgA8X+_iRu-YySnag@mail.gmail.com' \
--to=gcr@wisdomandwonder.com \
--cc=borgauf@gmail.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).