all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Allen S. Rout" <asr@ufl.edu>
To: emacs-devel@gnu.org
Subject: Re: Differences between Org-Mode and Hyperbole
Date: Fri, 1 Jul 2016 19:01:47 -0400	[thread overview]
Message-ID: <nl6spb$kjd$1@ger.gmane.org> (raw)
In-Reply-To: <E1bJ6cu-0002I6-Nc@fencepost.gnu.org>

On 07/01/2016 06:09 PM, Richard Stallman wrote:
>
> 
>   > 3. Babel. I don't use this, but it's obviously a really, really powerful
>   >    feature that users cannot find elsewhere. [...]
> 
> What is Babel?
> 

Babel is a facility that lets a document author include pieces of code
in a document, which may be used either as their text ("Here is the code
I mean") or as their results. ("Here is the output of that code") or both.


Taking a recent example I used at work:  I was attempting to articulate
a system architecture.  I enjoy doing this in graphviz.  I created a
section of my document that was a dot input

#+BEGIN_SRC dot :file fedam.png :cmdline -Kdot -Tpng
digraph  fedam {
  // graph from left to right
  splines=true;
  node [shape=box];
  edge [arrowhead=none,arrowtail=none];
[....]
#+END_SRC

and the babel facility of org took that 'dot document' which I had
written, and inserted the result of 'compiling' that source code.

If my goals had included demonstrating the features of graphviz, I could
have changed some of the declaration, and also displayed the dot source.

The result is analogous to:

LaTeX source file including an image.
dot source file in which the source for the image is recorded
Makefile recording the dependency between the files.


This is the use which is most relevant from the perspective of a
technical document author, but babel goes further:  it defines calling
conventions so that one can pass values from one code block to another.
  This enables one to write a code path which uses, for example from my
own history: PERL to preprocess; shell to fiddle with files; and R to
collate, analyze and generate graphics.

This is all in one document, with the ability to generate and retain
intermediate results if one so desires.

Many languages all trying to work together as one.  Babel.


There is nothing there that couldn't be written with a bunch of
compilers and a makefile.   But expressing them as a single,
literate-programming document is -profoundly- more accessible,
especially to folks who might not think of themselves as systems
integrators.

This polyglot facility is an important reason that Org is very useful to
the 'reproducible research' folks.


http://orgmode.org/worg/org-contrib/babel/


- Allen S. Rout





  reply	other threads:[~2016-07-01 23:01 UTC|newest]

Thread overview: 126+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-15 20:55 Differences between Org-Mode and Hyperbole (Was: Call for testers for GNU Hyperbole 5.12, a large, useful Emacs package) Robert Weiner
2016-06-15 21:53 ` Differences between Org-Mode and Hyperbole John Wiegley
2016-06-15 22:16   ` Robert Weiner
2016-06-16  0:39     ` John Wiegley
2016-06-16 14:41       ` Robert Weiner
2016-06-16 23:18         ` Richard Stallman
2016-06-16 23:51           ` John Wiegley
2016-06-17  0:19             ` Robert Weiner
2016-06-17  5:02               ` Tom
2016-06-17 15:29                 ` raman
2016-06-17 23:54                 ` Robert Weiner
2016-06-18 16:47                 ` Fabrice Popineau
2016-06-18 17:05                   ` Robert Weiner
2016-06-28 15:23                 ` Eric S Fraga
2016-06-28 15:43                   ` Robert Weiner
2016-06-29 14:34                   ` Richard Stallman
2016-06-29 15:04                     ` Robert Weiner
2016-06-30 17:58                       ` Richard Stallman
2016-06-30 23:02                         ` Scott Randby
2016-07-01  7:45                           ` Eli Zaretskii
2016-07-01  8:17                             ` Eric Abrahamsen
2016-07-01  9:46                               ` Eric S Fraga
2016-07-01 20:53                               ` Tom
2016-07-05 18:24                                 ` Marcin Borkowski
2016-07-01 22:09                               ` Richard Stallman
2016-07-01 23:01                                 ` Allen S. Rout [this message]
2016-07-03  0:06                                   ` Richard Stallman
2016-07-05 18:21                                 ` Marcin Borkowski
2016-07-05 19:44                                   ` Eli Zaretskii
2016-07-05 19:53                                     ` Marcin Borkowski
2016-07-06 14:26                                       ` Eli Zaretskii
2016-07-06 15:41                                         ` Marcin Borkowski
2016-07-01 22:09                               ` Richard Stallman
2016-07-02  7:10                                 ` Eli Zaretskii
2016-07-03  0:06                                   ` Richard Stallman
2016-07-01 18:38                             ` Scott Randby
2016-07-01 19:09                               ` Eli Zaretskii
2016-07-01 21:11                                 ` Tom
2016-07-02  6:43                                   ` Eli Zaretskii
2016-07-03  0:05                                   ` Richard Stallman
2016-07-05 18:13                                     ` Marcin Borkowski
2016-07-06 22:22                                       ` Richard Stallman
2016-07-01 21:34                                 ` Scott Randby
2016-07-01 21:58                                   ` John Mastro
2016-07-02  7:05                                   ` Eli Zaretskii
2016-07-02  9:13                                     ` Achim Gratz
2016-07-02 10:07                                       ` Eli Zaretskii
2016-07-02 10:36                                         ` Eli Zaretskii
2016-07-05 18:07                                         ` Marcin Borkowski
2016-07-05 19:41                                           ` Eli Zaretskii
2016-07-05 19:57                                             ` Marcin Borkowski
2016-07-06 14:27                                               ` Eli Zaretskii
2016-07-06 15:32                                                 ` Marcin Borkowski
2016-07-06 15:42                                                   ` Eli Zaretskii
2016-07-06 18:08                                                     ` Marcin Borkowski
2016-07-03  0:05                                   ` Richard Stallman
2016-07-03 13:59                                     ` Scott Randby
2016-07-03 14:19                                     ` Scott Randby
2016-07-05 18:02                                     ` Marcin Borkowski
2016-07-02  9:00                                 ` Joost Kremers
2016-07-02  9:55                                   ` Eli Zaretskii
2016-07-05 18:17                                   ` Marcin Borkowski
2016-07-05 17:51                             ` Marcin Borkowski
2016-06-29 16:33                     ` Tom
2016-06-29 17:30                       ` Eli Zaretskii
2016-06-29 20:04                         ` Richard Stallman
2016-06-29 22:15                         ` H. Dieter Wilhelm
2016-06-30  2:43                           ` Eli Zaretskii
2016-06-30 13:41                           ` Allen S. Rout
2016-07-03  0:08                             ` Richard Stallman
2016-06-29 17:30                     ` Allen S. Rout
2016-06-29 20:04                       ` Richard Stallman
2016-06-30  8:26                     ` Eric S Fraga
2016-07-03 22:36                       ` Richard Stallman
2016-07-04 13:58                         ` Kaushal Modi
2016-07-04 21:20                           ` Richard Stallman
2016-07-04 21:33                             ` Robert Weiner
2016-07-05 22:59                               ` Richard Stallman
2016-07-06  4:21                                 ` Marcin Borkowski
2016-07-06 22:29                                   ` Richard Stallman
2016-07-06  7:12                                 ` Nikolai Weibull
2016-07-06 22:30                                   ` Richard Stallman
2016-07-07 12:09                                     ` Nikolai Weibull
     [not found]                               ` <921c10a04c17462988c2821ed40582e7@DB5PR01MB1895.eurprd01.prod.exchangelabs.com>
2016-07-06  8:06                                 ` Eric S Fraga
2016-07-07 21:54                                   ` Richard Stallman
     [not found]                                   ` <33003e1e02b04d2db5ee60baff9a040f@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2016-07-08 12:23                                     ` Eric S Fraga
2016-07-09 16:56                                       ` Richard Stallman
2016-07-10  6:47                                         ` chad brown
2016-07-10 14:41                                           ` Eli Zaretskii
2016-07-04 21:33                             ` Phillip Lord
2016-07-05 13:11                               ` Etienne Prud'homme
2016-07-05 14:57                                 ` Eli Zaretskii
2016-07-05 23:03                                 ` Richard Stallman
2016-07-06  8:49                                   ` Joost Kremers
2016-07-07 21:54                                     ` Richard Stallman
2016-07-06 10:44                                   ` Marcin Borkowski
2016-07-05 16:16                             ` Marcin Borkowski
2016-07-06 22:22                               ` Richard Stallman
2016-07-05 17:26                             ` Marcin Borkowski
2016-07-07 22:01                               ` Richard Stallman
     [not found]                           ` <<E1bKBHv-0000lE-Bw@fencepost.gnu.org>
2016-07-04 22:26                             ` Drew Adams
2016-07-05 17:50                           ` Nikolaus Rath
2016-07-05 20:30                         ` joakim
2016-07-06 22:24                           ` Richard Stallman
2016-07-02  7:18                     ` Marcin Borkowski
2016-07-02  8:18                       ` Eli Zaretskii
2016-07-05 15:49                         ` Marcin Borkowski
2016-07-03  0:06                       ` Richard Stallman
2016-07-05 15:53                         ` Marcin Borkowski
2016-07-06 22:22                           ` Richard Stallman
2016-06-17 13:31               ` Eric Abrahamsen
2016-06-18 18:02                 ` Richard Stallman
2016-06-18 20:31                   ` Fabrice Popineau
2016-06-19 11:49                     ` Robert Weiner
2016-06-19 12:36                       ` Fabrice Popineau
2016-06-17 15:27             ` raman
2016-06-16 23:57           ` Robert Weiner
2016-06-17 15:53           ` Karl Fogel
2016-06-18 18:06             ` Richard Stallman
2016-06-20 18:15               ` Karl Fogel
2016-06-20 20:36                 ` Tom
2016-06-28 15:28               ` Eric S Fraga
2016-06-16  8:44 ` Re:Re: Differences between Org-Mode and Hyperbole (Was: Call for testers for GNU Hyperbole 5.12, a large, useful Emacs package) tumashu
2016-06-16 14:07   ` Robert Weiner
2016-06-16 15:38   ` Differences between Org-Mode and Hyperbole raman
2016-06-16 16:06     ` Robert Weiner

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='nl6spb$kjd$1@ger.gmane.org' \
    --to=asr@ufl.edu \
    --cc=emacs-devel@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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.