# Mercury-Language/mercury

The Mercury logic programming system.

Repository: https://github.com/Mercury-Language/mercury
Canonical: https://ross.abutalabs.com/products/mercury-language-mercury
Language: Mercury
License: NOASSERTION
License Family: other
Last push: 2026-08-31T11:05:27+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 100, release rhythm 35, longevity 100
- inputs: {"age_days": 4991, "days_push": 2, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1071, forks 71 (observed 2026-09-01T02:13:55.646544+00:00)

## What it is
The Mercury logic/functional programming language system, including a self-hosting compiler with multiple backends targeting C, C#, and Java. It combines declarative programming with strong static analysis and error detection.

## Use cases
- write logic programming programs with strong static typing
- compile declarative code to C, C#, or Java
- learn a pure logic/functional programming language
- build reliable programs with advanced static error detection
- cross-compile Mercury programs to different targets
- explore declarative programming on many operating systems

## When to choose
- you want a statically typed logic/functional language with strong error detection
- you need declarative code compiled to C, C#, or Java backends
- you need broad OS support including Linux, macOS, Windows, and BSDs

## When to avoid
- you need a large ecosystem of libraries and community packages
- you want mainstream language tooling and hiring pool
- you need dynamic or scripting-style rapid prototyping

## Facets
- artifact type: cli-tool
- maturity: active
- function: compiler, programming-language, interpreter, developer-tools
- domain: programming-languages, compilers, developer-tools
- platform: windows, bsd, cross-platform, cli
- tags: logic-programming, functional-programming, declarative-language, self-hosting-compiler, strong-static-typing, mercury-language, command-line, linux, macos

## Member repositories
- Mercury-Language/mercury (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-09-01T02:13:55.646544+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:53:47.687846+00:00, confidence not recorded.
  - readme: https://github.com/Mercury-Language/mercury (fetched 2026-09-01T02:13:55.646544+00:00, sha eef65dcccdaf)
- Data as of 2026-08-30T08:39:29.467469+00:00.
