caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Ashish Agarwal <agarwal1975@gmail.com>
To: Thomas Gazagnaire <thomas@gazagnaire.org>
Cc: "Martin DeMello" <martindemello@gmail.com>,
	"José Romildo Malaquias" <j.romildo@gmail.com>,
	"caml-list@inria.fr" <caml-list@inria.fr>,
	gpoore@gmail.com
Subject: Re: [Caml-list] Adding support for OCaml in PythonTeX
Date: Thu, 19 Mar 2015 15:56:52 -0400	[thread overview]
Message-ID: <CAMu2m2LVLw6RmnD5T0c6Xi1ZxE_OsPVnfneivGPyfwcoS+fScA@mail.gmail.com> (raw)
In-Reply-To: <1CF8BCBB-23BE-4046-9B94-844AEAF5F570@gazagnaire.org>

[-- Attachment #1: Type: text/plain, Size: 2793 bytes --]

The goal of oloop is to help authors of blog posts, books, etc. include
OCaml code blocks in their writing, and have the code automatically
evaluated through the toplevel. This is done for example on OCaml.org, and
we wanted to factor out that code and make it more robust. If it can be
extended in any way for other purposes, please add an issue and/or submit a
pull request.

On Thu, Mar 19, 2015 at 2:58 PM, Thomas Gazagnaire <thomas@gazagnaire.org>
wrote:

> Maybe something like https://github.com/agarwal/oloop could help?
>
> (I'm not one the author, and I have no idea what it does exactly)
>
> > On 19 Mar 2015, at 18:25, Martin DeMello <martindemello@gmail.com>
> wrote:
> >
> > Your best bet would probably be to modify utop. Not sure how much work
> > that would be, but at least most of the pieces are in place.
> >
> > martin
> >
> > On Sun, Mar 15, 2015 at 1:08 PM, José Romildo Malaquias
> > <j.romildo@gmail.com> wrote:
> >> Hello.
> >>
> >> PythonTeX [https://www.ctan.org/pkg/pythontex] is a LaTeX package that
> >> allows Python code entered within a TeX document to be executed, and the
> >> output to be included in the original document. It supports other
> >> languagens beside Python.
> >>
> >> I have just requested inclusion of OCaml support in PythonTeX:
> >> https://github.com/gpoore/pythontex/issues/62
> >>
> >> The author of PythonTeX says it could be possible, and he explained what
> >> would be needed from the OCaml side. See the discussion in issue #62 in
> >> the previous link.
> >>
> >> Basically, it would need a program which reads lines from a text file,
> >> and these lines are given as input to an interactive session, giving
> >> back input interspersed with output. He gives more details in the issue
> >> discussion. Please read the issue discussion in the above link.
> >>
> >> Is there already such a program? If not, can it be easily written?
> >>
> >> I appreciate any help in providing this program.
> >>
> >> Regards,
> >>
> >> Romildo
> >>
> >> --
> >> Caml-list mailing list.  Subscription management and archives:
> >> https://sympa.inria.fr/sympa/arc/caml-list
> >> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> >> Bug reports: http://caml.inria.fr/bin/caml-bugs
> >
> > --
> > Caml-list mailing list.  Subscription management and archives:
> > https://sympa.inria.fr/sympa/arc/caml-list
> > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> > Bug reports: http://caml.inria.fr/bin/caml-bugs
>
>
> --
> Caml-list mailing list.  Subscription management and archives:
> https://sympa.inria.fr/sympa/arc/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>

[-- Attachment #2: Type: text/html, Size: 4435 bytes --]

  reply	other threads:[~2015-03-19 19:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-15 20:08 José Romildo Malaquias
2015-03-19 18:25 ` Martin DeMello
2015-03-19 18:58   ` Thomas Gazagnaire
2015-03-19 19:56     ` Ashish Agarwal [this message]
2015-03-19 19:57 ` Roberto Di Cosmo

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=CAMu2m2LVLw6RmnD5T0c6Xi1ZxE_OsPVnfneivGPyfwcoS+fScA@mail.gmail.com \
    --to=agarwal1975@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=gpoore@gmail.com \
    --cc=j.romildo@gmail.com \
    --cc=martindemello@gmail.com \
    --cc=thomas@gazagnaire.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.
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 NNTP newsgroup(s).