{"slug": "ordered-a-fast-sorted-collection-library-for-zig", "title": "Ordered: a fast sorted collection library for Zig", "summary": "CogitatorTech released Ordered, a Zig library of sets and maps that keep elements sorted by key at all times, targeting Zig 0.16 and 0.17 with older releases expected to work on Zig 0.15. The library is built around a simple, uniform API across implementations, with correctness and efficiency as stated design goals, and benchmark results comparing Ordered against sorted set and map implementations from similar libraries are published on the project's benchmarks site. The author said AI-assisted coding tools are used on the project, with changes kept small for review before approval.", "body_md": "Ordered is a Zig library that includes the implementations of sets and maps where elements are sorted by their keys at all times.\n\nThe main design decisions for the library were that the API must be simple and uniform (have the same form and facade for different implementations), the implementations must be correct, and efficient (they must be fast and don’t use more memory than needed).\n\n Some benchmark results for the implementations in Ordered against sorted set and map implementations from similar libraries are available [here](https://cogitatortech.github.io/benchmarks-ordered/).\n\n Ordered itself is available [here](https://github.com/CogitatorTech/ordered).\n\nOrdered is mainly for Zig 0.16 and 0.17 (but older releases should work with Zig 0.15 too).\n\nI use AI-assisted coding tools for the project. However, I’m very opinionated about how AI should work, and the process involves a lot of back and forth between me and AI. I normally keep the changes small so I can have a look before approving.", "url": "https://wpnews.pro/news/ordered-a-fast-sorted-collection-library-for-zig", "canonical_source": "https://ziggit.dev/t/ordered-a-fast-sorted-collection-library-for-zig/18285#post_1", "published_at": "2026-11-09 12:32:54+00:00", "updated_at": "2026-11-09 12:54:06.755586+00:00", "lang": "en", "topics": ["developer-tools"], "entities": ["Ordered", "Zig", "CogitatorTech"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/ordered-a-fast-sorted-collection-library-for-zig", "markdown": "https://wpnews.pro/news/ordered-a-fast-sorted-collection-library-for-zig.md", "text": "https://wpnews.pro/news/ordered-a-fast-sorted-collection-library-for-zig.txt", "jsonld": "https://wpnews.pro/news/ordered-a-fast-sorted-collection-library-for-zig.jsonld"}}