Language page — context, influences, and learning notes on the 100hellos site.
Source on GitHub (100hellos/zig)
docker run --rm --platform="linux/amd64" 100hellos/zig:latest
Read the repo README, or fork the project and customize it.
For an interactive shell:
docker run --rm --platform="linux/amd64" --entrypoint="" -it 100hellos/zig:latest zsh
Zig supports compile time code execution, which means you can run code at compile time to generate more code. This can be used for things like generating boilerplate code, or even for more complex tasks like parsing files or generating data structures. This can be a powerful tool for metaprogramming, and can help you write more concise and maintainable code.
This means you can add blocks to your code that execute at compile time with:
comptime {
// code that runs at compile time
}
Content type
Image
Digest
sha256:b4166e311…
Size
146 MB
Last updated
4 months ago
docker pull 100hellos/zig