From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 3D92F7FC86 for ; Thu, 19 Mar 2015 20:57:14 +0100 (CET) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of agarwal1975@gmail.com) identity=pra; client-ip=209.85.212.172; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="agarwal1975@gmail.com"; x-sender="agarwal1975@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of agarwal1975@gmail.com designates 209.85.212.172 as permitted sender) identity=mailfrom; client-ip=209.85.212.172; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="agarwal1975@gmail.com"; x-sender="agarwal1975@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-wi0-f172.google.com) identity=helo; client-ip=209.85.212.172; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="agarwal1975@gmail.com"; x-sender="postmaster@mail-wi0-f172.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0B7AABlKQtVm6zUVdFcg1haBIMJsxSOEIF+hSxJAoE+B0wBAQEBAQERAQEBAQEGCwsJFC6EDwEBAQMBEhEdARsSCwEDAQsGBQsNDR0CAiEBAREBBQEKEgYTEhCHeAEDCQgNphc+MYsxgWuCd5EhChknAwpUhFUBAQEBBgEBAQEBAQEVAQUOiwmCRB2CDAQHgmiBRQWFCgqPJoQzgUyBGzqCdoJZhl6CX4F9EiOBDAmELCIxgkMBAQE X-IPAS-Result: A0B7AABlKQtVm6zUVdFcg1haBIMJsxSOEIF+hSxJAoE+B0wBAQEBAQERAQEBAQEGCwsJFC6EDwEBAQMBEhEdARsSCwEDAQsGBQsNDR0CAiEBAREBBQEKEgYTEhCHeAEDCQgNphc+MYsxgWuCd5EhChknAwpUhFUBAQEBBgEBAQEBAQEVAQUOiwmCRB2CDAQHgmiBRQWFCgqPJoQzgUyBGzqCdoJZhl6CX4F9EiOBDAmELCIxgkMBAQE X-IronPort-AV: E=Sophos;i="5.11,431,1422918000"; d="scan'208";a="104038937" Received: from mail-wi0-f172.google.com ([209.85.212.172]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 19 Mar 2015 20:57:13 +0100 Received: by wibg7 with SMTP id g7so15399198wib.1 for ; Thu, 19 Mar 2015 12:57:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=zNUxF0telY7gY7mxAIzDVvq+lrNLIYPuHhBDXZDvvHY=; b=vaCmwe6XA0Te3XXAYUN9HSa5WIaCuy4/BltpoTpn0PvLc4934Zdbi6RdexwFeCdi01 1eLfIFdgcoVVL8Bh0wSiRdQsvEwB3ddjj75CqvBy4Xr+s9KWh2qrVGtvmDZBGHVdyLNW suuQ6WJKhS+xloXUWOfZvIWd2DcMBu+D0epaMkThf4Dz/X6uzfgKbEQSBd0+L6QMqit7 D3E1sdTT80g8nHFY7cwpaTTV5hpNpZ3FGhgOuA1+3jH93cpHc9S47nxq91ZHrWKHAzRa Bd/0L+iXPrY1ch7HQEfuRzpwsByLP5Iqcwr+gn3+3BHvUoaQswcpuTT2eweKSAaDIAP1 fxIg== X-Received: by 10.181.8.99 with SMTP id dj3mr19221561wid.83.1426795032756; Thu, 19 Mar 2015 12:57:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.27.15.72 with HTTP; Thu, 19 Mar 2015 12:56:52 -0700 (PDT) In-Reply-To: <1CF8BCBB-23BE-4046-9B94-844AEAF5F570@gazagnaire.org> References: <20150315200810.GA1560@jrm.no-ip.org> <1CF8BCBB-23BE-4046-9B94-844AEAF5F570@gazagnaire.org> From: Ashish Agarwal Date: Thu, 19 Mar 2015 15:56:52 -0400 Message-ID: To: Thomas Gazagnaire Cc: Martin DeMello , =?UTF-8?Q?Jos=C3=A9_Romildo_Malaquias?= , "caml-list@inria.fr" , gpoore@gmail.com Content-Type: multipart/alternative; boundary=001a1135ee801847490511a99b51 Subject: Re: [Caml-list] Adding support for OCaml in PythonTeX --001a1135ee801847490511a99b51 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 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 > 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=C3=A9 Romildo Malaquias > > 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 t= he > >> 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 wh= at > >> 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 > --001a1135ee801847490511a99b51 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
The goal of oloop is to help authors of blog posts, books,= etc. include OCaml code blocks in their writing, and have the code automat= ically evaluated through the toplevel. This is done for example on OCaml.or= g, 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 subm= it a pull request.

On Thu, Mar 19, 2015 at 2:58 PM, Thomas Gazagnaire <thomas@gaza= gnaire.org> wrote:
Maybe so= mething 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=C3=A9 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, a= nd the
>> output to be included in the original document. It supports other<= br> >> 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 explaine= d 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 f= ile,
>> and these lines are given as input to an interactive session, givi= ng
>> 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.=C2=A0 Subscription management and archives= :
>> https://sympa.inria.fr/sympa/arc/caml-list
>> Beginner's list: http://groups.yahoo.com/group/ocaml_beginner= s
>> Bug reports: http://caml.inria.fr/bin/caml-bugs
>
> --
> Caml-list mailing list.=C2=A0 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.=C2=A0 Subscription management and archives:
ht= tps://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
--001a1135ee801847490511a99b51--