# z-libs/zen-c

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/z-libs-zen-c).**

3,819 stars · 179 forks · C · mit

## Links

- GitHub: https://github.com/z-libs/Zen-C
- Homepage: https://www.zenc-lang.org/
- awesome-repositories: https://awesome-repositories.com/repository/z-libs-zen-c.md

## Topics

`c` `compiler` `lsp` `open-source` `programming-languages` `repl` `transpiler` `zen-c`

## Description

Zen-C is a multi-target systems language and source-to-source compiler that translates high-level logic into human-readable GNU C or C11 code. It functions as a JIT-enabled programming language with an in-process compiler for real-time interactive code evaluation and testing.

The project serves as a CUDA GPU kernel generator, mapping specialized syntax to CUDA C++ using device attributes to target graphics hardware. It acts as an interoperability layer capable of emitting compatible code for C++, Objective-C, and Lisp to bridge native system frameworks and libraries.

The language includes an arbitrary-precision math library for calculations with variable-length integers and floats. Its capability surface covers systems programming workflows, including concurrent execution, network communication via TCP, UDP, HTTP, and DNS, and file system operations.

Development is supported through a Language Server Protocol implementation that provides auto-completion and real-time diagnostics for external editors.

## Tags

### Programming Languages & Runtimes

- [High-Level Source Transpilation](https://awesome-repositories.com/f/programming-languages-runtimes/source-code-compilers/c-source-translators/binary-to-c-translation/high-level-source-transpilation.md) — Translates high-level logic into human-readable GNU C or C11 code while maintaining binary interface compatibility. ([source](https://cdn.jsdelivr.net/gh/z-libs/zen-c@main/README.md))
- [Source-to-C Transpilers](https://awesome-repositories.com/f/programming-languages-runtimes/source-code-compilers/source-to-c-transpilers.md) — Translates high-level source code into human-readable GNU C or C11 code while maintaining binary interface compatibility.
- [Just-In-Time Compilation](https://awesome-repositories.com/f/programming-languages-runtimes/compiler-interpreter-internals/compiler-infrastructure/compiler-optimizations/just-in-time-compilation.md) — Evaluate code snippets in real time using an in-process just-in-time compiler for immediate feedback. ([source](https://cdn.jsdelivr.net/gh/z-libs/zen-c@main/README.md))
- [Tiered JIT Compilation](https://awesome-repositories.com/f/programming-languages-runtimes/compiler-interpreter-internals/compiler-infrastructure/compiler-optimizations/just-in-time-compilation/tiered-jit-compilation.md) — Provides an in-process compiler for real-time interactive code evaluation and testing.
- [CUDA Kernel Compilers](https://awesome-repositories.com/f/programming-languages-runtimes/compiler-interpreter-internals/compiler-infrastructure/jit-kernel-compilers/cuda-kernel-compilers.md) — Transpiles specialized syntax to CUDA C++ for graphics hardware compute kernels.
- [GPU Kernel Programming](https://awesome-repositories.com/f/programming-languages-runtimes/gpu-kernel-programming.md) — Run compute tasks on graphics hardware by transpiling to specialized syntax and device attributes. ([source](https://cdn.jsdelivr.net/gh/z-libs/zen-c@main/README.md))
- [GPU Kernel Transpilers](https://awesome-repositories.com/f/programming-languages-runtimes/gpu-kernel-transpilers.md) — Maps specialized syntax to CUDA C++ using device attributes to target graphics hardware compute kernels.
- [In-Process JIT Evaluators](https://awesome-repositories.com/f/programming-languages-runtimes/in-process-jit-evaluators.md) — Executes code snippets in real time using an integrated compiler for immediate interactive feedback.
- [Native C Interoperability](https://awesome-repositories.com/f/programming-languages-runtimes/language-interoperability/native-c-interoperability.md) — Bridges high-level logic with C++, Objective-C, and native libraries to access system frameworks.
- [Multi-Target Systems Languages](https://awesome-repositories.com/f/programming-languages-runtimes/multi-target-systems-languages.md) — Emits compatible code for C++, Objective-C, and Lisp to bridge native system frameworks.
- [Multi-Target Compilers](https://awesome-repositories.com/f/programming-languages-runtimes/source-code-compilers/multi-target-compilers.md) — Produces diverse output formats including C++, CUDA, Objective-C, and Lisp based on the target environment.
- [C Code Generators](https://awesome-repositories.com/f/programming-languages-runtimes/source-code-compilers/source-to-c-transpilers/inline-c-code-embeddings/c-code-generators.md) — Converts high-level logic into human-readable GNU C or C11 code.
- [Embeddable Compilers](https://awesome-repositories.com/f/programming-languages-runtimes/embeddable-compilers.md) — Exposes core parsing and type checking functions through a public C interface for external applications. ([source](https://cdn.jsdelivr.net/gh/z-libs/zen-c@main/README.md))
- [Native Library Integrations](https://awesome-repositories.com/f/programming-languages-runtimes/language-interoperability/foreign-function-interfaces/native-library-integrations.md) — Connects native headers and libraries by emitting compatible code segments within a high-level logic flow.
- [C-Library Bindings](https://awesome-repositories.com/f/programming-languages-runtimes/language-interoperability/foreign-function-interfaces/native-library-integrations/c-library-bindings.md) — Connects native C++ headers and libraries with high-level logic by emitting compatible code. ([source](https://cdn.jsdelivr.net/gh/z-libs/zen-c@main/README.md))
- [Multi-Target Code Generation](https://awesome-repositories.com/f/programming-languages-runtimes/multi-target-code-generation.md) — Produces various output formats including C, C++, JSON, and Graphviz. ([source](https://cdn.jsdelivr.net/gh/z-libs/zen-c@main/README.md))
- [Objective-C](https://awesome-repositories.com/f/programming-languages-runtimes/programming-language-varieties/programming-languages/systems-languages/objective-c.md) — Bridges to Objective-C to access system frameworks and existing codebase elements by compiling to native syntax. ([source](https://cdn.jsdelivr.net/gh/z-libs/zen-c@main/README.md))

### Artificial Intelligence & ML

- [GPU Kernel Implementations](https://awesome-repositories.com/f/artificial-intelligence-ml/gpu-kernel-implementations.md) — Maps specialized syntax to CUDA C++ to execute compute tasks on graphics hardware.

### Development Tools & Productivity

- [Real-Time Code Evaluation](https://awesome-repositories.com/f/development-tools-productivity/configuration-updates/real-time-runtime-updates/real-time-code-evaluation.md) — Executes code snippets in real time using an integrated compiler for immediate feedback.
- [Language Server Protocols](https://awesome-repositories.com/f/development-tools-productivity/language-server-protocols.md) — Implements the Language Server Protocol to provide auto-completion and real-time diagnostics for editors.
- [Concurrent Task Groups](https://awesome-repositories.com/f/development-tools-productivity/thread-managers/execution-thread-coordinators/concurrent-task-groups.md) — Coordinates multiple simultaneous tasks using threads and synchronization primitives to prevent data conflicts. ([source](https://cdn.jsdelivr.net/gh/z-libs/zen-c@main/README.md))

### Scientific & Mathematical Computing

- [Arbitrary Precision Arithmetic](https://awesome-repositories.com/f/scientific-mathematical-computing/numerical-mathematical-foundations/arithmetic-number-types/arbitrary-precision-arithmetic.md) — Implements a mathematical engine for calculations with variable-length integers and floats to prevent precision loss. ([source](https://cdn.jsdelivr.net/gh/z-libs/zen-c@main/README.md))

### Networking & Communication

- [Networking & Communication](https://awesome-repositories.com/f/networking-communication.md) — Sends and receives data across network connections using TCP, UDP, HTTP, and DNS operations. ([source](https://cdn.jsdelivr.net/gh/z-libs/zen-c@main/README.md))
- [Network Programming](https://awesome-repositories.com/f/networking-communication/networking/network-programming.md) — Implements network communication capabilities using TCP, UDP, HTTP, and DNS operations.

### Operating Systems & Systems Programming

- [File System Access](https://awesome-repositories.com/f/operating-systems-systems-programming/file-system-access.md) — Organizes data on disk by performing file manipulations, resolving directory paths, and accessing environment variables. ([source](https://cdn.jsdelivr.net/gh/z-libs/zen-c@main/README.md))
- [Systems Programming](https://awesome-repositories.com/f/operating-systems-systems-programming/systems-programming.md) — Provides low-level systems programming capabilities including thread management and file system operations.
