Smallest possible self-hosting zig compiler

This page summarizes the projects mentioned and recommended in the original post on /r/Zig

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • fngi

    a readable language that grows from the silicon

    I've been writing my own language, fngi, which is inspired by Forth to create an extremely minimal language. However, I'm considering doing a rewrite and in so doing am taking a second look at some other languages.

  • qbe-rs

    QBE IR in natural Rust data structures

    So my question is this: if a backend like QBE (~12k Loc) was added to Zig and Zig only had to compile Zig code (no C, etc) for that QBE backend -- about how many LoC would that Zig need to be?

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

  • zigenesis

    Build ANY project in ANY Language with Zig.

    First, I recently started a new project in this area that might interest you: https://github.com/bettertools/zigenesis

  • zig

    General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.

    Next, you've come at a very exciting time, that C++ LOC number was alot higher yesterday. Last night Andrew merged a change to remove the old stage1 C++ compiler which removed about 100,000 LOC (https://github.com/ziglang/zig/pull/13560). The bootstrap process for Zig from a C compiler is pretty "interesting" now. Zig includes a compiled version of itself inside the repo now that is in the WASM format and also includes a WASM interpreter written in C...both of which are used to bootstrap from a C toolchain now.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts