English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
AGI research using ocaml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-03-13 (15:39)
From: Eray Ozkural <examachine@g...>
Subject: Re: [Caml-list] AGI research using ocaml
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 <andre@digirati.com.br> wrote:
> Eray,
> You could consider using the Toploop module to interpret an ocaml
> program; for example,
>  Toploop.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

Eray Ozkural, PhD candidate.  Comp. Sci. Dept., Bilkent University, Ankara
http://myspace.com/arizanesil http://myspace.com/malfunct