typelevel/spire
Powerful new number types and numeric abstractions for Scala. observed · 2026-08-28
Health v2 · maintenance only
65/100
- Activity 94
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5417
- days_rel: n/a
- days_push: 37
- n_releases_24m: 0
Adoption not part of the score
1772 stars · 239 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Spire is a numeric library for Scala providing powerful new number types (like Rational, Complex, and more) and generic numeric abstractions via type classes. It aims to be fast and precise, using specialization and macros so generic code performs like hand-written numeric code.
Use cases
- perform exact arithmetic with rational numbers in Scala
- write generic numeric algorithms without baking in a numeric type
- use complex numbers, intervals, and other number types in Scala
- avoid boxing overhead in generic numeric code
- implement math-heavy libraries with type class abstractions
When to choose
- you need precise or arbitrary-precision numeric types on the JVM or Scala.js
- you want generic numeric code with performance comparable to direct implementations
- you're in the Typelevel/Scala ecosystem and want algebraic type classes
When to avoid
- you're not working in Scala
- you only need simple built-in Int/Double arithmetic
- you need GPU or vectorized numeric computing
Facets
library · maturity active
math serialization programming-languages mathematics jvm jvm-scripting numeric-types typeclasses scala specialization rational-numbers complex-numbers algorithms
2 sources
- readme: https://github.com/typelevel/spire · fetched 2026-08-28 · 58ef3e24d57b
- homepage: http://typelevel.org/spire/ · fetched 2026-08-29 · 72263392f3f9
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| typelevel/spire | main | 65 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem