From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 226C0BBAF for ; Sat, 13 Mar 2010 16:56:52 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai0CABNFm0u7EBdenGdsb2JhbACDDJdmFQEBAQEBCAsICRMiqRGPZYEygl9qBIM0hQY X-IronPort-AV: E=Sophos;i="4.49,632,1262559600"; d="scan'208";a="58801581" Received: from mta62.f1.k8.com.br ([187.16.23.94]) by mail4-smtp-sop.national.inria.fr with ESMTP; 13 Mar 2010 16:56:29 +0100 Received: from localhost (localhost [127.0.0.1]) by smtpl.f1.k8.com.br (Postfix) with ESMTP id 2F100200A8A1; Sat, 13 Mar 2010 15:56:28 +0000 (GMT) X-Virus-Scanned: amavisd-new at k8.com.br Received: from smtpl.f1.k8.com.br ([127.0.0.1]) by localhost (mta62.f1.k8.com.br [127.0.0.1]) (amavisd-new, port 10024) with LMTP id jDkm4eJS6RLE; Sat, 13 Mar 2010 15:56:28 +0000 (GMT) Received: from [10.11.0.34] (unknown [10.11.0.34]) by smtpl.f1.k8.com.br (Postfix) with ESMTPA id DEFB5200A89D; Sat, 13 Mar 2010 15:56:27 +0000 (GMT) Subject: Re: [Caml-list] AGI research using ocaml From: Andre Nathan To: Eray Ozkural Cc: caml-list In-Reply-To: <320e992a1003130739x15a49d57q1adda556a2237df6@mail.gmail.com> References: <320e992a1003130229v1f39f6aek752c32a677c3ac87@mail.gmail.com> <1268492557.1962.5.camel@homesick> <320e992a1003130739x15a49d57q1adda556a2237df6@mail.gmail.com> Content-Type: text/plain; charset="UTF-8" Date: Sat, 13 Mar 2010 12:56:57 -0300 Message-ID: <1268495817.1962.9.camel@homesick> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; ocaml:01 0200,:01 eray:01 ozkural:01 toplevel:01 ocaml:01 eray:01 toploop:01 toploop:01 toplevel:01 mli:01 nathan:98 sourceforge:01 wrote:01 caml-list:01 On Sat, 2010-03-13 at 17:39 +0200, Eray Ozkural wrote: > Thanks for the suggestion. Perhaps it is possible to use the toplevel > on a string based file? Then, there wouldn't be the I/O overhead at > least, just buffering overhead. For some reason I can't find the > documentation for this. It's weird. :/ I used to write ocaml libraries > back in 2002 and still not an ocaml hacker! Heh :) Eray, Yes, you can find an "eval" function here, which uses Toploop.execute_phrase: http://pleac.sourceforge.net/pleac_ocaml/strings.html#AEN68 The docs for Toploop are in toplevel/toploop.mli in the OCaml source. Andre