Zig is now self–hosted by default

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
InfluxDB high-performance time series database
Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.
influxdata.com
featured
  1. zig

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

    Not quite - what you said is true for a hypothetical "stage4" however there is a distinct difference between stage2 and stage3. While they are built from the same source code, and therefore have the same logic, they are lowered by different backends, meaning they will have potentially drastically different performance characteristics depending on the differences between the stage1 and stage2 backend, respectively.

    Related: https://github.com/ziglang/zig/issues/12183

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. zls

    A Zig language server supporting Zig developers with features like autocomplete and goto definition

  4. zig-bootstrap

    take off every zig

    They have a project for maintaining this: https://github.com/ziglang/zig-bootstrap

  5. live-bootstrap

    Use of a Linux initramfs to fully automate the bootstrapping process

  6. mrustc

    Alternative rust compiler (re-implementation)

    Since February, the mrustc project [0] has been capable of bootstrapping a relatively-recent Rust compiler from C++. (It would take another 8 Rust-to-Rust steps to reach the latest stable version.) I've personally tested it on my x86_64-linux-gnu machine, but I don't know how tough it would be to get it to support new targets.

    [0] https://github.com/thepowersgang/mrustc

  7. bootstrap-seeds

    The roots of trust for all architectures

    Yeah, it's a binary blob, but it's small enough to be easily auditable. Anyone with some knowledge of x86 assembly can read the annotated version [1] and verify that it does what it claims (which is to convert ASCII hex with comments into binary).

    You're right, it also requires a Linux kernel, and of course, you also have to trust the hardware you're running it on. Still, it reduces the amount of stuff we have to take for granted as trusted, which I think is a good thing. (I'm not involved in the project, just an admirer).

    [1]: https://github.com/oriansj/bootstrap-seeds/blob/b09a8b8cbcb6...

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

  • MicroZig: Unified abstraction layer and HAL for Zig on several microcontrollers

    5 projects | news.ycombinator.com | 28 Feb 2024
  • Zig cookbook: collection of simple Zig programs that demonstrate good practices

    6 projects | news.ycombinator.com | 1 Jan 2024
  • I think C++ is still a desirable coding platform compared to Rust

    2 projects | news.ycombinator.com | 22 Nov 2023
  • Rust – Faster compilation with the parallel front-end in nightly

    3 projects | news.ycombinator.com | 10 Nov 2023
  • Forty years of GNU and the free software movement

    1 project | news.ycombinator.com | 19 Sep 2023

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