Libmir Archive

Libmir Archive

Community documentation archive for Mir — the D language numerical computing library ecosystem.

Unofficial archive

This site is a community-maintained archive, not the official Mir project. Content is derived from the open-source libmir GitHub organization under Apache-2.0. Maintainer 9il stated in issue #481 that the community is free to host docs elsewhere — this is that effort.

What is Mir?

Mir is a collection of D language libraries for numerical computing, scientific programming, and high-performance data manipulation. Originally developed by Ilia Ki (9il) and contributors, Mir provides:

  • ndslice — N-dimensional array slices with NumPy-like semantics
  • Algebraic types — Type-safe tagged unions and variants
  • Optimization — Nonlinear least-squares and gradient-based solvers
  • Serialization — Fast ION binary and JSON I/O
  • Random — High-quality statistical distributions
  • BetterC support — Core libraries work without the D runtime or GC

Library index

Quick status

LibraryLast commitDUB latestStatus
mir-algorithmFeb 2026v3.22.4Active
mir-coreFeb 2026latestActive
mir-randomJun 2026latestActive
mir-optimMay 2025latestActive
mir-ionNov 2025latestActive
lubeckJul 2023Dormant

Getting started

Add any Mir library to a DUB project:

// dub.sdl
dependency "mir-algorithm" version="~>3.0"
dependency "mir-core" version="~>1.0"

Or with dub.json:

{
  "dependencies": {
    "mir-algorithm": "~>3.0",
    "mir-core": "~>1.0"
  }
}

On this page