The MLKit is a compiler for the programming language Standard ML.
Main Properties of the MLKit
- The MLKit compiler covers all of Standard ML, as defined in the 1997 edition of the Definition of Standard ML. The MLKit implements most of the latest Standard ML Basis Library specification.
- Supports ML Basis Files
- The MLKit compiles large programs, including itself, around 80.000 lines of Standard ML plus the Standard ML Basis Library. The support for ML Basis Files makes it easy to compile large programs with different Standard ML compilers. Currently, both MLton and the MLKit supports the concept of ML Basis Files. The MLKit has a system, based on MLB-files, for avoiding unnecessary recompilation upon changes of source code.
- Region-Based Memory Management
- The MLKit integrates reference-tracing garbage collection with region-based memory management. Memory allocation directives (both allocation and deallocation) are inferred by the compiler, which uses a number of program analyses concerning lifetimes and storage layout.
- A comprehensive guide on programming with the MLKit is available from the Documentation page.
- Open Source License. MLKit is open source; it is distributed under the GNU General Public License (GPL). The runtime system and libraries are also distributed under the MIT licence, thus, executables constructed with the MLKit are non-restricted.
- Good for Real-Time. Programmers who are interested in real-time programming can exploit the possibility of disabling reference-tracing garbage collection. In this case, there will be no interruptions of unbounded duration at runtime.
- Interface to C. MLKit applications can call C functions using standard C calling conventions; the region scheme can even take care of allocating and deallocating regions used by C functions thus invoked.
- Efficient implementation of Modules. The MLKit compiles Standard ML Modules, using a compilation scheme called Static Interpretation, which eliminates Modules entirely at compile time.
- Two Backends. Two backends are provided, one that generates x86 native machine code for the Linux operating system and one that generates bytecode.
- Binary Distributions. Binary distributions are available from the download page. Source code distributions are available as well.
The following tools are based on the MLKit:
- SMLserver - a system for developing server based Web applications in Standard ML.