# A hash array-mapped trie implementation in C

> Long-simmering side project that is finally ready to see the light. HAMTs are a cool persistent data structure and implementing one has been a lot of fun. Beyond the code, there is likely some value in the extensive and largely complete implementation docs; basic benchmarks are linked in the README…

Page: https://nowfound.app/launch/a-hash-array-mapped-trie-implementation-in-c

- Launched: 2023-07-10
- Launch-day votes: 171, 56 comments; #210 of 3,904 launches that month (top 5%)
- Website: [github.com](https://github.com/mkirchner/hamt), online when checked 2026-09-16
- Category: [Dev tools](https://nowfound.app/c/developer-tools.md)
- Pricing: Free. Free and open source (checked 2026-11-21 on its site)
- Forecast: 94% chance its website is still online in November 2031 (99% in November 2027, 97% in November 2029). Made 2026-11-29 and not revised. Typical launch of 2023: 87%. [Method](https://nowfound.app/forecast.md)
- Originality: 44/100 (familiar idea). More original than 44% of products launched in 2023. On its launch day the archive already held 14 similar products; 13 products like it have launched since.

## In plain words

A C library implementing hash array-mapped tries (HAMTs), a persistent data structure for efficient key-value storage. The project includes comprehensive documentation and benchmarks, designed as a reference implementation similar to libavl. It targets developers building systems requiring immutable or persistent data structures, offering both usable code and educational resources for understanding HAMT design and performance characteristics.

_Written by AI from its launch page and website, 2026-09-05._

## What it does, from its own words

A hash array-mapped trie implementation in C. Contribute to mkirchner/hamt development by creating an account on GitHub.

## Does a similar job

- [Integer Map Data Structure](https://nowfound.app/launch/integer-map-data-structure): This project presents a new data structure for storing ordered integer maps. The proposed data structure is a compressive, cache-friendly, radix tree that has performance comparable to an unordered m… (2024-01-25, 91 votes, free, forecast: 95% online in 2031, github.com)
- [Kent Dybvig's Scheme Machine in 400 Lines of C](https://nowfound.app/launch/kent-dybvig-s-scheme-machine-in-400-lines-of-c-heap-memory-m): Heap based scheme machine. GitHub Gist: instantly share code, notes, and snippets. (2025-10-06, 226 votes, forecast: 97% online in 2031, gist.github.com)
- [A Lock- and wait-free hashtable (and an array](https://nowfound.app/launch/a-lock-and-wait-free-hashtable-and-an-array-too-written-in-c): 📶 A lock- and wait-free hashtable (and an array too) (2016-10-27, 24 votes, free, forecast: 90% online in 2031, github.com)
- [A minimal Forth-like stack interpreter library in C](https://nowfound.app/launch/i-built-a-minimal-forth-like-stack-interpreter-library-in-c): Stacklib.h is a single-header C library that implements a minimal Forth-like stack interpreter. (2025-09-11, 47 votes, forecast: 93% online in 2031)
- [Going into freshman year, figured I should](https://nowfound.app/launch/going-into-freshman-year-figured-i-should-build-an-interpret): Crumb is a garbage-collected, dynamically typed functional programming language implemented in C. (2023-08-26, 138 votes, forecast: 80% online in 2031)
- [A RISC-V core in Racket](https://nowfound.app/launch/a-risc-v-core-in-racket): This project is a RISC-V processor core implemented in Racket, a Lisp-based programming language. (2021-04-30, 122 votes, forecast: 91% online in 2031, guillaume.baierouge.fr)

All alternatives: https://nowfound.app/alternatives/a-hash-array-mapped-trie-implementation-in-c.md

## For the maker of A hash array-mapped trie implementation in C

- Feature it at the top of the NowFound home page for $19 for 30 days, marked sponsored: https://nowfound.app/feature/a-hash-array-mapped-trie-implementation-in-c
- Free: put the badge on the product's own site and it joins Featured products after the paid spots, and this page links to the site with a normal link search engines follow. HTML for the footer: `<a href="https://nowfound.app/launch/a-hash-array-mapped-trie-implementation-in-c"><img src="https://nowfound.app/badge/a-hash-array-mapped-trie-implementation-in-c.svg" alt="A hash array-mapped trie implementation in C on NowFound" height="32"></a>`

Source: [Show HN post](https://news.ycombinator.com/item?id=36672957)
