GeistHaus
log in · sign up

Maintain it With Zig

kristoff.it

No matter what language you program in or what applications you use: everything you do with a computer today is powered at some level by a piece of C/C++ code.

2 pages link to this URL
Zig is everything I want C to be

I've started learning Zig, a new programming language in the same problem space as C, and it has some features I really like. While it's not memory-safe in the Rust way, it has a lot of compile time and runtime checks to prevent common footguns. It has packed structs and variable-width integers to allow for easy parsing of bitpacked binary formats. Its comptime metaprogramming capabilities are spectacular. And it even interoperates seamlessly with C!

0 inbound links article en zig