zig VS llvm-project

Compare zig vs llvm-project and see what are their differences.

zig

General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software. (by ziglang)

llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies. (by llvm)
Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io
featured
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
zig llvm-project
902 419
39,860 33,320
1.5% 1.9%
10.0 10.0
about 8 hours ago 6 days ago
Zig LLVM
MIT License GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

zig

Posts with mentions or reviews of zig. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-07-03.
  • Zig paradigm shift – initial Writergate
    7 projects | news.ycombinator.com | 3 Jul 2025
    Actually, nobody.

    Here is the commit where Reader/Writer was introduced: https://github.com/ziglang/zig/commit/5e212db29cf9e2c06aba36...

    This is a few months after `git init`. You can see I was really just working on the parser, with a toy example to get things started.

    Over time, I merged contributions that made minor changes and shuffled things around, and these APIs evolved to kind of work okay. But nobody really considered "the Zig IO stack" as a whole and put in design effort. That is happening for the first time right now.

  • Allocators Are Monkeys with Typewriters
    1 project | news.ycombinator.com | 22 Jun 2025
  • Bzip2 crate switches from C to 100% rust
    7 projects | news.ycombinator.com | 17 Jun 2025
    This list's Zig as an entry, despite the Zig project having very clear plans[0] for a 1.0 release. That's not 0ver, it's just the beta stage of semver.

    [0] https://github.com/ziglang/zig/milestone/2

  • Show HN: Dk – A script runner and cross-compiler, written in OCaml
    2 projects | news.ycombinator.com | 16 Jun 2025
    I usually structure teaching the same way done in https://www.writethedocs.org/videos/eu/2017/the-four-kinds-o.... So "the Quick Walkthrough Guide will explain what dk scripts are and give you small examples to run" is simply a learning-oriented tutorial which is mostly about giving students confidence and visual feedback. And simultaneously it an explanation of nothing (the video has a great explanation for why to do that). So, I agree that an explanation of threads + Internet + cross-compilation would quite nuts, but for an experienced developer I'd expect to see a meaty example (take a look at https://ziglang.org/ for comparison).

    One concrete action may be to make two distinct Quick Start guides ... one for the experienced and one for the inexperienced students though. Is that your thinking?

  • Zig Devlog: Self-Hosted x86 Back End Is Now Default in Debug Mode
    15 projects | news.ycombinator.com | 8 Jun 2025
  • Low-Level Optimization with Zig
    7 projects | news.ycombinator.com | 7 Jun 2025
    > I feel like I can write powerful code in any language, but the goal is to write code for a framework that is most future proof, so that you can maintain modular stuff for decades.

    I like Zig a lot, but long-term maintainability and modularity is one of its weakest points IMHO.

    Zig is hostile to encapsulation. You cannot make struct members private: https://github.com/ziglang/zig/issues/9909#issuecomment-9426...

    Key quote:

    > The idea of private fields and getter/setter methods was popularized by Java, but it is an anti-pattern. Fields are there; they exist. They are the data that underpins any abstraction. My recommendation is to name fields carefully and leave them as part of the public API, carefully documenting what they do.

    You cannot reasonably form API contracts (which are the foundation of software modularity) unless you can hide the internal representation. You need to be able to change the internal representation without breaking users. I hope Zig reverses this decision someday and supports private fields.

  • Why Use Structured Errors in Rust Applications?
    3 projects | news.ycombinator.com | 1 Jun 2025
    > Did Zig really do that?

    https://github.com/ziglang/zig/issues/544#issuecomment-61807...

    > In order to simplify everything, tabs are not allowed. Spaces are necessary; we can't ban spaces.

    They seem to be open to the alternative but not to a solution that isn't forced on people:

    > Maybe someday, we'll switch to tabs for indentation, spaces for alignment and make it a compile error if they are incorrectly mixed

    Zig already has a builtin code formatter that automatically changes formatting to their preference, but that's not enough.

  • A new language inspired by Go
    4 projects | news.ycombinator.com | 29 May 2025
    Zig solved this by not having a string type at all and not shipping full Unicode support in std: https://github.com/ziglang/zig/issues/234#issuecomment-27630....
  • Learning C3 (As a Zig User)
    7 projects | news.ycombinator.com | 29 May 2025
  • What is Bun? The Node.js Alternative Explained
    1 project | dev.to | 28 May 2025
    Bun is written from scratch in Zig, a low-level language focused on performance and safety. Instead of using V8 (the engine behind Node and Deno), Bun runs on JavaScriptCore, the engine used in Safari. This choice helps it stay fast and efficient, both in terms of memory and startup time.

llvm-project

Posts with mentions or reviews of llvm-project. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-06-29.
  • So you want to serialize some DER?
    1 project | news.ycombinator.com | 30 Jun 2025
    The most interesting part of this post is the bit about half way down, where Alex uses Claude to help identify a missing compiler optimization in LLVM... and then uses Claude Code to implement that optimization and gets a PR accepted to LLVM itself! https://github.com/llvm/llvm-project/pull/142869
  • NativeJIT: A C++ expression –> x64 JIT
    6 projects | news.ycombinator.com | 29 Jun 2025
    it's mostly upstream now, no need to dig around in their repos

    https://github.com/llvm/llvm-project/tree/main/clang/tools/c...

  • Performance Debugging with LLVM-mca: Simulating the CPU
    1 project | news.ycombinator.com | 29 Jun 2025
    > Are you saying the model used to simulate many different cpu models is the same, which makes comparing CPUs harder? Or are you saying the model is not accurate?

    Both, but mostly the former. You can view the scheduling models used for a given CPU here: https://github.com/llvm/llvm-project/blob/main/llvm/lib/Targ...

        * CortexA53Model used for: A34, A35, A320, a53, a65, a65ae
  • What I talk about when I talk about IRS
    1 project | news.ycombinator.com | 16 Jun 2025
  • Getting C++ Hello World working on Windows (a comedy and& tragedy)
    1 project | news.ycombinator.com | 7 Jun 2025
    3. Clang-LLVM + Windows SDK + Cmake + jom (and Windows CRT from C3 install) => Works fine https://github.com/llvm/llvm-project/releases/download/llvmo...

    (I use 3 for D too)

    I would like to add toyour guide with OpenWatcom V2 (https://github.com/open-watcom/open-watcom-v2)

  • Top researchers leave Intel to build startup with 'the biggest, baddest CPU'
    4 projects | news.ycombinator.com | 6 Jun 2025
    These files exist (https://github.com/llvm/llvm-project/blob/main/llvm/lib/Targ...) but it is very complicated because the processors themselves are very complicated.
  • Apple is adding Mach-O's riscv32 support to LLVM
    1 project | news.ycombinator.com | 29 May 2025
  • Claude 4
    11 projects | news.ycombinator.com | 22 May 2025
    I used Cline+Claude 3.7 Sonnet for the initial draft of this LLVM PR. There's a lot of handholding and the final version was much different than the original.

    https://github.com/llvm/llvm-project/pull/130458

    Right now I'm using Roo Code and Claude 4.0. Roo Code looks cooler and draws diagrams but I don't know if it's better.

  • Making the rav1d Video Decoder 1% Faster
    5 projects | news.ycombinator.com | 22 May 2025
    https://news.ycombinator.com/item?id=43888005

    > In a non-inlined, non-PGO scenario the compiler doesn't have enough information to tell whether the optimization is suitable.

    I guess you're talking about stores and load across function boundaries?

    Trivia: X86 LLVM creates a whole Pass just to prevent this partial-store-to-load issue on Intel CPUs: https://github.com/llvm/llvm-project/blob/main/llvm/lib/Targ...

  • Project Verona: Fearless Concurrency for Python
    2 projects | news.ycombinator.com | 18 May 2025
    Do you like have any idea what you're talking about? Or are you just making it up for internet points? The target is part of the input.

    Lemme ELI5

    https://github.com/llvm/llvm-project/tree/main/llvm/test/Cod...

    You see how this folder has folders for each target? Then within each target folder there are tests (thousands of tests)? Each of those tests is verified deterministically on each commit.

What are some alternatives?

When comparing zig and llvm-project you can also consider the following projects:

ssr-proxy-js - A Node.js tool for Server-Side Rendering (SSR) and Static Site Generation (SSG) using headless Chrome via Puppeteer

Lark - Lark is a parsing toolkit for Python, built with a focus on ergonomics, performance and modularity.

Odin - Odin Programming Language

gcc

v - Simple, fast, safe, compiled language for developing maintainable software. Compiles itself in <1s with zero library dependencies. Supports automatic C => V translation. https://vlang.io

dmd - dmd D Programming Language compiler

Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io
featured
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured

Did you know that Zig is
the 19th most popular programming language
based on number of references?