Show Zig supremacy, for those who do not believe (yet)
Go to file
2024-08-31 00:11:05 +02:00
zig-error-handling Add Zig Error Handling Example 2024-08-31 00:11:05 +02:00
zig-matrix New matrix representation. Add col and row iterators to Zig Matrix example 2024-08-25 23:59:32 +02:00
zig-with-c Add Zig with C example 2024-08-22 23:51:43 +02:00
README.md Add README.md 2024-08-25 01:11:19 +02:00

Zig examples

Purpose

  1. Show that Zig is a cool language with real-world use cases and unique features
  2. Serve as learning resource for programmers learning Zig

Run

Install Zig according to the instructions from https://ziglang.org/learn/getting-started/#installing-zig. You will need at least 0.13 version to run the examples.

Firstly enter some example directory, e.g.:

cd zig-with-c

Some of examples may be run:

zig build run

and others may be tested:

zig build test
zig build test --summary all # prints results summary

And some can do both things. You can check available options by running zig build --help.