# zig notes on [zig](https://ziglang.org/) patterns. ## topics - [0.15](./0.15/) - version-specific patterns (i/o, arraylist, crypto, testing) - [0.16](./0.16/) - std.Io interface, async/concurrent (preview) - [build](./build/) - build system patterns from large projects ## sources patterns derived from building and studying: | project | what it is | |---------|------------| | [music-atmosphere-feed](https://tangled.sh/@zzstoatzz.io/music-atmosphere-feed) | bluesky feed generator | | [find-bufo](https://tangled.sh/@zzstoatzz.io/find-bufo) | bluesky bot | | [leaflet-search](https://tangled.sh/@zzstoatzz.io/leaflet-search) | fts search backend | | [pollz](https://tangled.sh/@zzstoatzz.io/pollz) | bluesky polls (zqlite + transactions) | | [zql](https://tangled.sh/@zzstoatzz.io/zql) | comptime sql parsing | | [zat](https://tangled.sh/@zzstoatzz.io/zat) | atproto primitives (jwt, crypto, CBOR, firehose) | | [k256](https://tangled.sh/@zzstoatzz.io/k256) | optimized secp256k1 ECDSA (5×52-bit field, GLV endomorphism) | | [atproto-bench](https://tangled.sh/@zzstoatzz.io/atproto-bench) | three-way AT Protocol benchmarks (zig vs Go vs Rust) | | [logfire-zig](https://tangled.sh/@zzstoatzz.io/logfire-zig) | OTLP observability client | | [prefect-zig](https://tangled.sh/@zzstoatzz.io/prefect-zig) | prefect orchestration server | | [ghostty](https://github.com/ghostty-org/ghostty) | terminal emulator (build system) | | [bun](https://github.com/oven-sh/bun) | javascript runtime (build system) | ## libraries - [websocket.zig](https://github.com/karlseguin/websocket.zig) - websocket client with tls - [zqlite.zig](https://github.com/karlseguin/zqlite.zig) - sqlite wrapper