Zig's self-hosted x86 backend is now default in Debug mode

112 points by alichraghi


matklad

Something I realized the other day: when Zig language becomes stable, it will be an incredible compilation target (i.e., compiling your hobby language to Zig).

Zigs toolchain is absolutely incredible, and is better than the ones of post 1.0 languages. Zig’s low-level, so you can express more or less any machine code pattern you want, and you can use ReleaseFast if safety checks are handled by the type system. Zig’s also very expressive, so the generated code should be less of a mess. Finally, Zig should be a simple-to-implement language (more complex than C, but significantly simpler than C++ or Rust), so the resulting code should be rather portable in terms of alternative implementations!