From: | jle@ural.owlnet.rice.edu (Jason Lee Eckhardt) |
Newsgroups: | comp.compilers |
Date: | 20 Feb 2005 16:48:37 -0500 |
Organization: | Rice University, Houston, TX |
References: | 05-02-053 05-02-065 05-02-076 05-02-078 |
Keywords: | interpreter, code |
Posted-Date: | 20 Feb 2005 16:48:37 EST |
>A less mainstream language is MetaML, which does do runtime code
>generation on partial applcations, if these are typed so the first
>argument has an earlier binding time than the latter. The generated
>code is for a virtual machine, which AFAIK is interpreted. Several
>functional languages running on virtual machines also have support for
>runtime code generation, but this is done explicitly rather than
>implicitly on partial applications. And unlike MetaML, you don't get
>type safety on generated code.
Also checkout a slightly more "mainstream" alternative to MetaML,
called MetaOCaml. This language provides support for "multi-stage
programming"-- the ability to construct, combine, and execute code
at runtime (where all such future-stage computations are type safe).
It is built on the popular OCaml system and can be obtained from:
www.metaocaml.org.
Return to the
comp.compilers page.
Search the
comp.compilers archives again.