A web tool explores the rarity of seven-byte Git commit hashes by defining readable or interesting patterns - English words (including leetspeak), repeated characters or sequences, palindromes, ascending/descending digit runs, and tiled motifs - and assigning rarity tiers by observed drop rates. Hashes are scored by scanning every run of 3-7 characters and stacking non-overlapping pattern matches; the probability of the rarest stack divided by 16^7 yields its frequency. An interactive 268,435,456-square hex map visualizes the space, sample hashes are scored (e.g., baaabbb matches multiple repeat and palindrome patterns), and a forge function generates commits at chosen rarity tiers from common up to mythic.
The implementation runs fully in the browser: a Web Worker recounts all 16^7 possibilities and records stacks in a 2^28-bit table so tier thresholds can be adjusted without recounting, and rules compile to a GLSL shader to compute scores on the GPU for visible regions. The pattern set includes repeat(k,n), tile(m,n), palindrome(n), steps(n), and word(w,n) with a wordlist of 44 plain and 143 leet words (294 spellings). Tier sizes are concrete: mythic 507, legendary 8,319, epic 167,411, rare 2,068,053, uncommon 15,060,151, and common the remaining 251,131,015 hashes.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.