macOS
brew install mltonlocal Homebrew formula metadata
sudo port install mltonMacPorts ports tree · lang/mlton/Portfile · source: api.github.com
brew
Whole-program, optimizing compiler for Standard ML. Version 20241230 via Homebrew; verified 2026-06-22.
install
brew install mltonlocal Homebrew formula metadata
sudo port install mltonMacPorts ports tree · lang/mlton/Portfile · source: api.github.com
sudo dnf install mltonFedora Rawhide package metadata · mlton · source: dl.fedoraproject.org
nix profile install nixpkgs#mltonnixpkgs package indexes · mlton · source: raw.githubusercontent.com
sudo pacman -S mltonArch Linux sync databases · mlton · source: geo.mirror.pkgbuild.com
sudo apt install mltonUbuntu 24.04 LTS package indexes · mlton · source: archive.ubuntu.com
overview
Whole-program, optimizing compiler for Standard ML
history
MLton grew out of Standard ML compiler research in the late 1990s. The project history traces its start to April 1997, when Stephen Weeks wrote a defunctorizer for Standard ML and integrated it with SML/NJ. That origin explains the shape of the compiler: MLton is not an interactive SML environment, but a whole-program compiler that takes the complete program as input and uses that global view for optimization.
The project became known in the Standard ML community for aggressive whole-program optimization and standalone native executables. Its own repository describes support for SML97, a complete Standard ML Basis Library, the ML Basis system, a C foreign-function interface, source-level profiling, mllex, mlyacc, and mlnlffigen. The implementation emphasizes small executables and runtime performance through unboxed representations, native arrays, GMP-backed arbitrary precision arithmetic, multiple code generators, and multiple garbage-collection strategies.
In package-manager terms, MLton occupies the serious native-code SML compiler niche alongside SML/NJ, Poly/ML, and MLKit rather than the lightweight scripting or teaching niche. It is used when SML code needs to be compiled into fast standalone programs, when whole-program analysis is useful, or when tools from the MLton distribution such as mllex, mlyacc, and mlprof are part of the workflow.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
mllex | cli | global executable | |
mlnlffigen | cli | global executable | |
mlprof | cli | global executable | |
mlton | cli | global executable | |
mlyacc | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:mlton |
|---|---|
| Version | 20241230 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/mlton |
| Homepage | http://mlton.org |
| Repository | https://github.com/MLton/mlton |
| Upstream docs | https://www.mlton.org/Documentation |
| License | HPND |
| Source archive | https://downloads.sourceforge.net/project/mlton/mlton/20241230/mlton-20241230.src.tgz |
| Last updated | 2026-06-22T14:05:30-07:00 |
| Pulse | updated |
| Dependencies | gmp |
| Build dependencies | autoconf, automake |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | mlton |
| Version Scheme | 1 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
mlton
nix profile install nixpkgs#mltonmlton 20210117+dfsg-3
Optimizing compiler for Standard ML
sudo apt install mltonmlton-basis 20210117+dfsg-3
Optimizing compiler for Standard ML - basis library
sudo apt install mlton-basismlton-compiler 20210117+dfsg-3
Optimizing compiler for Standard ML - compiler
sudo apt install mlton-compilermlton-doc 20210117+dfsg-3
Optimizing compiler for Standard ML - documentation
sudo apt install mlton-docmlton-runtime-native 20210117+dfsg-3
Optimizing compiler for Standard ML - native runtime libraries
sudo apt install mlton-runtime-nativemlton-runtime-x86-64-linux-gnu 20210117+dfsg-3
Optimizing compiler for Standard ML - amd64 runtime libraries
sudo apt install mlton-runtime-x86-64-linux-gnumlton-tools 20210117+dfsg-3
Optimizing compiler for Standard ML - tools
sudo apt install mlton-toolsmlton 20210117-12.fc44
Optimizing compiler for Standard ML
sudo dnf install mltonmlton 20241230-1
Whole-program optimizing Standard ML compiler
sudo pacman -S mltonmlton
sudo port install mltonsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.