Version française
Home     About     Download     Resources     Contact us    
Browse thread
OCaml extensible applications, run-time code generation
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Adam Brown <adam@f...>
Subject: OCaml extensible applications, run-time code generation
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
______________________________________________________________