Skip to content
CAI
Produce a survey ↗Verify a survey

typelevel/spire

Spire is a Scala library providing a comprehensive algebraic and mathematical framework for numerical computing. It offers a rich hierarchy of type classes for rings, fields, and vector spaces, supported by macro-based optimizations for performance and exact arithmetic. The system also includes robust utilities for random number generation, interval arithmetic, and polynomial operations, all tested for mathematical correctness.

39.8

Weak · 3 August 2026

38k

lines of production code

Scala

primary language

3

bus factor · 106 authors in all

3

measurements over time

CAI band scale
CAI trend line

How it got here

2011–2013 · Algebraic and mathematical expansion

This period focused on significantly expanding Spire's mathematical capabilities by introducing new type classes for vector spaces, geometry, and random distributions. The codebase also saw major refactoring in the math package, the addition of polynomial and prime number utilities, and the modernization of the build and benchmarking infrastructure.

14 changes

2014–2022 · Algebraic structures and macro-based optimization

This period focused on expanding Spire's algebraic capabilities by introducing free monoids, groups, and partial algebraic structures, alongside new numeric types like FixedPoint and Interval sets. Significant effort was invested in macro-based optimizations, including auto-derivation of typeclasses, floating-point filter fusion, and compile-time overflow checking. The work also included comprehensive property-based testing and the introduction of Scala 3 specific syntax and macro implementations.

42 changes

CAI lens gauges

Survey your own repository

typelevel/spire was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point the surveyor at a repository you know and see whether you agree with it.

Survey a repository

About this page

  • The description of this project is derived from its own commit history, not from its README.
  • The score is its highest published measurement, taken on 3 August 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 0fe5a6a971 — the exact code this score is about.
  • Scored under rubric rubric-2026.08.18. Score the same commit under that rubric and you get the same number.
CAI link cards