- …
Excerpts from Zig on Exercism by Exercism:
About Zig
Zig is a general-purpose programming language equipped with well-rounded toolchains that aims to be simple and familiar, yet disparate from what programmers rely on today. Its main attributes involve helping programmers to develop robust, optimal, and reusable software. All the while, Zig aims to remedy the design problems of older languages with features that promote safety through the use of optionals, a unique take on error handling, and compile-time execution.
From the ground up, Zig was designed to be competitive with other systems programming languages and not be reliant on them. With bold claims such as, “Zig is faster than C” featured on its home page, being independent from other languages is a major design philosophy that it champions.
Zig has a lot of faculties that really makes it double down on its notion of independence. The standard library that Zig provides harbors many common functions that perform fast to ensure that a reliance on FFI and external libraries is not essential. Zig also provides a well-rounded build system so that Zig is not dependent on alternative build tools, such as make, cmake, or ninja.
The home page for Zig is ziglang.org. Zig provides a complete summary of the language’s current features, grammars, and philosophies at ziglang.org/documentation/master/. It’s highly recommended that newcomers use a mix of the documentation and other community resources to learn Zig in a well-rounded fashion.
47 coding exercises for Zig on Exercism. From Difference of Squares to Secret Handshake.
Get better at programming through fun, rewarding coding exercises that test your understanding of concepts with Exercism.
See all Zig exercises on Exercism
Simple
Zig lets you focus on debugging your application rather than your programming language knowledge.
Comptime
Zig has a fresh approach to metaprogramming based on compile-time code execution and lazy evaluation
Performance
Zig produces fast and memory efficient executables: you are free to manage memory yourself.
Safety
Zig lets you write fast, clear code capable of handling all error conditions.
Cross-compile
Zig can build for a plethora of targets and cross-compiling is a first class use case.
Community
Zig’s community is decentralized. Development is funded by the non-profit Zig Software Foundation.
Get mentored the Zig way
Every language has its own way of doing things. Zig is no different. Our mentors will help you learn to think like a Zig developer and how to write idiomatic code in Zig. Once you’ve solved an exercise, submit it to our volunteer team, and they’ll give you hints, ideas, and feedback on how to make it feel more like what you’d normally see in Zig - they’ll help you discover the things you don’t know that you don’t know.
Community-sourced Zig exercises
The Zig track on Exercism has 47 exercises to help you write better code. Discover new exercises as you progress and get engrossed in learning new concepts and improving the way you currently write.
Get started with the Zig track
The best part, it’s 100% free for everyone.