From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id A65887FC86 for ; Thu, 19 Mar 2015 19:58:22 +0100 (CET) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of thomas.gazagnaire@gmail.com) identity=pra; client-ip=209.85.212.182; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="thomas.gazagnaire@gmail.com"; x-sender="thomas.gazagnaire@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of thomas.gazagnaire@gmail.com designates 209.85.212.182 as permitted sender) identity=mailfrom; client-ip=209.85.212.182; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="thomas.gazagnaire@gmail.com"; x-sender="thomas.gazagnaire@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-wi0-f182.google.com) identity=helo; client-ip=209.85.212.182; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="thomas.gazagnaire@gmail.com"; x-sender="postmaster@mail-wi0-f182.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0BpAACdGwtVm7bUVdFcgmR0WoMNsxSQDoUsSYFOTAEBAQEBAREBAQEBAQYLCwkULoQPAQEBAwESER0BLQsBAwELAQUFGAICCR0CAiETAQUBChIGExIQh3kDCQgBBAilfj4xizGEYpFFJwMKhSkBCgEBARgBBQ6BE4l2gkQdgV2DIi+BFgWFCgqPJoQzgmc6gnaCWYZegl+BfTWBFVuDNW+CQwEBAQ X-IPAS-Result: A0BpAACdGwtVm7bUVdFcgmR0WoMNsxSQDoUsSYFOTAEBAQEBAREBAQEBAQYLCwkULoQPAQEBAwESER0BLQsBAwELAQUFGAICCR0CAiETAQUBChIGExIQh3kDCQgBBAilfj4xizGEYpFFJwMKhSkBCgEBARgBBQ6BE4l2gkQdgV2DIi+BFgWFCgqPJoQzgmc6gnaCWYZegl+BfTWBFVuDNW+CQwEBAQ X-IronPort-AV: E=Sophos;i="5.11,431,1422918000"; d="scan'208";a="126813041" Received: from mail-wi0-f182.google.com ([209.85.212.182]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 19 Mar 2015 19:58:22 +0100 Received: by wibg7 with SMTP id g7so126170583wib.1 for ; Thu, 19 Mar 2015 11:58:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=KKPiTemcuByetBRK6Tl02e248Pv2MxhpC6IrMw/jbe4=; b=T441a/clumyfq/q2zfAnrIKnFWGDxWuhVuCCFNx4RHXhtl2LByS7dXl/gbueoXpshb 64uzWOJ7HuK5oudC/tXIm0w7l3tVrnmMuFXSFu2jzDnpS6gZx250amTteW1rBHTBajoH BXdPRmfbmNkngHPXVFHmHjcvaQ0+qLAdpAFPrMa2OANoJ5qYS+t/58llrR6MELv+fX7I 7arH1vYQeA4+cIWVh15HWfWkb/M5A5pZZ6ihPEutPxVvJXQHlNBUH/J623VZ++/LfoY0 S2wGCXNfhCIYpKIHZHWdgr+Lz5G9H/qpvlAMgKbpCeSOnUtWCgaBg376Qm8Npm/SDSH0 EyNQ== X-Received: by 10.194.109.70 with SMTP id hq6mr24815434wjb.77.1426791501697; Thu, 19 Mar 2015 11:58:21 -0700 (PDT) Received: from ?IPv6:2001:630:212:248:15b8:2bf:eb5c:5800? ([2001:630:212:248:15b8:2bf:eb5c:5800]) by mx.google.com with ESMTPSA id d9sm3602224wib.20.2015.03.19.11.58.20 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 19 Mar 2015 11:58:20 -0700 (PDT) Sender: Thomas Gazagnaire Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) From: Thomas Gazagnaire In-Reply-To: Date: Thu, 19 Mar 2015 18:58:19 +0000 Cc: =?utf-8?Q?Jos=C3=A9_Romildo_Malaquias?= , "caml-list@inria.fr" , gpoore@gmail.com Content-Transfer-Encoding: quoted-printable Message-Id: <1CF8BCBB-23BE-4046-9B94-844AEAF5F570@gazagnaire.org> References: <20150315200810.GA1560@jrm.no-ip.org> To: Martin DeMello X-Mailer: Apple Mail (2.2070.6) Subject: Re: [Caml-list] Adding support for OCaml in PythonTeX 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: >=20 > 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. >=20 > martin >=20 > On Sun, Mar 15, 2015 at 1:08 PM, Jos=C3=A9 Romildo Malaquias > wrote: >> Hello. >>=20 >> 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. >>=20 >> I have just requested inclusion of OCaml support in PythonTeX: >> https://github.com/gpoore/pythontex/issues/62 >>=20 >> 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. >>=20 >> 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. >>=20 >> Is there already such a program? If not, can it be easily written? >>=20 >> I appreciate any help in providing this program. >>=20 >> Regards, >>=20 >> Romildo >>=20 >> -- >> 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 >=20 > --=20 > 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