Zen C Documentation

May 9, 2026 ยท View on GitHub

Welcome to the official documentation repository for the Zen C programming language. This repository contains the technical specifications, language reference, and standard library documentation.

Documentation Index

Standard Library

The core of Zen C's power lies in its standard library. Detailed documentation for each module can be found in the std/ directory.

ModuleDescription
vecDynamic array implementation.
stringModern, safe string handling.
netHigh-level networking (TCP, HTTP).
cudaFirst-class GPU programming support.
threadConcurrency and parallelism.
jsonBuilt-in JSON serialization/deserialization.

Note

For a high-level overview of the library, see the Standard Library README.

Technical Specifications

Deep dives into the compiler's internals and tooling protocols.

Reference (16 chapters)

#ChapterDescription
1Variables & Constantslet, types, mutability
2Primitive Typesint, float, bool, char, etc.
3Aggregate TypesArrays, slices, tuples
4Functions & LambdasFunctions, closures
5Control Flowif, while, for, match
6OperatorsArithmetic, comparison, sugar operators
7Printing & F-stringsOutput, string interpolation
8Memory & LifetimesOwnership, borrowing
9OOPTraits, impl blocks, methods
10GenericsType-safe templates
11ConcurrencyStackless async/await
12AdvancedInline assembly, raw blocks
13InteropC, C++, CUDA, Objective-C interop
14Unit Testingtest, assert, expect
15DiagnosticsCompiler warnings, categories
16MISRA RulesSafety rules, Zen-specific checks
  • zenc: The core compiler source code.
  • awesome-zenc: A collection of examples and Rosetta Code implementations.

Contributing to Docs

Documentation is a community effort. If you find a typo, outdated information, or want to contribute a new guide, please open a documentation issue or pull request.