Changes have been accepted into the Zig programming language that allow the Zig stage2 compiler, written in Zig, to compile itself (stage3), making this language self-hosting. This compiler is expected to be offered by default in the upcoming release 0.10.0. Stage2 is still incomplete, as it lacks support for runtime checks, and there are differences in language semantics, etc.
The implemented change will allow adding support for hot code swapping (i.e., without interruption), partially reduce dependence on LLVM and C++ (thereby simplifying the porting process to new architectures), and dramatically reduce the build time of programs, while also speeding up compiler development.
Source: opennet.ru
