From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA07489 for caml-red; Wed, 30 Aug 2000 10:09:26 +0200 (MET DST) Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id FAA29857 for ; Wed, 30 Aug 2000 05:45:26 +0200 (MET DST) Received: from freestream.com.au (freestream.com.au [139.130.213.125]) by concorde.inria.fr (8.10.0/8.10.0) with SMTP id e7U3jOv02786 for ; Wed, 30 Aug 2000 05:45:24 +0200 (MET DST) Received: (qmail 22097 invoked from network); 30 Aug 2000 03:49:27 -0000 Received: from unknown (HELO freestream.com.au) (adam@192.168.0.21) by freestream.com.au with SMTP; 30 Aug 2000 03:49:27 -0000 Message-ID: <39AD100B.BF730164@freestream.com.au> Date: Thu, 31 Aug 2000 00:45:47 +1100 From: Adam Brown Organization: Freestream X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.2.1 i686) X-Accept-Language: en MIME-Version: 1.0 To: caml-list@inria.fr Subject: OCaml extensible applications, run-time code generation Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: weis@pauillac.inria.fr Hi, I'm not an OCaml user but we're examining the option of using OCaml to allow the users to extend our application with new classes they write themselves (all conforming to a common interface. The catch is that we would like to be able to execute the user's new code line-by-line. I read a post which talked about using the OCaml evaluator Toploop.runscript. This would appear to provide us with an acceptable solution. Is this the case, and if so does the executed script run in the application's environment, or can we access data structures in the script's environment. We are currently planning to write the application in C++ for performance reasons (heavy floating point calculations and memory usage) and we would be embedding the OCaml code. thanks, Adam _____________________________________________________________ Adam Brown mailto:adam@freestream.com.au Freestream - Engineering and scientific computing 17 Stanlake St Footscray http://www.freestream.com.au 3011, Melbourne, Phone: +61 3 9317 8471 Australia Fax: +61 3 9318 5069 ______________________________________________________________