Bob's Zig toolkit (threading, parallel, IO, TUI, etc.)
  • Zig 75.8%
  • TLA 20.6%
  • C 3.6%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-08 10:18:56 -08:00
docs TUI Mainscreen renderer semantics improvement 2026-11-08 10:18:56 -08:00
examples TUI Mainscreen renderer semantics improvement 2026-11-08 10:18:56 -08:00
microbenchmarks Windows support 2026-10-26 01:30:17 -07:00
models Add kit.tracing and instrument the examples and microbenchmarks 2026-10-24 05:10:34 -07:00
src TUI Mainscreen renderer semantics improvement 2026-11-08 10:18:56 -08:00
.clang-format Add thread pool, lock-free queues, sync primitives, and formal models 2026-09-28 08:38:56 +08:00
.gitignore Add kit.tracing and instrument the examples and microbenchmarks 2026-10-24 05:10:34 -07:00
.prettierrc.json Add thread pool, lock-free queues, sync primitives, and formal models 2026-09-28 08:38:56 +08:00
AGENTS.md TUI Mainscreen renderer semantics improvement 2026-11-08 10:18:56 -08:00
architecture.dot Various lower level optimizations 2026-10-24 16:14:20 -07:00
architecture.svg Various lower level optimizations 2026-10-24 16:14:20 -07:00
build.zig Windows support 2026-10-26 01:30:17 -07:00
build.zig.zon Repo reorg 2026-10-23 04:16:52 -07:00
LICENSE Initial commit 2026-09-25 04:35:52 +00:00
pixi.lock Various lower level optimizations 2026-10-24 16:14:20 -07:00
pixi.toml Various lower level optimizations 2026-10-24 16:14:20 -07:00
README.md Unicode changes / exposing more unicode features 2026-11-08 10:18:56 -08:00

Kit

Kit is a collection of Zig libraries for parallel computation, terminal user interfaces, and execution tracing.

The components of Kit

Unicode

kit.unicode.generalCategory(cp) returns the Unicode general category. Surrogates retain their category. Values above U+10FFFF return .other_not_assigned.

kit.unicode.uppercaseScalar(cp) returns the locale-independent full uppercase mapping when the result contains one code point. It returns null for expansions, including ß to SS. Unmapped and out-of-range inputs remain unchanged.

Kit includes the Unicode data and generated lookups behind these APIs. Consumers import the public kit module without additional Unicode imports or build steps.

Examples

Use zig from your PATH, or replace zig in the commands below with the path to your compiler. The package manifest declares the minimum Zig version.

Start with the Julia set renderer for parallel loops and reductions, or the mock chat application for an interactive terminal UI.

To run the renderer, start at the repository root:

cd examples
zig build julia_range

The examples are a separate package. Use their dependency declaration and build script to add Kit to your own application.

Development

With the Pixi development environment, run these from the repository root:

pixi run test
pixi run fmt-check

To run the tests with your own compiler instead:

zig build test

See the task definitions for fuzzing, model checks, and other tools.

For design details and verification: