Automic VaultAutomic Vault

brew

Install mlton with Homebrew, dnf, MacPorts, Nix, pacman, apt

Whole-program, optimizing compiler for Standard ML. Version 20241230 via Homebrew; verified 2026-06-22.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install mlton

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install mlton

MacPorts ports tree · lang/mlton/Portfile · source: api.github.com

overview

Package summary

Whole-program, optimizing compiler for Standard ML

Commands and aliases

  • mllex
  • mlnlffigen
  • mlprof
  • mlton
  • mlyacc

history

Project history and usage

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.

Project history

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.

How it is used

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

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 8 platform targets.
  • Installs with 1 runtime dependencies.
  • Build metadata lists 2 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
mllexcliglobal executable
mlnlffigencliglobal executable
mlprofcliglobal executable
mltoncliglobal executable
mlyacccliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version20241230
manager updated2026-06-22
local dataok
upstreamnot checked
latest detectednot detected

http://mlton.org

  • infoRelease/tag comparison is only available for GitHub repositories.http://mlton.orgnone confidence

install metadata

Package metadata

Package keybrew:mlton
Version20241230
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/mlton
Homepagehttp://mlton.org
Repositoryhttps://github.com/MLton/mlton
Upstream docshttps://www.mlton.org/Documentation
LicenseHPND
Source archivehttps://downloads.sourceforge.net/project/mlton/mlton/20241230/mlton-20241230.src.tgz
Last updated2026-06-22T14:05:30-07:00
Pulseupdated
Dependenciesgmp
Build dependenciesautoconf, automake
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namemlton
Version Scheme1
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

mlton

nix profile install nixpkgs#mlton
  • normalized package name match
  • Matched by: Mlton
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: mlton from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Ubuntu apt95%

mlton 20210117+dfsg-3

Optimizing compiler for Standard ML

http://mlton.org/

sudo apt install mlton
  • Section: universe/devel
  • Architecture: all
  • 2 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Mlton
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: mlton from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

mlton-basis 20210117+dfsg-3

Optimizing compiler for Standard ML - basis library

http://mlton.org/

sudo apt install mlton-basis
  • Section: universe/devel
  • Architecture: amd64
  • Source Package: mlton
  • normalized package name match
  • Matched by: Mlton
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: mlton-basis from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

mlton-compiler 20210117+dfsg-3

Optimizing compiler for Standard ML - compiler

http://mlton.org/

sudo apt install mlton-compiler
  • Section: universe/devel
  • Architecture: amd64
  • Source Package: mlton
  • 7 dependencies
  • normalized package name match
  • Matched by: Mlton
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: mlton-compiler from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

mlton-doc 20210117+dfsg-3

Optimizing compiler for Standard ML - documentation

http://mlton.org/

sudo apt install mlton-doc
  • Section: universe/doc
  • Architecture: all
  • Source Package: mlton
  • normalized package name match
  • Matched by: Mlton
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: mlton-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

mlton-runtime-native 20210117+dfsg-3

Optimizing compiler for Standard ML - native runtime libraries

http://mlton.org/

sudo apt install mlton-runtime-native
  • Section: universe/devel
  • Architecture: amd64
  • Source Package: mlton
  • 1 dependencies
  • normalized package name match
  • Matched by: Mlton
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: mlton-runtime-native from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

mlton-runtime-x86-64-linux-gnu 20210117+dfsg-3

Optimizing compiler for Standard ML - amd64 runtime libraries

http://mlton.org/

sudo apt install mlton-runtime-x86-64-linux-gnu
  • Section: universe/devel
  • Architecture: amd64
  • Source Package: mlton
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Mlton
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: mlton-runtime-x86-64-linux-gnu from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

mlton-tools 20210117+dfsg-3

Optimizing compiler for Standard ML - tools

http://mlton.org/

sudo apt install mlton-tools
  • Section: universe/devel
  • Architecture: amd64
  • Source Package: mlton
  • 2 dependencies
  • normalized package name match
  • Matched by: Mlton
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: mlton-tools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
dnf95%

mlton 20210117-12.fc44

Optimizing compiler for Standard ML

http://mlton.org/

sudo dnf install mlton
  • License: MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: mlton
  • 8 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Mlton
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: mlton from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

mlton 20241230-1

Whole-program optimizing Standard ML compiler

http://mlton.org/

sudo pacman -S mlton
  • License: HPND AND MIT
  • Architecture: x86_64
  • 1 dependencies
  • normalized package name match
  • Matched by: Mlton
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: mlton from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
MacPorts95%

mlton

sudo port install mlton
  • normalized package name match
  • Matched by: Mlton
MacPorts ports tree · api.github.com · MacPorts ports tree: lang/mlton/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment