From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: What is Babel's relationship with a Lisp REPL? State or stateless? Date: Fri, 20 Feb 2015 07:54:11 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b5d500c8acbe6050f848c58 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55350) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOn5y-000089-Fm for emacs-orgmode@gnu.org; Fri, 20 Feb 2015 07:54:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YOn5x-0001ON-Gk for emacs-orgmode@gnu.org; Fri, 20 Feb 2015 07:54:14 -0500 Received: from mail-pa0-x22d.google.com ([2607:f8b0:400e:c03::22d]:37076) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOn5x-0001OF-8y for emacs-orgmode@gnu.org; Fri, 20 Feb 2015 07:54:13 -0500 Received: by pabrd3 with SMTP id rd3so7868891pab.4 for ; Fri, 20 Feb 2015 04:54:11 -0800 (PST) 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: emacs-orgmode@gnu.org --047d7b5d500c8acbe6050f848c58 Content-Type: text/plain; charset=UTF-8 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 --047d7b5d500c8acbe6050f848c58 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
If I'm creating an org file in a buffer= which has source blocks for, say, Lisp, then I can "run" these b= locks 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 co= de? 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 h= andles the code when you ask it to. It keeps "state" and your pro= gram grows. But this arrangement is not really literate programming. Maybe = good comments are possible, but it's not orgmode literate programming.<= br>
But then again, if Babel doesn't support REPL "state,= " then what am I gaining? Please enlighten me. . . .


= LB
--047d7b5d500c8acbe6050f848c58--