SML'97
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.
ML Basis Files
The MLKit compiles large programs, including itself, around 80.000 lines of Standard ML plus the Standard ML Basis Library. ML Basis Files, supported by both MLton and MLKit, makes it easy to compile large programs. MLKit's smart-recompilation scheme avoids recompilation upon changes of source code.
Region-Based
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.
Open Source
MLKit is open source; it is distributed under the GNU General Public License, version 2 (GPLv2). The runtime system and libraries are also distributed under the MIT licence, thus, executables constructed with the MLKit are non-restricted.
Region Profiling
The MLKit includes a graphical region profiler, which helps gain detailed control over memory reuse. The example graph to the right shows a region profile (region sizes as a function of time) of two hundred generations of the `Game of Life'.
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.
No-Overhead Modules
The MLKit compiles Standard ML Modules, using a compilation scheme called Static Interpretation, which eliminates Modules entirely at compile time.
Multiple Backends
Multiple backends are provided, including one that generates x64 native machine code for the Linux and macOS operating systems and one that generates JavaScript.
Hosted at Github
MLKit sources are hosted at Github, which makes it straightforward to browse code and collaborate on projects.
2022-12-29: MLKit 4.7.2 is released and available in binary forms for Linux and macOS. The release features a revised version of the manual |
2021-12-31: MLKit 4.6.0 is released and available in binary forms for Linux and macOS. The release features a revised version of the manual, which reflects the changes since version 4.3.0 |
2021-01-31: The Online SML IDE is now more efficient and allows for linking with a dedicated Dropbox App folder. |
2021-01-31: The preferred library package solution to use with MLKit is now smlpkg. |
2021-01-31: MLKit 4.5.6 is available in binary forms for Linux and macOS. |
2019-07-03: MLKit 4.4.3 is released. The MLKit now generates x64 assembler on Linux and macOS... |
Online SML IDE — Compile SML programs in your browser and save your programs in a dedicated Dropbox App folder. |
SMLtoJs — Compile SML programs into JavaScript. |
SMLserver — Use SML on the Web server. |