# Install mosml with Homebrew, MacPorts, Nix

Moscow ML. Version 2.10.1 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:mosml
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install mosml
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mosml
```

  Evidence: MacPorts ports tree: lang/mosml/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#mosml
```

  Evidence: nixpkgs package indexes: pkgs/by-name/mo/mosml/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:mosml
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/mosml>
- **Version:** 2.10.1
- **Source summary:** Moscow ML
- **Homepage:** <https://mosml.org/>
- **Repository:** <https://github.com/kfl/mosml>
- **Upstream docs:** <https://mosml.org/>
- **License:** GPL-2.0-or-later
- **Source archive:** <https://github.com/kfl/mosml/archive/refs/tags/ver-2.10.1.tar.gz>
- **Generated:** 2026-07-09T07:20:21+00:00

## Executables

- camlrunm (cli)
- mosml (cli)
- mosmlc (cli)
- mosmllex (cli)
- mosmlyac (cli)
- camlrunm (alias)
- mosml (alias)
- mosmlc (alias)
- mosmllex (alias)
- mosmlyac (alias)

## Dependencies

- gmp

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## Freshness

- Page generated: 2026-07-09
- Package-manager version: 2.10.1
- Local data: ok
- Upstream repository: https://github.com/kfl/mosml
- info: No package-manager update timestamp was available.
- info: No cached GitHub release or tag data was available.
## Project history and usage

Moscow ML is a lightweight implementation of Standard ML. Its project history credits Sergei Romanenko at the Keldysh Institute of Applied Mathematics, Claudio Russo, Niels Kokholm, Ken Friis Larsen, and Peter Sestoft, and notes that it uses the runtime system and many ideas from Xavier Leroy and Damien Doligez's Caml Light implementation.

### Project history

The Moscow ML manual describes version 2.10 as implementing SML as revised in the 1997 Definition, including the SML Modules language, some extensions, much of the SML Basis Library, separate compilation, and generation of standalone executables. The manual also highlights the Moscow ML Modules language, with features such as higher-order functors and other extensions while preserving compatibility goals for SML programs.

### How it is used

Its adoption niche is language education, research, and maintenance of older SML code that benefits from a small interactive system and bytecode compiler. In Homebrew and other package managers, mosml provides the classic Moscow ML toolchain rather than a general-purpose modern ML ecosystem.

### Sources

- <https://formulae.brew.sh/formula/mosml>
- <https://github.com/kfl/mosml>
- <https://mosml.org/>
- <https://mosml.org/manual.pdf>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** mosml
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Nix - mosml: normalized package name match | nixpkgs package indexes: pkgs/by-name/mo/mosml/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - mosml: normalized package name match | MacPorts ports tree: lang/mosml/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [algol68g](https://www.automicvault.com/pkg/brew/algol68g/) - Shares av.db curated category or tags: cli, compiler, interpreter, language-runtime, programming-language.
- [lua](https://www.automicvault.com/pkg/brew/lua/) - Shares av.db curated category or tags: cli, compiler, interpreter, language-runtime, programming-language.
- [polyml](https://www.automicvault.com/pkg/brew/polyml/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language, standard-ml.
- [three-body](https://www.automicvault.com/pkg/brew/three-body/) - Shares av.db curated category or tags: cli, compiler, interpreter, language-runtime, programming-language.
- [ats2-postiats](https://www.automicvault.com/pkg/brew/ats2-postiats/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language.
- [ballerina](https://www.automicvault.com/pkg/brew/ballerina/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language.
- [chapel](https://www.automicvault.com/pkg/brew/chapel/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language.
- [coconut](https://www.automicvault.com/pkg/brew/coconut/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language.
- [mlkit](https://www.automicvault.com/pkg/brew/mlkit/) - Local package facts share a topical domain. Shared terms: cli, compiler, gmp, language, language-runtime.

## Combined YAML source

View the package source record on GitHub. [combined/mosml.yml](https://github.com/automic-vault/db/blob/main/combined/mosml.yml)


## Sources

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