ZEN CCommunity Edition

Modern Ergonomics.
Zero Overhead.
Pure C.

A strictly typed systems language that brings pattern matching, traits, and ownership semantics to the C ecosystem.

$ git clone https://github.com/zenc-lang-ce/zenc.git
echo_server.zc
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
import "std/net/tcp.zc"

fn main() {
    "Echo Server listening on :8080";
    let listener = TcpListener::bind("127.0.0.1", 8080).unwrap();

    loop {
        // Accept new connections
        let stream = listener.accept().unwrap();
        let buf: char[1024];
        
        while true {
            let n = stream.read(&buf[0], 1024).unwrap();
            if n == 0 { break; }
            stream.write(&buf[0], n);
        }
    }
}
BUILT FOR: GAMES • HIGH PERFORMANCE SOFTWARE • EMBEDDED SYSTEMS • KERNEL DEVELOPMENT

Start Compiling

CLONE
git clone https://github.com/zenc-lang-ce/zenc.git
BUILD
make
INSTALL
sudo make install

Works with GCC/Clang/TCC and other compilers!

Zero Friction. Maximum Control.

Experience the transparency of C combined with the developer experience of a modern language.

do_people_really_read_this.zc
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
struct Features {
    transparent_compilation: bool;
    native_c_abi:            bool;
    resource_management:     bool;
    monomorphization:        bool;
    pattern_matching:        bool;
    async_await:             bool;
}

impl Features {
    // Constructor. All features ship enabled!
    fn new() -> Self {
        return Features{
            transparent_compilation: true,
            native_c_abi:            true,
            resource_management:     true,
            monomorphization:        true,
            pattern_matching:        true,
            async_await:             true,
        };
    }

    // Describe the language in one line
    fn describe(self) {
        println "Modern Ergonomics. Zero Overhead. Pure C.";
    }
}

fn main() {
    let zc = Features::new();
    zc.describe();
}
transparent_compilation

Transpiles directly to clean, readable GNU C11: pure C without black boxes.

native_c_abi

Call any C function, use any C struct. Zero FFI boilerplate.

resource_management

Implicit Drop trait prevents memory leaks without a GC.

monomorphization

Zero-overhead generics: specialized at compile time, not runtime.

async_await

High-performance async I/O without callback hell or hidden runtimes.

pattern_matching

Exhaustive match on enums and tuples for bulletproof control flow.

zero_cost_generics

Parametric types that disappear at compile time: no virtual dispatch.

Polyglot Architecture

Zen C adapts to your ecosystem. Link seamlessly with existing codebases.

CUDA

--cuda

Write GPU kernels with Zen syntax using launch and @global attributes.

@global
fn add(a: float*, b: float*) {
    let i = thread_id();
    a[i] += b[i];
}

C++

--cpp

Generate C++ compatible code to link against libraries. Instantiate templates in raw blocks.

raw {
    std::vector<int> get_vec() {
        return {1, 2, 3};
    }
}

Objective-C

--objc

Native macOS support. Mix [Object message] syntax within your systems code.

raw {
    id pool = [[NSPool alloc] init];
    [pool drain];
}

Community Videos

Watch tutorials, reviews, and deep-dives created by the Zen C community.

The Path Forward

Our conceptual roadmap towards ecosystem maturity.

0x00
Current Foundation

Core Language

  • Zero-overhead C Transpilation
  • C++, Obj-C, CUDA Interop
  • RAII resource semantics
  • Monomorphized Generics
  • LSP & APE build support
0x10
Next Up

Ecosystem Expansion

  • Official Package Manager
  • Wasm & Emscripten Target
  • Advanced LSP features
  • Expanded std library
0x20
In The Horizon

Advanced Semantics

  • Stabilized async/await
  • comptime reflection API
  • Improved plugin system
  • Self-hosted compiler
0x30
The Destination

Stabilization & 1.0

  • Language Specification
  • Standard Library API Freeze
  • ABI stability guarantees
  • Embedded/Kernel case studies