🍺 BREW Explorer

← all formulae

gperf

brew install gperf v3.3 GPL-3.0-or-later

GNU utility that generates perfect hash functions from word lists for compile-time lookup tables.

Why you might care

Gperf is primarily a build-time dependency that creates minimal, collision-free hash functions from static keyword sets—commonly used by compilers and parsers to optimize keyword recognition. It produces C/C++ code, making it valuable for projects that need fast, deterministic hashing of a fixed set of strings without runtime overhead or external libraries.

Categories

Alternatives

cmph minimal-perfect-hash
4.6k
30-day installs · #635
17.5k
90-day · #584
55.1k
365-day · #637

Links

Blurb generated by claude-haiku-4-5 on today.

Raw metadata
{
  "aliases": [],
  "alternatives": [
    "cmph",
    "minimal-perfect-hash"
  ],
  "build_dependencies": [],
  "categories": [
    "build-system",
    "compiler"
  ],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Perfect hash function generator",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:38:22+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "gperf",
  "github_default_branch": null,
  "github_last_commit_at": null,
  "github_readme_excerpt": null,
  "github_repo": null,
  "github_stars": null,
  "github_topics": [],
  "homepage": "https://www.gnu.org/software/gperf/",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": "gperf - GNU Project - Free Software Foundation (FSF)",
  "installs_30d": 4637,
  "installs_365d": 55123,
  "installs_90d": 17469,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "GPL-3.0-or-later",
  "llm_generated_at": "2026-06-20T23:46:03+00:00",
  "llm_model": "claude-haiku-4-5",
  "name": "gperf",
  "oldnames": [],
  "one_liner": "GNU utility that generates perfect hash functions from word lists for compile-time lookup tables.",
  "optional_dependencies": [],
  "rank_30d": 635,
  "rank_365d": 637,
  "rank_90d": 584,
  "raw_hash": "d6e069447ae3682b",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/g/gperf.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": null,
  "version_stable": "3.3",
  "versioned_formulae": [],
  "why_use_this": "Gperf is primarily a build-time dependency that creates minimal, collision-free hash functions from static keyword sets\u2014commonly used by compilers and parsers to optimize keyword recognition. It produces C/C++ code, making it valuable for projects that need fast, deterministic hashing of a fixed set of strings without runtime overhead or external libraries."
}