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.
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);
}
}
}
Start Compiling
git clone https://github.com/zenc-lang-ce/zenc.git
make
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.
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();
}
Transpiles directly to clean, readable GNU C11: pure C without black boxes.
Call any C function, use any C struct. Zero FFI boilerplate.
Implicit Drop trait prevents memory leaks without a GC.
Zero-overhead generics: specialized at compile time, not runtime.
High-performance async I/O without callback hell or hidden runtimes.
Exhaustive match on enums and tuples for bulletproof control flow.
Parametric types that disappear at compile time: no virtual dispatch.
Polyglot Architecture
Zen C adapts to your ecosystem. Link seamlessly with existing codebases.
CUDA
--cudaWrite 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++
--cppGenerate C++ compatible code to link against libraries. Instantiate templates in raw blocks.
raw {
std::vector<int> get_vec() {
return {1, 2, 3};
}
}
Objective-C
--objcNative 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.
Core Language
- Zero-overhead C Transpilation
- C++, Obj-C, CUDA Interop
- RAII resource semantics
- Monomorphized Generics
- LSP & APE build support
Ecosystem Expansion
- Official Package Manager
- Wasm & Emscripten Target
- Advanced LSP features
- Expanded std library
Advanced Semantics
- Stabilized
async/await comptimereflection API- Improved plugin system
- Self-hosted compiler
Stabilization & 1.0
- Language Specification
- Standard Library API Freeze
- ABI stability guarantees
- Embedded/Kernel case studies