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 mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 4A605BBAF for ; Sat, 13 Mar 2010 16:39:12 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aj4CAGxAm0vRVdrYkGdsb2JhbACOdYF2ghKHbQgVAQEBAQkJDAcTAx+pK4FhhE8uiEsBAQMFhHYEgzQ X-IronPort-AV: E=Sophos;i="4.49,632,1262559600"; d="scan'208";a="46648235" Received: from mail-bw0-f216.google.com ([209.85.218.216]) by mail2-smtp-roc.national.inria.fr with ESMTP; 13 Mar 2010 16:39:11 +0100 Received: by bwz8 with SMTP id 8so1820624bwz.3 for ; Sat, 13 Mar 2010 07:39:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Z24K7f7TZ4xId0l/lqKBSQFVQKS/NLHKRqz3pDsKOyc=; b=n/cUglH13wLK5ucvyNRV1b0zrTWqK1zapr7y+XXC6P7+0vrAubfO5isvKj6cPrB5F5 rzh+LJhqYdlSU9Wws0LJbDy/gltInj615D4+3kKgORGHV3LPPZcxLDYfxaXzvbhELPA5 t8KIut6v+DfqjlhPd7AKqPeFSK8qLcdWhh4Ug= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=UrP6cEUU6GGArL+quYnPDrho44FHwwkeSAkBbIaag0mO2wMKpvATNXYEgVZfrI/+4l bfRoGHgHc5FmKvChRF2JbuT+ur6GONfmMknxYqU1uPKb9le188iTcfKZ/ve7e3s8btFM KJV7IgjWJQTPVEfwSdNOyYTC5LsY5jEmVttKI= MIME-Version: 1.0 Received: by 10.204.34.3 with SMTP id j3mr3023593bkd.23.1268494751637; Sat, 13 Mar 2010 07:39:11 -0800 (PST) In-Reply-To: <1268492557.1962.5.camel@homesick> References: <320e992a1003130229v1f39f6aek752c32a677c3ac87@mail.gmail.com> <1268492557.1962.5.camel@homesick> Date: Sat, 13 Mar 2010 17:39:11 +0200 Message-ID: <320e992a1003130739x15a49d57q1adda556a2237df6@mail.gmail.com> Subject: Re: [Caml-list] AGI research using ocaml From: Eray Ozkural To: Andre Nathan Cc: caml-list Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam: no; 0.00; ocaml:01 eray:01 ozkural:01 toplevel:01 ocaml:01 eray:01 toploop:01 toploop:01 foo:01 ozkural:01 bilkent:01 nathan:98 wrote:01 caml-list:01 hacker:02 Hello Andre, 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 :) On Sat, Mar 13, 2010 at 5:02 PM, Andre Nathan wrote= : > Eray, > > You could consider using the Toploop module to interpret an ocaml > program; for example, > > =A0Toploop.use_silently Format.std_formatter "foo.ml". > > This is what I do in OSpec to run the specification files. I haven't > measured the overhead of using this module but at least you don't need > to fork a process to run each of your programs. > > HTH, > Andre --=20 Eray Ozkural, PhD candidate. Comp. Sci. Dept., Bilkent University, Ankara http://groups.yahoo.com/group/ai-philosophy http://myspace.com/arizanesil http://myspace.com/malfunct