From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Rettke Subject: Re: What is Babel's relationship with a Lisp REPL? State or stateless? Date: Fri, 20 Feb 2015 10:41:33 -0600 Message-ID: References: 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]:58419) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOqlu-00088d-ER for emacs-orgmode@gnu.org; Fri, 20 Feb 2015 11:49:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YOqlt-0007Ko-Bv for emacs-orgmode@gnu.org; Fri, 20 Feb 2015 11:49:46 -0500 Received: from mail-we0-x22b.google.com ([2a00:1450:400c:c03::22b]:33608) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOqdz-0005Dl-Ig for emacs-orgmode@gnu.org; Fri, 20 Feb 2015 11:41:35 -0500 Received: by wevk48 with SMTP id k48so6682396wev.0 for ; Fri, 20 Feb 2015 08:41:34 -0800 (PST) In-Reply-To: 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Lawrence Bottorff Cc: "emacs-orgmode@gnu.org" 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 wrot= e: > 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 t= he > "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 some= how > 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 litera= te > programming. Maybe good comments are possible, but it's not orgmode liter= ate > programming. > > But then again, if Babel doesn't support REPL "state," then what am I > gaining? Please enlighten me. . . . > > > LB --=20 Grant Rettke gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/ =E2=80=9CWisdom begins in wonder.=E2=80=9D --Socrates ((=CE=BB (x) (x x)) (=CE=BB (x) (x x))) =E2=80=9CLife has become immeasurably better since I have been forced to st= op taking it seriously.=E2=80=9D --Thompson