Skip to content

Idea: Use Zig as build system #17

@ghost

Description

Ziglang is a systems programming language that's still in development. It focuses on having good interoperability with C. One of the outstanding features of its compiler is the ability to compile C code: It can be used as a drop-in replacement for gcc or clang. It doesn't have any dependencies, and is very easy to install. It can also cross-compile C code to other operating systems and/or CPU architectures.

Is there an interest in using Zig as the suggested compiler for the project? While not yet considered stable, it is successfully used at and supported by Uber, Google and Cloudflare.

Using zig cc as a compiler could also open the door to potentially writing parts of the codebase in Zig, which is a bit more memory-safe than C.

Please don't take this as an attempt to enforce Zig upon everyone, I just think it could make for a nicer DX working on this project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions