Re: Ocaml applications
| Newsgroups | gmane.comp.lang.ocaml.beginners |
|---|---|
| Message-ID | <[email protected]> |
On 12.05.2015 02:50, Hendrik Boom [email protected] [ocaml_beginners] wrote: > > > There's one thing neither ocaml nor Modula 3 handle well. You might > want to write a code generator that generates new executable code and > adds it dynamically to the already running program (yes the one that > just generated that code). In Lisp and Scheme, this kind of extension > is very much in the language designat least it's very much in the > language design (provided you extend your program with more List code), > But many implementations gie uup on doing this efficiently. They > handle it with a raw source-code interpreter or compile to interpreted > byte-code instead of to machine code. > Yes there is dynamic loading of native code in OCaml, see http://caml.inria.fr/pub/docs/manual-ocaml/libref/Dynlink.html /Str.