Zig 0.7.1 released, want to replace the C programming language

Zig 0.7.1 has been released, this is a bugfix version, a total of 69 bugs have been fixed . Which involves the standard library, compiler, build system, compiler-rt, zig cc and zig c++ and so on.

As you can see from the release notes , the problems fixed in this version are concentrated on the compiler, which is not difficult to understand, because when the last version was released, the team pointed out that one of the main goals of 0.7.0 was to implement a self-hosted compiler.

Zig is a general-purpose programming language designed for stability, maintainability and performance, pursuing the best position to replace the C language in system programming. Zig has the following interesting features:

  • Manually manage memory
  • Competing with the C language instead of relying on it, the Zig standard library does not depend on libc
  • Lightweight and simple, focusing on debugging applications rather than debugging knowledge of programming languages
  • New error handling method, similar to well-written C language error handling, but reduces a lot of redundancy
  • Optimized fast compilation time in debug mode, and use stack trace to crash when undefined behavior occurs
  • ReleaseFast mode and ReleaseSafe mode
  • Generic data structures and functions
  • Concurrency through coroutines
  • Import .h header files and use C language types, variables and functions directly
  • Export functions, variables and types that depend on C language code, and automatically generate .h header files
  • Optional type instead of null pointer
  • Cross compilation is the main use case

eaa95b1fffa94c4319d5ae6be7bb8deafda.jpg

Guess you like

Origin www.oschina.net/news/124273/zig-0-7-1-released