Sign inSign up

100hellos/zig

By 100hellos

•Updated 4 months ago

"Hello World!" Written in zig

Image
0

3.8K

100hellos/zig repository overview

⁠Hello World! From zig.

Language page⁠ — context, influences, and learning notes on the 100hellos site.

Source on GitHub⁠ (100hellos/zig)

⁠Trying it

docker run --rm --platform="linux/amd64" 100hellos/zig:latest

⁠Modifying it

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

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
}

Tag summary

Content type

Image

Digest

sha256:b4166e311…

Size

146 MB

Last updated

4 months ago

docker pull 100hellos/zig