The design and implementation of BER metaocaml. MetaOCaml is a superset of OCaml extending it with the data type for program code and operations for constructing and executing such typed code values. It has been used for compiling domain-specific languages and automating tedious and error-prone specializations of high-performance computational kernels. By statically ensuring that the generated code compiles and letting us quickly run it, MetaOCaml makes writing generators less daunting and more productive.par The current BER MetaOCaml is a complete re-implementation of the original MetaOCaml by Taha, Calcagno and collaborators. Besides the new organization, new algorithms, new code, BER MetaOCaml adds a scope extrusion check superseding environment classifiers. Attempting to build code values with unbound or mistakenly bound variables (liable to occur due to mutation or other effects) is now caught early, raising an exception with good diagnostics. The guarantee that the generated code always compiles becomes unconditional, no matter what effects were used in generating the code.par We describe BER MetaOCaml stressing the design decisions that made the new code modular and maintainable. We explain the implementation of the scope extrusion check.
Keywords for this software
References in zbMATH (referenced in 3 articles )
Showing results 1 to 3 of 3.
- Kiselyov, Oleg; Kameyama, Yukiyoshi; Sudo, Yuto: Refined environment classifiers. Type- and scope-safe code generation with mutable cells (2016)
- Radanne, Gabriel; Vouillon, Jér^ome; Balat, Vincent: Eliom: a core ML language for tierless web programming (2016)
- Kiselyov, Oleg: The design and implementation of BER metaocaml. System description (2014)