Zig : a new language competing with C !


#1

https://ziglang.org

Feature Highlights

Small, simple language

Focus on debugging your application rather than debugging your programming language knowledge.

Zig’s entire syntax is specified with a 500-line PEG grammar file.

There is no hidden control flow , no hidden memory allocations, no preprocessor, and no macros. If Zig code doesn’t look like it’s jumping away to call a function, then it isn’t. This means you can be sure that the following code calls only foo() and then bar() , and this is guaranteed without needing to know the types of anything:

var a = b + c.d;
foo();
bar();

Performance and Safety: Choose Two §

Zig has four build modes, and they can all be mixed and matched all the way down to scope granularity.

A library written in Zig is eligible to be used anywhere: