# 使用 Homebrew, Nix 安装 mlkit

查看 mlkit 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:mlkit
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mlkit
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#mlkit
```

  证据: nixpkgs package indexes: pkgs/by-name/ml/mlkit/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:mlkit
- **软件包管理器:** Homebrew
- **版本:** 4.7.22
- **来源摘要:** Compiler for the Standard ML programming language
- **主页:** <https://melsman.github.io/mlkit>
- **仓库:** <https://github.com/melsman/mlkit>
- **最后更新:** 2026-08-02T08:56:40Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- kittester (别名)
- mlkit (别名)
- mlkit-mllex (别名)
- mlkit-mlyacc (别名)
- reml (别名)
- rp2ps (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 4.7.22
## 项目历史与用法

MLKit descends from The ML Kit, Version 1, announced by Mads Tofte on 1993-03-12 and attributed there to Nick Rothwell, David N. Turner, Mads Tofte, and Lars Birkedal at Edinburgh and Copenhagen Universities. That early release was distributed with about 100 pages of documentation explaining how to build, run, read, and modify the Kit, making it both a Standard ML implementation and a compiler-hacking vehicle.

### 项目历史

The later MLKit project became a compiler toolkit for Standard ML with two main compiler paths sharing a frontend and compilation-management scheme: MLKit with Regions, with a native x64 backend based on region inference, and SMLtoJs, a JavaScript backend for browser-targeted Standard ML. Its documentation says it covers all of Standard ML from the 1997 Definition and most of the Standard ML Basis Library.

### 使用方式

MLKit's distinctive technical role is region-based memory management for ML. The project documentation describes compiler-inferred allocation and deallocation directives, region profiling, C interoperation, and optional reference-tracing garbage collection on top of region inference. In practice it is used both as an SML compiler and as a research/development tool for region inference, SML-to-JavaScript compilation, bootstrapping, ML Basis files, and compatibility work alongside tools such as MLton and smlpkg.

### 来源

- <https://elsman.com/mlkit/papers>
- <https://elsman.com/mlkit/pdf/kit.pdf>
- <https://formulae.brew.sh/formula/mlkit>
- <https://github.com/melsman/mlkit>
- <https://groups.google.com/g/comp.compilers/c/my2OjNZxT20>
- <https://raw.githubusercontent.com/melsman/mlkit/master/README.md>


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation signal

## 其他软件包管理器记录

- Nix - mlkit: normalized package name match | nixpkgs package indexes: pkgs/by-name/ml/mlkit/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/mlkit.yml](https://github.com/mxcl/pkgdb/blob/main/combined/mlkit.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
